@@ -193,8 +193,8 @@ namespace {
193193 }
194194
195195 // / getSmallIPtrImm - Return a target constant of pointer type.
196- inline SDValue getSmallIPtrImm (uint64_t Imm, const SDLoc &dl) {
197- return CurDAG->getTargetConstant (
196+ inline SDValue getSmallIPtrImm (int64_t Imm, const SDLoc &dl) {
197+ return CurDAG->getSignedTargetConstant (
198198 Imm, dl, PPCLowering->getPointerTy (CurDAG->getDataLayout ()));
199199 }
200200
@@ -207,7 +207,7 @@ namespace {
207207 // / base register. Return the virtual register that holds this value.
208208 SDNode *getGlobalBaseReg ();
209209
210- void selectFrameIndex (SDNode *SN, SDNode *N, uint64_t Offset = 0 );
210+ void selectFrameIndex (SDNode *SN, SDNode *N, int64_t Offset = 0 );
211211
212212 // Select - Convert the specified operand from a target-independent to a
213213 // target-specific node if it hasn't already been changed.
@@ -639,7 +639,7 @@ static bool isOpcWithIntImmediate(SDNode *N, unsigned Opc, unsigned& Imm) {
639639 && isInt32Immediate (N->getOperand (1 ).getNode (), Imm);
640640}
641641
642- void PPCDAGToDAGISel::selectFrameIndex (SDNode *SN, SDNode *N, uint64_t Offset) {
642+ void PPCDAGToDAGISel::selectFrameIndex (SDNode *SN, SDNode *N, int64_t Offset) {
643643 SDLoc dl (SN);
644644 int FI = cast<FrameIndexSDNode>(N)->getIndex ();
645645 SDValue TFI = CurDAG->getTargetFrameIndex (FI, N->getValueType (0 ));
0 commit comments