Lines Matching refs:addrspace
7 define i8 addrspace(4)* @f_0() {
9 ; CHECK-NEXT: ret i8 addrspace(4)* getelementptr (i8, i8 addrspace(4)* null, i64 50)
11 %result = getelementptr i8, i8 addrspace(4)* null, i64 50
12 ret i8 addrspace(4)* %result
15 define i8 addrspace(3)* @f_1() {
16 ; inttoptr is fine here since addrspace(3) is integral.
18 ; CHECK-NEXT: ret i8 addrspace(3)* inttoptr (i64 50 to i8 addrspace(3)*)
20 %result = getelementptr i8, i8 addrspace(3)* null, i64 50
21 ret i8 addrspace(3)* %result
24 define void @f_2(i8 addrspace(4)** %ptr0, i8 addrspace(4)** %ptr1) {
29 ; CHECK-NEXT: [[VAL:%.*]] = load i8 addrspace(4)*, i8 addrspace(4)** [[PTR0:%.*]], align 8
30 ; CHECK-NEXT: store i8 addrspace(4)* [[VAL]], i8 addrspace(4)** [[PTR1:%.*]], align 8
34 %val = load i8 addrspace(4)*, i8 addrspace(4)** %ptr0
35 store i8 addrspace(4)* %val, i8 addrspace(4)** %ptr1
39 define void @f_3(i8 addrspace(3)** %ptr0, i8 addrspace(3)** %ptr1) {
44 ; CHECK-NEXT: [[VAL:%.*]] = load i8 addrspace(3)*, i8 addrspace(3)** [[PTR0:%.*]], align 8
45 ; CHECK-NEXT: store i8 addrspace(3)* [[VAL]], i8 addrspace(3)** [[PTR1:%.*]], align 8
49 %val = load i8 addrspace(3)*, i8 addrspace(3)** %ptr0
50 store i8 addrspace(3)* %val, i8 addrspace(3)** %ptr1
54 define i64 @g(i8 addrspace(4)** %gp) {
56 ; CHECK-NEXT: [[DOTPRE:%.*]] = load i8 addrspace(4)*, i8 addrspace(4)** [[GP:%.*]], align 8
57 ; CHECK-NEXT: [[V74:%.*]] = call i8 addrspace(4)* @alloc()
58 ; CHECK-NEXT: [[V77:%.*]] = getelementptr i8, i8 addrspace(4)* [[V74]], i64 -8
59 ; CHECK-NEXT: [[TMP1:%.*]] = bitcast i8 addrspace(4)* [[V77]] to i8 addrspace(4)* addrspace(4)*
60 ; CHECK-NEXT: [[TMP2:%.*]] = addrspacecast i8 addrspace(4)* addrspace(4)* [[TMP1]] to i8 addrspa…
61 ; CHECK-NEXT: store i8 addrspace(4)* [[DOTPRE]], i8 addrspace(4)** [[TMP2]], align 8
62 ; CHECK-NEXT: [[TMP3:%.*]] = bitcast i8 addrspace(4)* [[V77]] to i64 addrspace(4)*
63 ; CHECK-NEXT: [[V80:%.*]] = addrspacecast i64 addrspace(4)* [[TMP3]] to i64*
67 %.pre = load i8 addrspace(4)*, i8 addrspace(4)** %gp, align 8
68 %v74 = call i8 addrspace(4)* @alloc()
69 %v75 = addrspacecast i8 addrspace(4)* %v74 to i8*
70 %v76 = bitcast i8* %v75 to i8 addrspace(4)**
71 %v77 = getelementptr i8 addrspace(4)*, i8 addrspace(4)** %v76, i64 -1
72 store i8 addrspace(4)* %.pre, i8 addrspace(4)** %v77, align 8
73 %v80 = bitcast i8 addrspace(4)** %v77 to i64*
78 define i64 @g2(i8* addrspace(4)* %gp) {
80 ; CHECK-NEXT: [[DOTPRE:%.*]] = load i8*, i8* addrspace(4)* [[GP:%.*]], align 8
81 ; CHECK-NEXT: [[V74:%.*]] = call i8 addrspace(4)* @alloc()
82 ; CHECK-NEXT: [[V77:%.*]] = getelementptr i8, i8 addrspace(4)* [[V74]], i64 -8
83 ; CHECK-NEXT: [[TMP1:%.*]] = bitcast i8 addrspace(4)* [[V77]] to i8* addrspace(4)*
84 ; CHECK-NEXT: store i8* [[DOTPRE]], i8* addrspace(4)* [[TMP1]], align 8
88 %.pre = load i8*, i8* addrspace(4)* %gp, align 8
89 %v74 = call i8 addrspace(4)* @alloc()
90 %v76 = bitcast i8 addrspace(4)* %v74 to i8* addrspace(4)*
91 %v77 = getelementptr i8*, i8* addrspace(4)* %v76, i64 -1
92 store i8* %.pre, i8* addrspace(4)* %v77, align 8
93 %v80 = bitcast i8* addrspace(4)* %v77 to i64 addrspace(4)*
94 %v81 = load i64, i64 addrspace(4)* %v80, align 8
98 declare i8 addrspace(4)* @alloc()
100 define i64 @f_4(i8 addrspace(4)* %v0) {
102 … [[V6:%.*]] = call i64 bitcast (i64 (i64)* @f_5 to i64 (i8 addrspace(4)*)*)(i8 addrspace(4)* [[…
105 %v5 = bitcast i64 (i64)* @f_5 to i64 (i8 addrspace(4)*)*
106 %v6 = call i64 %v5(i8 addrspace(4)* %v0)