[PATCH] ARM: Fix TPsoft for Thumb mode

Christian Pirker cpirker at a-bix.com
Fri Jun 20 08:51:42 PDT 2014


Hi all,

The use of thread local storage (TLS) requires the thread pointer to access thread specific data.
LLVM generates subroutine calls to a ABI specified function "__eabi_read_tp" to get hold of the thread pointer.
Unfortunately, LLVM uses the ARM coding of the branch long instructions in Thumb mode, instead of the Thumb encoding.
This patch enables the correct encoding for the Thumb branch long instruction.

Please review, thanks,
Christian

http://reviews.llvm.org/D4230

Files:
  lib/Target/ARM/ARMExpandPseudoInsts.cpp
  lib/Target/ARM/ARMInstrInfo.td
  test/CodeGen/Thumb2/tpsoft.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4230.10695.patch
Type: text/x-patch
Size: 4151 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140620/2c2c17c1/attachment.bin>


More information about the llvm-commits mailing list