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

Side by Side Diff: test/Transforms/NaCl/expand-tls-bss.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 unified diff | Download patch
OLDNEW
1 ; RUN: opt < %s -nacl-expand-tls -S | FileCheck %s 1 ; RUN: opt < %s -nacl-expand-tls -S | FileCheck %s
2 2
3 3
4 @tvar_bss1 = thread_local global i64 0 4 @tvar_bss1 = thread_local global i64 0
5 @tvar_bss2 = thread_local global i32 0 5 @tvar_bss2 = thread_local global i32 0
6 6
7 7
8 ; CHECK: %tls_struct = type <{ %tls_init_template, %tls_bss_template }> 8 ; CHECK: %tls_struct = type <{ %tls_init_template, %tls_bss_template }>
9 ; CHECK: %tls_bss_template = type <{ i64, i32, [4 x i8] }> 9 ; CHECK: %tls_bss_template = type <{ i64, i32, [4 x i8] }>
10 10
11 11
12 define i64* @get_tvar_bss1() { 12 define i64* @get_tvar_bss1() {
13 ret i64* @tvar_bss1 13 ret i64* @tvar_bss1
14 } 14 }
15 ; CHECK: define i64* @get_tvar_bss1() 15 ; CHECK: define i64* @get_tvar_bss1()
16 ; CHECK: %field = getelementptr %tls_struct* %tls_struct, i32 -1, i32 1, i32 0 16 ; CHECK: %field = getelementptr %tls_struct, %tls_struct* %tls_struct, i32 -1, i 32 1, i32 0
17 ; CHECK: ret i64* %field 17 ; CHECK: ret i64* %field
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698