Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1286)

Unified Diff: test/Transforms/MinSFI/strip-tls.ll

Issue 939073008: Rebased PNaCl localmods in LLVM to 223109 (Closed)
Patch Set: undo localmod Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: test/Transforms/MinSFI/strip-tls.ll
diff --git a/test/Transforms/MinSFI/strip-tls.ll b/test/Transforms/MinSFI/strip-tls.ll
new file mode 100644
index 0000000000000000000000000000000000000000..41c33bd09856bbf28d603ec7763079f79a8f10ed
--- /dev/null
+++ b/test/Transforms/MinSFI/strip-tls.ll
@@ -0,0 +1,23 @@
+; RUN: opt %s -minsfi-strip-tls -S | FileCheck %s
+
+target datalayout = "p:32:32:32"
+target triple = "le32-unknown-nacl"
+
+@internal_shared = internal global i32 111
+@internal_thread_local = internal thread_local global i32 222
+
+@external_shared = external global i64
+@external_thread_local = external thread_local global i64
+
+@other_attr = thread_local addrspace(5) constant float 1.000000e+00,
+ section "foo", align 4
+@tls_model = thread_local(initialexec) global i32 555
+
+; CHECK: @internal_shared = internal global i32 111
+; CHECK: @internal_thread_local = internal global i32 222
+
+; CHECK: @external_shared = external global i64
+; CHECK: @external_thread_local = external global i64
+
+; CHECK: @other_attr = addrspace(5) constant float 1.000000e+00, section "foo", align 4
+; CHECK: @tls_model = global i32 555
« no previous file with comments | « test/Transforms/MinSFI/sandbox-memory-accesses-unhandled-intrinsic.ll ('k') | test/Transforms/MinSFI/substitute-undefs.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698