ExecutionEngine: fix a bug in the movt/movw relocator
authorSaleem Abdulrasool <compnerd@compnerd.org>
Mon, 29 Aug 2016 20:42:03 +0000 (20:42 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Mon, 29 Aug 2016 20:42:03 +0000 (20:42 +0000)
commitef72107a490b26b59a0edd78c971b4ccdbcc7967
tree6638bb5923a1254e5834e0a077504161928ecb8c
parented9abbea865c6a790733792da6b00f4ea7c66a5b
ExecutionEngine: fix a bug in the movt/movw relocator

According to the arm arm specifications, 4 bytes are needed for a shift instead
of 8, this was causing the movt instruction to write to a different register
sometimes.

Patch by Walter Erquinigo!

llvm-svn: 280005
llvm/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldCOFFThumb.h
llvm/test/ExecutionEngine/RuntimeDyld/ARM/COFF_Thumb.s