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 | ce98deb9f512070fe82518594550dd030b26dd96 (patch) | |
tree | 7508bc73c8a3cd570cab509f6ff04a39d89c6cdf /lib/Target/Mips/MipsFrameLowering.cpp | |
parent | b1763993398f1c198ff389e9b0a6db1e65b49260 (diff) | |
download | external_llvm-ce98deb9f512070fe82518594550dd030b26dd96.tar.gz external_llvm-ce98deb9f512070fe82518594550dd030b26dd96.tar.bz2 external_llvm-ce98deb9f512070fe82518594550dd030b26dd96.zip |
Enable printing of immediates that do not fit in 16-bit. .cprestore can have
offsets that are larger than 0x10000.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132003 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/MipsFrameLowering.cpp')
-rw-r--r-- | lib/Target/Mips/MipsFrameLowering.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/Mips/MipsFrameLowering.cpp b/lib/Target/Mips/MipsFrameLowering.cpp index ff86ec68d3..3291853bf8 100644 --- a/lib/Target/Mips/MipsFrameLowering.cpp +++ b/lib/Target/Mips/MipsFrameLowering.cpp @@ -119,7 +119,7 @@ static bool expandRegLargeImmPair(unsigned OrigReg, int OrigImm, MachineFunction* MF = MBB.getParent(); const TargetInstrInfo *TII = MF->getTarget().getInstrInfo(); DebugLoc DL = I->getDebugLoc(); - int ImmLo = OrigImm & 0xffff; + int ImmLo = (short)(OrigImm & 0xffff); int ImmHi = (((unsigned)OrigImm & 0xffff0000) >> 16) + ((OrigImm & 0x8000) != 0); |