OLD | NEW |
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 |
OLD | NEW |