summaryrefslogtreecommitdiff
path: root/test/ELF/i386-tls-got.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/ELF/i386-tls-got.s')
-rw-r--r--test/ELF/i386-tls-got.s7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/ELF/i386-tls-got.s b/test/ELF/i386-tls-got.s
new file mode 100644
index 000000000000..56be4a138d9b
--- /dev/null
+++ b/test/ELF/i386-tls-got.s
@@ -0,0 +1,7 @@
+# REQUIRES: x86
+# RUN: llvm-mc -filetype=obj -triple=i386-pc-linux %S/Inputs/i386-tls-got.s -o %t1.o
+# RUN: ld.lld %t1.o -o %t1.so -shared
+# RUN: llvm-mc -filetype=obj -triple=i386-pc-linux %s -o %t2.o
+# RUN: ld.lld %t2.o %t1.so -o %t
+
+ addl foobar@INDNTPOFF, %eax