diff options
Diffstat (limited to 'llvm/test/CodeGen')
| -rw-r--r-- | llvm/test/CodeGen/X86/tls11.ll | 10 | ||||
| -rw-r--r-- | llvm/test/CodeGen/X86/tls12.ll | 10 |
2 files changed, 20 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/tls11.ll b/llvm/test/CodeGen/X86/tls11.ll new file mode 100644 index 00000000000..32d0a1204ca --- /dev/null +++ b/llvm/test/CodeGen/X86/tls11.ll @@ -0,0 +1,10 @@ +; RUN: llvm-as < %s | llc -march=x86 -mtriple=i386-linux-gnu > %t +; RUN: grep {movzwl %gs:i@NTPOFF, %eax} %t + +@i = thread_local global i16 15 + +define i16 @f() { +entry: + %tmp1 = load i16* @i + ret i16 %tmp1 +} diff --git a/llvm/test/CodeGen/X86/tls12.ll b/llvm/test/CodeGen/X86/tls12.ll new file mode 100644 index 00000000000..c6f766d4472 --- /dev/null +++ b/llvm/test/CodeGen/X86/tls12.ll @@ -0,0 +1,10 @@ +; RUN: llvm-as < %s | llc -march=x86 -mtriple=i386-linux-gnu > %t +; RUN: grep {movzbl %gs:i@NTPOFF, %eax} %t + +@i = thread_local global i8 15 + +define i8 @f() { +entry: + %tmp1 = load i8* @i + ret i8 %tmp1 +} |

