There was an error while loading. Please reload this page.
1 parent 026fbe5 commit 5b9884dCopy full SHA for 5b9884d
llvm/lib/Target/SystemZ/SystemZOperands.td
@@ -262,8 +262,8 @@ def UIMM16 : SDNodeXForm<imm, [{
262
263
// Truncate an immediate to a 32-bit signed quantity.
264
def SIMM32 : SDNodeXForm<imm, [{
265
- return CurDAG->getTargetConstant(int32_t(N->getZExtValue()), SDLoc(N),
266
- MVT::i64);
+ return CurDAG->getSignedTargetConstant(int32_t(N->getZExtValue()), SDLoc(N),
+ MVT::i64);
267
}]>;
268
269
// Negate and then truncate an immediate to a 32-bit unsigned quantity.
0 commit comments