[llvm] [XTensa] Fix implicit trunc assertion in LowerImmediate (PR #175059)

Alexander Richardson via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 8 12:15:12 PST 2026


================
@@ -964,7 +964,7 @@ SDValue XtensaTargetLowering::LowerImmediate(SDValue Op,
         isShiftedInt<8, 8>(Value))
       return Op;
     Type *Ty = Type::getInt32Ty(*DAG.getContext());
-    Constant *CV = ConstantInt::get(Ty, Value);
+    Constant *CV = ConstantInt::get(Ty, Value, /*ImplicitTrunc=*/true);
----------------
arichardson wrote:

Ah thanks, will update

https://github.com/llvm/llvm-project/pull/175059


More information about the llvm-commits mailing list