diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2009-04-13 13:02:49 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2009-04-13 13:02:49 +0000 |
commit | 7ff5bff45eaa1fabf8bb910daf2907cf981cbf3d (patch) | |
tree | b810d1163b4fa5dfcdaf9a9ef93767ce4c18a53a /lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp | |
parent | 12f23a86e22d66a2ec67ff7f4423688a1282e684 (diff) | |
download | external_llvm-7ff5bff45eaa1fabf8bb910daf2907cf981cbf3d.zip external_llvm-7ff5bff45eaa1fabf8bb910daf2907cf981cbf3d.tar.gz external_llvm-7ff5bff45eaa1fabf8bb910daf2907cf981cbf3d.tar.bz2 |
X86-64 TLS support for local exec and initial exec.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68947 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp')
-rw-r--r-- | lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp b/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp index e9b62a8..65ce5ac 100644 --- a/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp +++ b/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp @@ -454,14 +454,16 @@ void X86ATTAsmPrinter::printOperand(const MachineInstr *MI, unsigned OpNo, O << "@TLSGD"; break; case TLSModel::InitialExec: - if (Subtarget->is64Bit()) - O << "@TLSGD"; // 64 bit intial exec not implemented - else + if (Subtarget->is64Bit()) { + assert (!NotRIPRel); + O << "@GOTTPOFF(%rip)"; + } else { O << "@INDNTPOFF"; + } break; case TLSModel::LocalExec: if (Subtarget->is64Bit()) - O << "@TLSGD"; // 64 bit local exec not implemented + O << "@TPOFF"; else O << "@NTPOFF"; break; |