• Home
  • Raw
  • Download

Lines Matching +full:- +full:i1

2 ; RUN: llc -mtriple=x86_64-unknown-unknown -mattr=+sse2,-sse4.1 < %s | FileCheck %s
8 ; CHECK-LABEL: test1:
10 ; CHECK-NEXT: shufps {{.*#+}} xmm0 = xmm0[0,2],xmm1[1,3]
11 ; CHECK-NEXT: shufps {{.*#+}} xmm0 = xmm0[0,2,1,3]
12 ; CHECK-NEXT: retq
13 %1 = select <4 x i1> <i1 true, i1 false, i1 true, i1 false>, <4 x float> %a, <4 x float> %b
18 ; CHECK-LABEL: test2:
20 ; CHECK-NEXT: movsd {{.*#+}} xmm1 = xmm0[0],xmm1[1]
21 ; CHECK-NEXT: movapd %xmm1, %xmm0
22 ; CHECK-NEXT: retq
23 %1 = select <4 x i1> <i1 true, i1 true, i1 false, i1 false>, <4 x float> %a, <4 x float> %b
28 ; CHECK-LABEL: test3:
30 ; CHECK-NEXT: movsd {{.*#+}} xmm0 = xmm1[0],xmm0[1]
31 ; CHECK-NEXT: retq
32 %1 = select <4 x i1> <i1 false, i1 false, i1 true, i1 true>, <4 x float> %a, <4 x float> %b
37 ; CHECK-LABEL: test4:
39 ; CHECK-NEXT: movaps %xmm1, %xmm0
40 ; CHECK-NEXT: retq
41 %1 = select <4 x i1> <i1 false, i1 false, i1 false, i1 false>, <4 x float> %a, <4 x float> %b
46 ; CHECK-LABEL: test5:
48 ; CHECK-NEXT: retq
49 %1 = select <4 x i1> <i1 true, i1 true, i1 true, i1 true>, <4 x float> %a, <4 x float> %b
54 ; CHECK-LABEL: test6:
56 ; CHECK-NEXT: retq
57 …%1 = select <8 x i1> <i1 true, i1 false, i1 true, i1 false, i1 true, i1 false, i1 true, i1 false>,…
62 ; CHECK-LABEL: test7:
64 ; CHECK-NEXT: movsd {{.*#+}} xmm1 = xmm0[0],xmm1[1]
65 ; CHECK-NEXT: movapd %xmm1, %xmm0
66 ; CHECK-NEXT: retq
67 …%1 = select <8 x i1> <i1 true, i1 true, i1 true, i1 true, i1 false, i1 false, i1 false, i1 false>,…
72 ; CHECK-LABEL: test8:
74 ; CHECK-NEXT: movsd {{.*#+}} xmm0 = xmm1[0],xmm0[1]
75 ; CHECK-NEXT: retq
76 …%1 = select <8 x i1> <i1 false, i1 false, i1 false, i1 false, i1 true, i1 true, i1 true, i1 true>,…
81 ; CHECK-LABEL: test9:
83 ; CHECK-NEXT: movaps %xmm1, %xmm0
84 ; CHECK-NEXT: retq
85 …%1 = select <8 x i1> <i1 false, i1 false, i1 false, i1 false, i1 false, i1 false, i1 false, i1 fal…
90 ; CHECK-LABEL: test10:
92 ; CHECK-NEXT: retq
93 …%1 = select <8 x i1> <i1 true, i1 true, i1 true, i1 true, i1 true, i1 true, i1 true, i1 true>, <8 …
98 ; CHECK-LABEL: test11:
100 ; CHECK-NEXT: movaps {{.*#+}} xmm2 = [0,65535,65535,0,65535,65535,65535,65535]
101 ; CHECK-NEXT: andps %xmm2, %xmm0
102 ; CHECK-NEXT: andnps %xmm1, %xmm2
103 ; CHECK-NEXT: orps %xmm2, %xmm0
104 ; CHECK-NEXT: retq
105 …%1 = select <8 x i1> <i1 false, i1 true, i1 true, i1 false, i1 undef, i1 true, i1 true, i1 undef>,…
110 ; CHECK-LABEL: test12:
112 ; CHECK-NEXT: movaps %xmm1, %xmm0
113 ; CHECK-NEXT: retq
114 …%1 = select <8 x i1> <i1 false, i1 false, i1 undef, i1 false, i1 false, i1 false, i1 false, i1 und…
119 ; CHECK-LABEL: test13:
121 ; CHECK-NEXT: movaps %xmm1, %xmm0
122 ; CHECK-NEXT: retq
123 …%1 = select <8 x i1> <i1 undef, i1 undef, i1 undef, i1 undef, i1 undef, i1 undef, i1 undef, i1 und…
127 ; Fold (vselect (build_vector AllOnes), N1, N2) -> N1
129 ; CHECK-LABEL: test14:
131 ; CHECK-NEXT: retq
132 %1 = select <4 x i1> <i1 true, i1 undef, i1 true, i1 undef>, <4 x float> %a, <4 x float> %b
137 ; CHECK-LABEL: test15:
139 ; CHECK-NEXT: retq
140 …%1 = select <8 x i1> <i1 true, i1 true, i1 true, i1 undef, i1 undef, i1 true, i1 true, i1 undef>, …
144 ; Fold (vselect (build_vector AllZeros), N1, N2) -> N2
146 ; CHECK-LABEL: test16:
148 ; CHECK-NEXT: movaps %xmm1, %xmm0
149 ; CHECK-NEXT: retq
150 %1 = select <4 x i1> <i1 false, i1 undef, i1 false, i1 undef>, <4 x float> %a, <4 x float> %b
155 ; CHECK-LABEL: test17:
157 ; CHECK-NEXT: movaps %xmm1, %xmm0
158 ; CHECK-NEXT: retq
159 …%1 = select <8 x i1> <i1 false, i1 false, i1 false, i1 undef, i1 undef, i1 false, i1 false, i1 und…
164 ; CHECK-LABEL: test18:
166 ; CHECK-NEXT: movss {{.*#+}} xmm0 = xmm1[0],xmm0[1,2,3]
167 ; CHECK-NEXT: retq
168 %1 = select <4 x i1> <i1 false, i1 true, i1 true, i1 true>, <4 x float> %a, <4 x float> %b
173 ; CHECK-LABEL: test19:
175 ; CHECK-NEXT: movss {{.*#+}} xmm0 = xmm1[0],xmm0[1,2,3]
176 ; CHECK-NEXT: retq
177 %1 = select <4 x i1> <i1 false, i1 true, i1 true, i1 true>, <4 x i32> %a, <4 x i32> %b
182 ; CHECK-LABEL: test20:
184 ; CHECK-NEXT: movsd {{.*#+}} xmm0 = xmm1[0],xmm0[1]
185 ; CHECK-NEXT: retq
186 %1 = select <2 x i1> <i1 false, i1 true>, <2 x double> %a, <2 x double> %b
191 ; CHECK-LABEL: test21:
193 ; CHECK-NEXT: movsd {{.*#+}} xmm0 = xmm1[0],xmm0[1]
194 ; CHECK-NEXT: retq
195 %1 = select <2 x i1> <i1 false, i1 true>, <2 x i64> %a, <2 x i64> %b
200 ; CHECK-LABEL: test22:
202 ; CHECK-NEXT: movss {{.*#+}} xmm1 = xmm0[0],xmm1[1,2,3]
203 ; CHECK-NEXT: movaps %xmm1, %xmm0
204 ; CHECK-NEXT: retq
205 %1 = select <4 x i1> <i1 true, i1 false, i1 false, i1 false>, <4 x float> %a, <4 x float> %b
210 ; CHECK-LABEL: test23:
212 ; CHECK-NEXT: movss {{.*#+}} xmm1 = xmm0[0],xmm1[1,2,3]
213 ; CHECK-NEXT: movaps %xmm1, %xmm0
214 ; CHECK-NEXT: retq
215 %1 = select <4 x i1> <i1 true, i1 false, i1 false, i1 false>, <4 x i32> %a, <4 x i32> %b
220 ; CHECK-LABEL: test24:
222 ; CHECK-NEXT: movsd {{.*#+}} xmm1 = xmm0[0],xmm1[1]
223 ; CHECK-NEXT: movapd %xmm1, %xmm0
224 ; CHECK-NEXT: retq
225 %1 = select <2 x i1> <i1 true, i1 false>, <2 x double> %a, <2 x double> %b
230 ; CHECK-LABEL: test25:
232 ; CHECK-NEXT: movsd {{.*#+}} xmm1 = xmm0[0],xmm1[1]
233 ; CHECK-NEXT: movapd %xmm1, %xmm0
234 ; CHECK-NEXT: retq
235 %1 = select <2 x i1> <i1 true, i1 false>, <2 x i64> %a, <2 x i64> %b
240 ; CHECK-LABEL: select_of_shuffles_0:
242 ; CHECK-NEXT: unpcklpd {{.*#+}} xmm0 = xmm0[0],xmm2[0]
243 ; CHECK-NEXT: unpcklpd {{.*#+}} xmm1 = xmm1[0],xmm3[0]
244 ; CHECK-NEXT: subps %xmm1, %xmm0
245 ; CHECK-NEXT: retq
248 %3 = select <4 x i1> <i1 false, i1 false, i1 true, i1 true>, <4 x float> %2, <4 x float> %1
251 %6 = select <4 x i1> <i1 false, i1 false, i1 true, i1 true>, <4 x float> %5, <4 x float> %4
258 ; CHECK-LABEL: select_illegal:
260 ; CHECK-NEXT: movaps {{[0-9]+}}(%rsp), %xmm4
261 ; CHECK-NEXT: movaps {{[0-9]+}}(%rsp), %xmm5
262 ; CHECK-NEXT: movaps {{[0-9]+}}(%rsp), %xmm6
263 ; CHECK-NEXT: movaps {{[0-9]+}}(%rsp), %xmm7
264 ; CHECK-NEXT: movaps %xmm7, 112(%rdi)
265 ; CHECK-NEXT: movaps %xmm6, 96(%rdi)
266 ; CHECK-NEXT: movaps %xmm5, 80(%rdi)
267 ; CHECK-NEXT: movaps %xmm4, 64(%rdi)
268 ; CHECK-NEXT: movaps %xmm3, 48(%rdi)
269 ; CHECK-NEXT: movaps %xmm2, 32(%rdi)
270 ; CHECK-NEXT: movaps %xmm1, 16(%rdi)
271 ; CHECK-NEXT: movaps %xmm0, (%rdi)
272 ; CHECK-NEXT: movq %rdi, %rax
273 ; CHECK-NEXT: retq
274 …x i1> <i1 true, i1 true, i1 true, i1 true, i1 true, i1 true, i1 true, i1 true, i1 false, i1 false,…