comparison test/CodeGen/X86/emutls.ll @ 100:7d135dc70f03 LLVM 3.9

LLVM 3.9
author Miyagi Mitsuki <e135756@ie.u-ryukyu.ac.jp>
date Tue, 26 Jan 2016 22:53:40 +0900
parents afa8332a0e37
children 803732b1fca8
comparison
equal deleted inserted replaced
96:6418606d0ead 100:7d135dc70f03
19 ; X32-NEXT: retl 19 ; X32-NEXT: retl
20 ; X64-LABEL: my_get_xyz: 20 ; X64-LABEL: my_get_xyz:
21 ; X64: movl $my_emutls_v_xyz, %edi 21 ; X64: movl $my_emutls_v_xyz, %edi
22 ; X64-NEXT: callq my_emutls_get_address 22 ; X64-NEXT: callq my_emutls_get_address
23 ; X64-NEXT: movl (%rax), %eax 23 ; X64-NEXT: movl (%rax), %eax
24 ; X64-NEXT: popq %rdx 24 ; X64-NEXT: popq %rcx
25 ; X64-NEXT: retq 25 ; X64-NEXT: retq
26 26
27 entry: 27 entry:
28 %call = call i8* @my_emutls_get_address(i8* bitcast (i8** @my_emutls_v_xyz to i8*)) 28 %call = call i8* @my_emutls_get_address(i8* bitcast (i8** @my_emutls_v_xyz to i8*))
29 %0 = bitcast i8* %call to i32* 29 %0 = bitcast i8* %call to i32*
48 ; X32-NEXT: retl 48 ; X32-NEXT: retl
49 ; X64-LABEL: f1: 49 ; X64-LABEL: f1:
50 ; X64: movl $__emutls_v.i1, %edi 50 ; X64: movl $__emutls_v.i1, %edi
51 ; X64-NEXT: callq __emutls_get_address 51 ; X64-NEXT: callq __emutls_get_address
52 ; X64-NEXT: movl (%rax), %eax 52 ; X64-NEXT: movl (%rax), %eax
53 ; X64-NEXT: popq %rdx 53 ; X64-NEXT: popq %rcx
54 ; X64-NEXT: retq 54 ; X64-NEXT: retq
55 55
56 entry: 56 entry:
57 %tmp1 = load i32, i32* @i1 57 %tmp1 = load i32, i32* @i1
58 ret i32 %tmp1 58 ret i32 %tmp1
65 ; X32-NEXT: addl $12, %esp 65 ; X32-NEXT: addl $12, %esp
66 ; X32-NEXT: retl 66 ; X32-NEXT: retl
67 ; X64-LABEL: f2: 67 ; X64-LABEL: f2:
68 ; X64: movl $__emutls_v.i1, %edi 68 ; X64: movl $__emutls_v.i1, %edi
69 ; X64-NEXT: callq __emutls_get_address 69 ; X64-NEXT: callq __emutls_get_address
70 ; X64-NEXT: popq %rdx 70 ; X64-NEXT: popq %rcx
71 ; X64-NEXT: retq 71 ; X64-NEXT: retq
72 72
73 entry: 73 entry:
74 ret i32* @i1 74 ret i32* @i1
75 } 75 }