diff options
author | Zoran Jovanovic <zoran.jovanovic@imgtec.com> | 2013-10-29 16:38:59 +0000 |
---|---|---|
committer | Zoran Jovanovic <zoran.jovanovic@imgtec.com> | 2013-10-29 16:38:59 +0000 |
commit | 1aaf43c2a2ec0fd4c8dbfe56558237219c5f8af7 (patch) | |
tree | 890ba96553a8309fa262ff4a6c307f0fd1b19dbb /lib/Target/Mips/MCTargetDesc/MipsAsmBackend.cpp | |
parent | 54328c772c5519e56c13667c2b1d1e830580c44d (diff) | |
download | external_llvm-1aaf43c2a2ec0fd4c8dbfe56558237219c5f8af7.zip external_llvm-1aaf43c2a2ec0fd4c8dbfe56558237219c5f8af7.tar.gz external_llvm-1aaf43c2a2ec0fd4c8dbfe56558237219c5f8af7.tar.bz2 |
Support for microMIPS jump instructions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193623 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/MCTargetDesc/MipsAsmBackend.cpp')
-rw-r--r-- | lib/Target/Mips/MCTargetDesc/MipsAsmBackend.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Target/Mips/MCTargetDesc/MipsAsmBackend.cpp b/lib/Target/Mips/MCTargetDesc/MipsAsmBackend.cpp index ae70e25..b47bff6 100644 --- a/lib/Target/Mips/MCTargetDesc/MipsAsmBackend.cpp +++ b/lib/Target/Mips/MCTargetDesc/MipsAsmBackend.cpp @@ -81,6 +81,9 @@ static unsigned adjustFixupValue(unsigned Kind, uint64_t Value) { // Get the 4th 16-bits. Value = ((Value + 0x800080008000LL) >> 48) & 0xffff; break; + case Mips::fixup_MICROMIPS_26_S1: + Value >>= 1; + break; } return Value; @@ -194,6 +197,7 @@ public: { "fixup_Mips_GOT_LO16", 0, 16, 0 }, { "fixup_Mips_CALL_HI16", 0, 16, 0 }, { "fixup_Mips_CALL_LO16", 0, 16, 0 }, + { "fixup_MICROMIPS_26_S1", 0, 26, 0 }, { "fixup_MICROMIPS_HI16", 0, 16, 0 }, { "fixup_MICROMIPS_LO16", 0, 16, 0 }, { "fixup_MICROMIPS_GOT16", 0, 16, 0 }, |