Skip to content

Commit f85be32

Browse files
authored
[SystemZ] SIMM32 is a signed constant (#118634)
A follow-up to PR #117181: SIMM32 must use getSignedTargetConstant(), too.
1 parent ff78cd5 commit f85be32

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/SystemZ/SystemZOperands.td

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,8 +262,8 @@ def UIMM16 : SDNodeXForm<imm, [{
262262

263263
// Truncate an immediate to a 32-bit signed quantity.
264264
def SIMM32 : SDNodeXForm<imm, [{
265-
return CurDAG->getTargetConstant(int32_t(N->getZExtValue()), SDLoc(N),
266-
MVT::i64);
265+
return CurDAG->getSignedTargetConstant(int32_t(N->getZExtValue()), SDLoc(N),
266+
MVT::i64);
267267
}]>;
268268

269269
// Negate and then truncate an immediate to a 32-bit unsigned quantity.

0 commit comments

Comments
 (0)