summaryrefslogtreecommitdiff
path: root/test/Instrumentation
diff options
context:
space:
mode:
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>2013-05-16 09:14:05 +0000
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>2013-05-16 09:14:05 +0000
commit8f79b2f762a1f6ca933892aed35bfb2471c39201 (patch)
tree52cee3c9b8cc19bc67675602591e009190bec6e6 /test/Instrumentation
parentd4cdf88cb924fcf3ee8cf38be2c84d84465f372c (diff)
downloadllvm-8f79b2f762a1f6ca933892aed35bfb2471c39201.tar.gz
llvm-8f79b2f762a1f6ca933892aed35bfb2471c39201.tar.bz2
llvm-8f79b2f762a1f6ca933892aed35bfb2471c39201.tar.xz
[msan] Switch TLS globals to initial-exec model.
They are always defined in the main executable. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181994 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Instrumentation')
-rw-r--r--test/Instrumentation/MemorySanitizer/msan_basic.ll11
1 files changed, 10 insertions, 1 deletions
diff --git a/test/Instrumentation/MemorySanitizer/msan_basic.ll b/test/Instrumentation/MemorySanitizer/msan_basic.ll
index 1e7a31793d..0d9ac8e1fd 100644
--- a/test/Instrumentation/MemorySanitizer/msan_basic.ll
+++ b/test/Instrumentation/MemorySanitizer/msan_basic.ll
@@ -5,8 +5,17 @@ target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f3
; Check the presence of __msan_init
; CHECK: @llvm.global_ctors {{.*}} @__msan_init
-; Check the presence and the linkage type of __msan_track_origins
+; Check the presence and the linkage type of __msan_track_origins and
+; other interface symbols.
; CHECK: @__msan_track_origins = weak_odr constant i32 0
+; CHECK: @__msan_keep_going = weak_odr constant i32 0
+; CHECK: @__msan_retval_tls = external thread_local(initialexec) global [{{.*}}]
+; CHECK: @__msan_retval_origin_tls = external thread_local(initialexec) global i32
+; CHECK: @__msan_param_tls = external thread_local(initialexec) global [{{.*}}]
+; CHECK: @__msan_param_origin_tls = external thread_local(initialexec) global [{{.*}}]
+; CHECK: @__msan_va_arg_tls = external thread_local(initialexec) global [{{.*}}]
+; CHECK: @__msan_va_arg_overflow_size_tls = external thread_local(initialexec) global i64
+; CHECK: @__msan_origin_tls = external thread_local(initialexec) global i32
; Check instrumentation of stores