[llvm] [X86] Fix assertion when lowering FP_ROUND (PR #185562)
Phoebe Wang via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 9 21:03:37 PDT 2026
================
@@ -35390,10 +35390,14 @@ void X86TargetLowering::ReplaceNodeResults(SDNode *N,
return;
if (IsStrict)
- V = DAG.getNode(X86ISD::STRICT_CVTPS2PH, dl, {MVT::v8i16, MVT::Other},
- {Chain, Src, Rnd});
+ V = DAG.getNode(
+ X86ISD::STRICT_CVTPS2PH, dl, {MVT::v8i16, MVT::Other},
+ {Chain, Src,
+ DAG.getTargetConstant(Rnd->getAsZExtVal(), dl, MVT::i32)});
----------------
phoebewang wrote:
I agree. CUR_DIRECTION would be fine for both Strict and not Strict cases.
https://github.com/llvm/llvm-project/pull/185562
More information about the llvm-commits
mailing list