@@ -193,8 +193,8 @@ namespace {
193
193
}
194
194
195
195
// / 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 (
198
198
Imm, dl, PPCLowering->getPointerTy (CurDAG->getDataLayout ()));
199
199
}
200
200
@@ -207,7 +207,7 @@ namespace {
207
207
// / base register. Return the virtual register that holds this value.
208
208
SDNode *getGlobalBaseReg ();
209
209
210
- void selectFrameIndex (SDNode *SN, SDNode *N, uint64_t Offset = 0 );
210
+ void selectFrameIndex (SDNode *SN, SDNode *N, int64_t Offset = 0 );
211
211
212
212
// Select - Convert the specified operand from a target-independent to a
213
213
// target-specific node if it hasn't already been changed.
@@ -639,7 +639,7 @@ static bool isOpcWithIntImmediate(SDNode *N, unsigned Opc, unsigned& Imm) {
639
639
&& isInt32Immediate (N->getOperand (1 ).getNode (), Imm);
640
640
}
641
641
642
- void PPCDAGToDAGISel::selectFrameIndex (SDNode *SN, SDNode *N, uint64_t Offset) {
642
+ void PPCDAGToDAGISel::selectFrameIndex (SDNode *SN, SDNode *N, int64_t Offset) {
643
643
SDLoc dl (SN);
644
644
int FI = cast<FrameIndexSDNode>(N)->getIndex ();
645
645
SDValue TFI = CurDAG->getTargetFrameIndex (FI, N->getValueType (0 ));
0 commit comments