diff --git a/llvm/lib/Target/SystemZ/SystemZOperands.td b/llvm/lib/Target/SystemZ/SystemZOperands.td index 5349e0d9a8512..e7b45a40a3cc0 100644 --- a/llvm/lib/Target/SystemZ/SystemZOperands.td +++ b/llvm/lib/Target/SystemZ/SystemZOperands.td @@ -220,7 +220,7 @@ def NEGLF32 : SDNodeXFormgetSignedTargetConstant(int8_t(N->getZExtValue()), SDLoc(N), + return CurDAG->getSignedTargetConstant(int8_t(N->getSExtValue()), SDLoc(N), MVT::i64); }]>; @@ -244,13 +244,13 @@ def UIMM12 : SDNodeXFormgetSignedTargetConstant(int16_t(N->getZExtValue()), SDLoc(N), + return CurDAG->getSignedTargetConstant(int16_t(N->getSExtValue()), SDLoc(N), MVT::i64); }]>; // Negate and then truncate an immediate to a 16-bit signed quantity. def NEGSIMM16 : SDNodeXFormgetSignedTargetConstant(int16_t(-N->getZExtValue()), SDLoc(N), + return CurDAG->getSignedTargetConstant(int16_t(-N->getSExtValue()), SDLoc(N), MVT::i64); }]>; @@ -262,13 +262,13 @@ def UIMM16 : SDNodeXFormgetSignedTargetConstant(int32_t(N->getZExtValue()), SDLoc(N), + return CurDAG->getSignedTargetConstant(int32_t(N->getSExtValue()), SDLoc(N), MVT::i64); }]>; // Negate and then truncate an immediate to a 32-bit unsigned quantity. def NEGSIMM32 : SDNodeXFormgetSignedTargetConstant(int32_t(-N->getZExtValue()), SDLoc(N), + return CurDAG->getSignedTargetConstant(int32_t(-N->getSExtValue()), SDLoc(N), MVT::i64); }]>;