diff options
author | Akira Hatanaka <ahatanak@gmail.com> | 2011-05-24 21:22:21 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanak@gmail.com> | 2011-05-24 21:22:21 +0000 |
commit | 2db176c4c1ceb860c41dec40db24a734d563db8a (patch) | |
tree | e3de91a1b609022786710e1ae6e3fa955eafca1d /llvm/lib/Target/Mips/MipsRegisterInfo.cpp | |
parent | 685b2b080fdd1c32bb4325d7f0f727d52cb3e095 (diff) | |
download | bcm5719-llvm-2db176c4c1ceb860c41dec40db24a734d563db8a.tar.gz bcm5719-llvm-2db176c4c1ceb860c41dec40db24a734d563db8a.zip |
Enable printing of immediates that do not fit in 16-bit. .cprestore can have
offsets that are larger than 0x10000.
llvm-svn: 132003
Diffstat (limited to 'llvm/lib/Target/Mips/MipsRegisterInfo.cpp')
-rw-r--r-- | llvm/lib/Target/Mips/MipsRegisterInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/Mips/MipsRegisterInfo.cpp b/llvm/lib/Target/Mips/MipsRegisterInfo.cpp index 00e2063798b..be6706544c2 100644 --- a/llvm/lib/Target/Mips/MipsRegisterInfo.cpp +++ b/llvm/lib/Target/Mips/MipsRegisterInfo.cpp @@ -234,7 +234,7 @@ eliminateFrameIndex(MachineBasicBlock::iterator II, int SPAdj, else { const TargetInstrInfo *TII = MF.getTarget().getInstrInfo(); DebugLoc DL = II->getDebugLoc(); - int ImmLo = Offset & 0xffff; + int ImmLo = (short)(Offset & 0xffff); int ImmHi = (((unsigned)Offset & 0xffff0000) >> 16) + ((Offset & 0x8000) != 0); |