diff options
| author | Evan Cheng <evan.cheng@apple.com> | 2007-10-22 19:46:19 +0000 |
|---|---|---|
| committer | Evan Cheng <evan.cheng@apple.com> | 2007-10-22 19:46:19 +0000 |
| commit | bdbed663333a2401a6c921422a2f105b8b1b180d (patch) | |
| tree | 999a6c71010576cca320a5fa597ea486053ec686 /llvm/lib/Target/PowerPC/PPCISelLowering.cpp | |
| parent | 5163a8f53ebb5ba424ff69de30ab1d35ba60fe70 (diff) | |
| download | bcm5719-llvm-bdbed663333a2401a6c921422a2f105b8b1b180d.tar.gz bcm5719-llvm-bdbed663333a2401a6c921422a2f105b8b1b180d.zip | |
Use ptr type in the immediate field of a BxA instruction so we don't end up selecting 32-bit call instruction for ppc64.
llvm-svn: 43228
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCISelLowering.cpp')
| -rw-r--r-- | llvm/lib/Target/PowerPC/PPCISelLowering.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp index bf0f46784a7..e3610f89941 100644 --- a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp +++ b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp @@ -1537,7 +1537,8 @@ static SDNode *isBLACompatibleAddress(SDOperand Op, SelectionDAG &DAG) { (Addr << 6 >> 6) != Addr) return 0; // Top 6 bits have to be sext of immediate. - return DAG.getConstant((int)C->getValue() >> 2, MVT::i32).Val; + return DAG.getConstant((int)C->getValue() >> 2, + DAG.getTargetLoweringInfo().getPointerTy()).Val; } |

