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

Unified Diff: test/Transforms/NaCl/expand-tls.ll

Issue 1151093004: Changes from 3.7 merge to files not in upstream (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-llvm.git@master
Patch Set: Created 5 years, 7 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/NaCl/expand-tls.ll
diff --git a/test/Transforms/NaCl/expand-tls.ll b/test/Transforms/NaCl/expand-tls.ll
index 76859194eb9ff74bb6860ba3418d9f079a51e6fe..b1159729544bfd6a0fe4635dc79b25b111ef84c6 100644
--- a/test/Transforms/NaCl/expand-tls.ll
+++ b/test/Transforms/NaCl/expand-tls.ll
@@ -25,7 +25,7 @@ define i64* @get_tvar1() {
; CHECK: define i64* @get_tvar1()
; CHECK: %tls_raw = call i8* @llvm.nacl.read.tp()
; CHECK: %tls_struct = bitcast i8* %tls_raw to %tls_struct*
-; CHECK: %field = getelementptr %tls_struct* %tls_struct, i32 -1, i32 0, i32 0
+; CHECK: %field = getelementptr %tls_struct, %tls_struct* %tls_struct, i32 -1, i32 0, i32 0
; CHECK: ret i64* %field
@@ -34,7 +34,7 @@ define i32* @get_tvar2() {
}
; Much the same as for get_tvar1.
; CHECK: define i32* @get_tvar2()
-; CHECK: %field = getelementptr %tls_struct* %tls_struct, i32 -1, i32 0, i32 1
+; CHECK: %field = getelementptr %tls_struct, %tls_struct* %tls_struct, i32 -1, i32 0, i32 1
; Check that we define global variables for TLS templates
@@ -53,13 +53,13 @@ define i8* @get_tls_template_tdata_end() {
ret i8* @__tls_template_tdata_end
}
; CHECK: define i8* @get_tls_template_tdata_end()
-; CHECK: ret i8* bitcast (%tls_init_template* getelementptr inbounds (%tls_init_template* @__tls_template_start, i32 1) to i8*)
+; CHECK: ret i8* bitcast (%tls_init_template* getelementptr inbounds (%tls_init_template, %tls_init_template* @__tls_template_start, i32 1) to i8*)
define i8* @get_tls_template_end() {
ret i8* @__tls_template_end
}
; CHECK: define i8* @get_tls_template_end()
-; CHECK: ret i8* bitcast (%tls_struct* getelementptr (%tls_struct* bitcast (%tls_init_template* @__tls_template_start to %tls_struct*), i32 1) to i8*)
+; CHECK: ret i8* bitcast (%tls_struct* getelementptr (%tls_struct, %tls_struct* bitcast (%tls_init_template* @__tls_template_start to %tls_struct*), i32 1) to i8*)
; Check that we define the TLS layout functions

Powered by Google App Engine
This is Rietveld 408576698