From f473d3cff95ca23c3146bd2fe2b52849b9c9ea38 Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Wed, 23 Mar 2011 22:03:44 +0000 Subject: [PATCH] The high bit of a Thumb2 ADR's offset is stored in bit 26, not bit 25. This fixes 464.h264ref with the integrated assembler. llvm-svn: 128172 --- lib/Target/ARM/ARMAsmBackend.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Target/ARM/ARMAsmBackend.cpp b/lib/Target/ARM/ARMAsmBackend.cpp index ec23449d7d4..ea8a70c695b 100644 --- a/lib/Target/ARM/ARMAsmBackend.cpp +++ b/lib/Target/ARM/ARMAsmBackend.cpp @@ -246,7 +246,7 @@ static unsigned adjustFixupValue(unsigned Kind, uint64_t Value) { } uint32_t out = (opc << 21); - out |= (Value & 0x800) << 14; + out |= (Value & 0x800) << 15; out |= (Value & 0x700) << 4; out |= (Value & 0x0FF);