Skip to content

Commit 2e07c2b

Browse files
committed
[AVR] Use getSignedConstant() for negative number
1 parent 5405f54 commit 2e07c2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AVR/AVRISelLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1111,7 +1111,7 @@ bool AVRTargetLowering::getPreIndexedAddressParts(SDNode *N, SDValue &Base,
11111111
}
11121112

11131113
Base = Op->getOperand(0);
1114-
Offset = DAG.getConstant(RHSC, DL, MVT::i8);
1114+
Offset = DAG.getSignedConstant(RHSC, DL, MVT::i8);
11151115
AM = ISD::PRE_DEC;
11161116

11171117
return true;

0 commit comments

Comments
 (0)