Lines Matching full:plain
0 ; "PLAIN" - No optimizations. This tests the target-independent
3 ; RUN: opt -S -o - %s | FileCheck --check-prefix=PLAIN %s
10 ; PLAIN: @G8 = global i8 addrspace(1)* getelementptr (i8, i8 addrspace(1)* inttoptr (i32 1 to i8 addrspace(1)*), i32 -1)
12 ; PLAIN: @G1 = global i1 addrspace(2)* getelementptr (i1, i1 addrspace(2)* inttoptr (i8 1 to i1 addrspace(2)*), i8 -1)
14 ; PLAIN: @F8 = global i8 addrspace(1)* getelementptr (i8, i8 addrspace(1)* inttoptr (i32 1 to i8 addrspace(1)*), i32 -2)
16 ; PLAIN: @F1 = global i1 addrspace(2)* getelementptr (i1, i1 addrspace(2)* inttoptr (i8 1 to i1 addrspace(2)*), i8 -2)
18 ; PLAIN: @H8 = global i8 addrspace(1)* getelementptr (i8, i8 addrspace(1)* null, i32 -1)
20 ; PLAIN: @H1 = global i1 addrspace(2)* getelementptr (i1, i1 addrspace(2)* null, i8 -1)
27 ; PLAIN-X: @a = constant i64 mul (i64 ptrtoint (double addrspace(4)* getelementptr (double, double addrspace(4)* null, i32 1) to i64), i64 2310)
30 ; PLAIN-X: @b = constant i64 ptrtoint (double addrspace(4)* getelementptr ({ i1, double }, { i1, double }* null, i64 0, i32 1) to i64)
33 ; PLAIN-X: @c = constant i64 mul nuw (i64 ptrtoint (double addrspace(4)* getelementptr (double, double addrspace(4)* null, i32 1) to i64), i64 2)
36 ; PLAIN-X: @d = constant i64 mul nuw (i64 ptrtoint (double addrspace(4)* getelementptr (double, double addrspace(4)* null, i32 1) to i64), i64 11)
39 ; PLAIN-X: @e = constant i64 ptrtoint (double addrspace(4)* getelementptr ({ double, float, double, double }, { double, float, double, double }* null, i64 0, i32 2) to i64)
42 ; PLAIN-X: @f = constant i64 1
45 ; PLAIN-X: @g = constant i64 ptrtoint (double addrspace(4)* getelementptr ({ i1, double }, { i1, double }* null, i64 0, i32 1) to i64)
48 ; PLAIN-X: @h = constant i64 ptrtoint (i1 addrspace(2)* getelementptr (i1, i1 addrspace(2)* null, i32 1) to i64)
51 ; PLAIN-X: @i = constant i64 ptrtoint (i1 addrspace(2)* getelementptr ({ i1, i1 addrspace(2)* }, { i1, i1 addrspace(2)* }* null, i64 0, i32 1) to i64)
56 ; PLAIN: @M = constant i64 addrspace(4)* getelementptr (i64, i64 addrspace(4)* null, i32 1)
57 ; PLAIN: @N = constant i64 addrspace(4)* getelementptr ({ i64, i64 }, { i64, i64 } addrspace(4)* null, i32 0, i32 1)
58 ; PLAIN: @O = constant i64 addrspace(4)* getelementptr ([2 x i64], [2 x i64] addrspace(4)* null, i32 0, i32 1)
66 ; PLAIN-X: @Y = global [3 x { i32, i32 }]addrspace(3)* getelementptr inbounds ([3 x { i32, i32 }], [3 x { i32, i32 }]addrspace(3)* @ext, i64 2)
70 ; PLAIN-X: @Z = global i32addrspace(3)* getelementptr inbounds (i32, i32addrspace(3)* getelementptr inbounds ([3 x { i32, i32 }], [3 x { i32, i32 }]addrspace(3)* @ext, i64 0, i64 1, i32 0), i64 1)
77 ; PLAIN: define i8 addrspace(1)* @goo8() #0 {
78 ; PLAIN: %t = bitcast i8 addrspace(1)* getelementptr (i8, i8 addrspace(1)* inttoptr (i32 1 to i8 addrspace(1)*), i32 -1) to i8 addrspace(1)*
79 ; PLAIN: ret i8 addrspace(1)* %t
80 ; PLAIN: }
81 ; PLAIN: define i1 addrspace(2)* @goo1() #0 {
82 ; PLAIN: %t = bitcast i1 addrspace(2)* getelementptr (i1, i1 addrspace(2)* inttoptr (i32 1 to i1 addrspace(2)*), i32 -1) to i1 addrspace(2)*
83 ; PLAIN: ret i1 addrspace(2)* %t
84 ; PLAIN: }
85 ; PLAIN: define i8 addrspace(1)* @foo8() #0 {
86 ; PLAIN: %t = bitcast i8 addrspace(1)* getelementptr (i8, i8 addrspace(1)* inttoptr (i32 1 to i8 addrspace(1)*), i32 -2) to i8 addrspace(1)*
87 ; PLAIN: ret i8 addrspace(1)* %t
88 ; PLAIN: }
89 ; PLAIN: define i1 addrspace(2)* @foo1() #0 {
90 ; PLAIN: %t = bitcast i1 addrspace(2)* getelementptr (i1, i1 addrspace(2)* inttoptr (i32 1 to i1 addrspace(2)*), i32 -2) to i1 addrspace(2)*
91 ; PLAIN: ret i1 addrspace(2)* %t
92 ; PLAIN: }
93 ; PLAIN: define i8 addrspace(1)* @hoo8() #0 {
94 ; PLAIN: %t = bitcast i8 addrspace(1)* getelementptr (i8, i8 addrspace(1)* null, i32 -1) to i8 addrspace(1)*
95 ; PLAIN: ret i8 addrspace(1)* %t
96 ; PLAIN: }
97 ; PLAIN: define i1 addrspace(2)* @hoo1() #0 {
98 ; PLAIN: %t = bitcast i1 addrspace(2)* getelementptr (i1, i1 addrspace(2)* null, i32 -1) to i1 addrspace(2)*
99 ; PLAIN: ret i1 addrspace(2)* %t
100 ; PLAIN: }
126 ; PLAIN-X: define i64 @fa() #0 {
127 ; PLAIN-X: %t = bitcast i64 mul (i64 ptrtoint (double addrspace(4)* getelementptr (double, double addrspace(4)* null, i32 1) to i64), i64 2310) to i64
128 ; PLAIN-X: ret i64 %t
129 ; PLAIN-X: }
130 ; PLAIN-X: define i64 @fb() #0 {
131 ; PLAIN-X: %t = bitcast i64 ptrtoint (double addrspace(4)* getelementptr ({ i1, double }, { i1, double }* null, i64 0, i32 1) to i64) to i64
132 ; PLAIN-X: ret i64 %t
133 ; PLAIN-X: }
134 ; PLAIN-X: define i64 @fc() #0 {
135 ; PLAIN-X: %t = bitcast i64 mul nuw (i64 ptrtoint (double addrspace(4)* getelementptr (double, double addrspace(4)* null, i32 1) to i64), i64 2) to i64
136 ; PLAIN-X: ret i64 %t
137 ; PLAIN-X: }
138 ; PLAIN-X: define i64 @fd() #0 {
139 ; PLAIN-X: %t = bitcast i64 mul nuw (i64 ptrtoint (double addrspace(4)* getelementptr (double, double addrspace(4)* null, i32 1) to i64), i64 11) to i64
140 ; PLAIN-X: ret i64 %t
141 ; PLAIN-X: }
142 ; PLAIN-X: define i64 @fe() #0 {
143 ; PLAIN-X: %t = bitcast i64 ptrtoint (double addrspace(4)* getelementptr ({ double, float, double, double }, { double, float, double, double }* null, i64 0, i32 2) to i64) to i64
144 ; PLAIN-X: ret i64 %t
145 ; PLAIN-X: }
146 ; PLAIN-X: define i64 @ff() #0 {
147 ; PLAIN-X: %t = bitcast i64 1 to i64
148 ; PLAIN-X: ret i64 %t
149 ; PLAIN-X: }
150 ; PLAIN-X: define i64 @fg() #0 {
151 ; PLAIN-X: %t = bitcast i64 ptrtoint (double addrspace(4)* getelementptr ({ i1, double }, { i1, double }* null, i64 0, i32 1) to i64) to i64
152 ; PLAIN-X: ret i64 %t
153 ; PLAIN-X: }
154 ; PLAIN-X: define i64 @fh() #0 {
155 ; PLAIN-X: %t = bitcast i64 ptrtoint (i1 addrspace(2)* getelementptr (i1, i1 addrspace(2)* null, i32 1) to i64) to i64
156 ; PLAIN-X: ret i64 %t
157 ; PLAIN-X: }
158 ; PLAIN-X: define i64 @fi() #0 {
159 ; PLAIN-X: %t = bitcast i64 ptrtoint (i1 addrspace(2)* getelementptr ({ i1, i1 addrspace(2)* }, { i1, i1 addrspace(2)* }* null, i64 0, i32 1) to i64) to i64
160 ; PLAIN-X: ret i64 %t
161 ; PLAIN-X: }
199 ; PLAIN: define i64* @fM() #0 {
200 ; PLAIN: %t = bitcast i64* getelementptr (i64, i64* null, i32 1) to i64*
201 ; PLAIN: ret i64* %t
202 ; PLAIN: }
203 ; PLAIN: define i64* @fN() #0 {
204 ; PLAIN: %t = bitcast i64* getelementptr ({ i64, i64 }, { i64, i64 }* null, i32 0, i32 1) to i64*
205 ; PLAIN: ret i64* %t
206 ; PLAIN: }
207 ; PLAIN: define i64* @fO() #0 {
208 ; PLAIN: %t = bitcast i64* getelementptr ([2 x i64], [2 x i64]* null, i32 0, i32 1) to i64*
209 ; PLAIN: ret i64* %t
210 ; PLAIN: }
225 ; PLAIN: define i32 addrspace(1)* @fZ() #0 {
226 ; PLAIN: %t = bitcast i32 addrspace(1)* getelementptr inbounds (i32, i32 addrspace(1)* getelementptr inbounds ([3 x { i32, i32 }], [3 x { i32, i32 }] addrspace(1)* @ext2, i64 0, i64 1, i32 0), i64 1) to i32 addrspace(1)*
227 ; PLAIN: ret i32 addrspace(1)* %t
228 ; PLAIN: }