================
@@ -16423,8 +16486,8 @@ void RISCVTargetLowering::ReplaceNodeResults(SDNode *N,
         Opc = RISCVISD::MULQR;
         break;
       default:
-        // pas/psa/psas/pssa/paas/pasa and pmerge: re-emit at the widened type
----------------
sihuan wrote:

`pmulh*` have a concrete opcode from `getRVPMulHighOpcode`, so they shouldn't 
fall through here — handle them like `paadd`/`pmulq` above:
```cpp
case Intrinsic::riscv_pmulh:
case Intrinsic::riscv_pmulhr:
case Intrinsic::riscv_pmulhu:
case Intrinsic::riscv_pmulhru:
case Intrinsic::riscv_pmulhsu:
case Intrinsic::riscv_pmulhrsu:
  Opc = getRVPMulHighOpcode(IntNo);
  break;
```
The re-emit fallback is for ops with no single-node form (pas/psa/pmerge).

https://github.com/llvm/llvm-project/pull/211223
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to