[llvm] [XTensa] Fix implicit trunc assertion in LowerImmediate (PR #175059)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 8 11:49:16 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);
----------------
nikic wrote:
Based on the surrounding code, this should be using getSigned(), not enabling truncation.
https://github.com/llvm/llvm-project/pull/175059
More information about the llvm-commits
mailing list