diff options
author | Lang Hames <lhames@gmail.com> | 2017-10-20 00:53:16 +0000 |
---|---|---|
committer | Lang Hames <lhames@gmail.com> | 2017-10-20 00:53:16 +0000 |
commit | 8eec91e96d4a03ee1a3287405dda53e60d0c9933 (patch) | |
tree | 6abded43405af2f6ac8586697a56a59ef789ce85 /llvm/test | |
parent | 0026c06e1169391b1525339fcceca06c6755e2fc (diff) | |
download | bcm5719-llvm-8eec91e96d4a03ee1a3287405dda53e60d0c9933.tar.gz bcm5719-llvm-8eec91e96d4a03ee1a3287405dda53e60d0c9933.zip |
[ExecutionEngine] After a heroic dev-meeting hack session, the JIT supports TLS.
Turns on EmulatedTLS support by default in EngineBuilder. ;)
llvm-svn: 316200
Diffstat (limited to 'llvm/test')
-rw-r--r-- | llvm/test/ExecutionEngine/MCJIT/tlvtest.ll | 10 | ||||
-rw-r--r-- | llvm/test/ExecutionEngine/OrcMCJIT/tlvtest.ll | 10 |
2 files changed, 20 insertions, 0 deletions
diff --git a/llvm/test/ExecutionEngine/MCJIT/tlvtest.ll b/llvm/test/ExecutionEngine/MCJIT/tlvtest.ll new file mode 100644 index 00000000000..2596dabb63f --- /dev/null +++ b/llvm/test/ExecutionEngine/MCJIT/tlvtest.ll @@ -0,0 +1,10 @@ +; RUN: %lli %s > /dev/null + +@x = thread_local local_unnamed_addr global i32 0 + +define i32 @main() { +entry: + store i32 42, i32* @x + ret i32 0 +} + diff --git a/llvm/test/ExecutionEngine/OrcMCJIT/tlvtest.ll b/llvm/test/ExecutionEngine/OrcMCJIT/tlvtest.ll new file mode 100644 index 00000000000..2596dabb63f --- /dev/null +++ b/llvm/test/ExecutionEngine/OrcMCJIT/tlvtest.ll @@ -0,0 +1,10 @@ +; RUN: %lli %s > /dev/null + +@x = thread_local local_unnamed_addr global i32 0 + +define i32 @main() { +entry: + store i32 42, i32* @x + ret i32 0 +} + |