OSDN Git Service

For general dynamic TLS access we must use
authorRafael Espindola <rafael.espindola@gmail.com>
Fri, 17 Apr 2009 14:35:58 +0000 (14:35 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Fri, 17 Apr 2009 14:35:58 +0000 (14:35 +0000)
commit2ee3db3003deb18461a72b82166d8d417925d06f
treed1a8eb3f3638affbe0742ce8652d4e4f122ab599
parentc3a76ef9553a2e89a18eab9d052052305e69fc93
For general dynamic TLS access we must use

leaq foo@TLSGD(%rip), %rdi

as part of the instruction sequence. Using a register other than %rdi and then
copying it to %rdi is not valid.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@69350 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
lib/Target/X86/X86Instr64bit.td
lib/Target/X86/X86InstrInfo.td
test/CodeGen/X86/2009-04-17-tls-fast.ll [new file with mode: 0644]