diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2009-04-21 08:22:09 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2009-04-21 08:22:09 +0000 |
commit | 7daa13c2a4299a1a52eda8ae2746f0a0f2893315 (patch) | |
tree | fb066f2693fcae6c8f43af277cef2ada0433db19 | |
parent | e16178b75ff22830e3a8070a7cebfa0947aa69eb (diff) | |
download | external_llvm-7daa13c2a4299a1a52eda8ae2746f0a0f2893315.zip external_llvm-7daa13c2a4299a1a52eda8ae2746f0a0f2893315.tar.gz external_llvm-7daa13c2a4299a1a52eda8ae2746f0a0f2893315.tar.bz2 |
TLS_addr64 and TLS_addr32 define RDI and EAX. They don't use them.
This fixes PR4002.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@69672 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/X86/X86Instr64bit.td | 2 | ||||
-rw-r--r-- | lib/Target/X86/X86InstrInfo.td | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/X86/X86Instr64bit.td b/lib/Target/X86/X86Instr64bit.td index 69c74b2..e84d136 100644 --- a/lib/Target/X86/X86Instr64bit.td +++ b/lib/Target/X86/X86Instr64bit.td @@ -1303,7 +1303,7 @@ def MOV64ri64i32 : Ii32<0xB8, AddRegFrm, (outs GR64:$dst), (ins i64i32imm:$src), // Thread Local Storage Instructions //===----------------------------------------------------------------------===// -let hasSideEffects = 1, Uses = [RDI] in +let hasSideEffects = 1, Defs = [RDI] in def TLS_addr64 : I<0, Pseudo, (outs), (ins i64imm:$sym), ".byte\t0x66; leaq\t${sym:mem}(%rip), %rdi; .word\t0x6666; rex64", [(X86tlsaddr tglobaltlsaddr:$sym)]>, diff --git a/lib/Target/X86/X86InstrInfo.td b/lib/Target/X86/X86InstrInfo.td index 7cf1ad3..462433b 100644 --- a/lib/Target/X86/X86InstrInfo.td +++ b/lib/Target/X86/X86InstrInfo.td @@ -2977,7 +2977,7 @@ def MOV32r0 : I<0x31, MRMInitReg, (outs GR32:$dst), (ins), // Thread Local Storage Instructions // -let hasSideEffects = 1, Uses = [EAX, EBX] in +let hasSideEffects = 1, Uses = [EBX], Defs = [EAX] in def TLS_addr32 : I<0, Pseudo, (outs), (ins i32imm:$sym), "leal\t${sym:mem}(,%ebx,1), %eax", [(X86tlsaddr tglobaltlsaddr:$sym)]>, |