aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/ARM/MCTargetDesc
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2011-09-30 22:02:45 +0000
committerJim Grosbach <grosbach@apple.com>2011-09-30 22:02:45 +0000
commitf391e9f696183a8dfb6b0d1e791687a520552f85 (patch)
treeb3a538a8e7e75be1afa7cb552f93b6fc2899d6de /lib/Target/ARM/MCTargetDesc
parent291512f96fe807da7c1a3a6e001feb1017b56e26 (diff)
downloadexternal_llvm-f391e9f696183a8dfb6b0d1e791687a520552f85.zip
external_llvm-f391e9f696183a8dfb6b0d1e791687a520552f85.tar.gz
external_llvm-f391e9f696183a8dfb6b0d1e791687a520552f85.tar.bz2
Correct for my over-eager delete finger.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140892 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/MCTargetDesc')
-rw-r--r--lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp b/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp
index e815a71..c31c5e6 100644
--- a/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp
+++ b/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp
@@ -203,6 +203,7 @@ static unsigned adjustFixupValue(unsigned Kind, uint64_t Value) {
// inst{26} = i;
// inst{14-12} = Mid3;
// inst{7-0} = Lo8;
+ Value = (Hi4 << 16) | (i << 26) | (Mid3 << 12) | (Lo8);
uint64_t swapped = (Value & 0xFFFF0000) >> 16;
swapped |= (Value & 0x0000FFFF) << 16;
return swapped;