Mercurial > hg > CbC > CbC_llvm
comparison test/CodeGen/X86/tls-local-dynamic.ll @ 95:afa8332a0e37 LLVM3.8
LLVM 3.8
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 13 Oct 2015 17:48:58 +0900 |
parents | 95c75e76d11b |
children | 803732b1fca8 |
comparison
equal
deleted
inserted
replaced
84:f3e34b893a5f | 95:afa8332a0e37 |
---|---|
30 ; CHECK-NOT: __tls_get_addr | 30 ; CHECK-NOT: __tls_get_addr |
31 ; CHECK: je | 31 ; CHECK: je |
32 | 32 |
33 | 33 |
34 if.else: | 34 if.else: |
35 %0 = load i32* @x, align 4 | 35 %0 = load i32, i32* @x, align 4 |
36 %cmp1 = icmp eq i32 %i, 2 | 36 %cmp1 = icmp eq i32 %i, 2 |
37 br i1 %cmp1, label %if.then2, label %return | 37 br i1 %cmp1, label %if.then2, label %return |
38 ; Now we call __tls_get_addr. | 38 ; Now we call __tls_get_addr. |
39 ; CHECK: # %if.else | 39 ; CHECK: # %if.else |
40 ; CHECK: leaq x@TLSLD(%rip), %rdi | 40 ; CHECK: leaq x@TLSLD(%rip), %rdi |
41 ; CHECK-NEXT: callq __tls_get_addr@PLT | 41 ; CHECK-NEXT: callq __tls_get_addr@PLT |
42 ; CHECK: x@DTPOFF | 42 ; CHECK: x@DTPOFF |
43 | 43 |
44 | 44 |
45 if.then2: | 45 if.then2: |
46 %1 = load i32* @y, align 4 | 46 %1 = load i32, i32* @y, align 4 |
47 %add = add nsw i32 %1, %0 | 47 %add = add nsw i32 %1, %0 |
48 br label %return | 48 br label %return |
49 ; This accesses TLS, but is dominated by the previous block, | 49 ; This accesses TLS, but is dominated by the previous block, |
50 ; so should not have to call __tls_get_addr again. | 50 ; so should not have to call __tls_get_addr again. |
51 ; CHECK: # %if.then2 | 51 ; CHECK: # %if.then2 |