1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=x86_64-apple-darwin -mcpu=knl --show-mc-encoding| FileCheck %s
4 define i32 @test1(float %x) {
7 ; CHECK-NEXT: vmovd %xmm0, %eax ## EVEX TO VEX Compression encoding: [0xc5,0xf9,0x7e,0xc0]
8 ; CHECK-NEXT: retq ## encoding: [0xc3]
9 %res = bitcast float %x to i32
13 define <4 x i32> @test2(i32 %x) {
16 ; CHECK-NEXT: vmovd %edi, %xmm0 ## EVEX TO VEX Compression encoding: [0xc5,0xf9,0x6e,0xc7]
17 ; CHECK-NEXT: retq ## encoding: [0xc3]
18 %res = insertelement <4 x i32>undef, i32 %x, i32 0
22 define <2 x i64> @test3(i64 %x) {
25 ; CHECK-NEXT: vmovq %rdi, %xmm0 ## EVEX TO VEX Compression encoding: [0xc4,0xe1,0xf9,0x6e,0xc7]
26 ; CHECK-NEXT: retq ## encoding: [0xc3]
27 %res = insertelement <2 x i64>undef, i64 %x, i32 0
31 define <4 x i32> @test4(ptr %x) {
34 ; CHECK-NEXT: vmovss {{.*#+}} xmm0 = mem[0],zero,zero,zero
35 ; CHECK-NEXT: ## EVEX TO VEX Compression encoding: [0xc5,0xfa,0x10,0x07]
36 ; CHECK-NEXT: retq ## encoding: [0xc3]
38 %res = insertelement <4 x i32>undef, i32 %y, i32 0
42 define void @test5(float %x, ptr %y) {
45 ; CHECK-NEXT: vmovss %xmm0, (%rdi) ## EVEX TO VEX Compression encoding: [0xc5,0xfa,0x11,0x07]
46 ; CHECK-NEXT: retq ## encoding: [0xc3]
47 store float %x, ptr %y, align 4
51 define void @test6(double %x, ptr %y) {
54 ; CHECK-NEXT: vmovsd %xmm0, (%rdi) ## EVEX TO VEX Compression encoding: [0xc5,0xfb,0x11,0x07]
55 ; CHECK-NEXT: retq ## encoding: [0xc3]
56 store double %x, ptr %y, align 8
60 define float @test7(ptr %x) {
63 ; CHECK-NEXT: vmovss {{.*#+}} xmm0 = mem[0],zero,zero,zero
64 ; CHECK-NEXT: ## EVEX TO VEX Compression encoding: [0xc5,0xfa,0x10,0x07]
65 ; CHECK-NEXT: retq ## encoding: [0xc3]
67 %res = bitcast i32 %y to float
71 define i32 @test8(<4 x i32> %x) {
74 ; CHECK-NEXT: vmovd %xmm0, %eax ## EVEX TO VEX Compression encoding: [0xc5,0xf9,0x7e,0xc0]
75 ; CHECK-NEXT: retq ## encoding: [0xc3]
76 %res = extractelement <4 x i32> %x, i32 0
80 define i64 @test9(<2 x i64> %x) {
83 ; CHECK-NEXT: vmovq %xmm0, %rax ## EVEX TO VEX Compression encoding: [0xc4,0xe1,0xf9,0x7e,0xc0]
84 ; CHECK-NEXT: retq ## encoding: [0xc3]
85 %res = extractelement <2 x i64> %x, i32 0
89 define <4 x i32> @test10(ptr %x) {
90 ; CHECK-LABEL: test10:
92 ; CHECK-NEXT: vmovss {{.*#+}} xmm0 = mem[0],zero,zero,zero
93 ; CHECK-NEXT: ## EVEX TO VEX Compression encoding: [0xc5,0xfa,0x10,0x07]
94 ; CHECK-NEXT: retq ## encoding: [0xc3]
95 %y = load i32, ptr %x, align 4
96 %res = insertelement <4 x i32>zeroinitializer, i32 %y, i32 0
100 define <4 x float> @test11(ptr %x) {
101 ; CHECK-LABEL: test11:
103 ; CHECK-NEXT: vmovss {{.*#+}} xmm0 = mem[0],zero,zero,zero
104 ; CHECK-NEXT: ## EVEX TO VEX Compression encoding: [0xc5,0xfa,0x10,0x07]
105 ; CHECK-NEXT: retq ## encoding: [0xc3]
106 %y = load float, ptr %x, align 4
107 %res = insertelement <4 x float>zeroinitializer, float %y, i32 0
111 define <2 x double> @test12(ptr %x) {
112 ; CHECK-LABEL: test12:
114 ; CHECK-NEXT: vmovsd {{.*#+}} xmm0 = mem[0],zero
115 ; CHECK-NEXT: ## EVEX TO VEX Compression encoding: [0xc5,0xfb,0x10,0x07]
116 ; CHECK-NEXT: retq ## encoding: [0xc3]
117 %y = load double, ptr %x, align 8
118 %res = insertelement <2 x double>zeroinitializer, double %y, i32 0
122 define <2 x i64> @test13(i64 %x) {
123 ; CHECK-LABEL: test13:
125 ; CHECK-NEXT: vmovq %rdi, %xmm0 ## EVEX TO VEX Compression encoding: [0xc4,0xe1,0xf9,0x6e,0xc7]
126 ; CHECK-NEXT: retq ## encoding: [0xc3]
127 %res = insertelement <2 x i64>zeroinitializer, i64 %x, i32 0
131 define <4 x i32> @test14(i32 %x) {
132 ; CHECK-LABEL: test14:
134 ; CHECK-NEXT: vmovd %edi, %xmm0 ## EVEX TO VEX Compression encoding: [0xc5,0xf9,0x6e,0xc7]
135 ; CHECK-NEXT: retq ## encoding: [0xc3]
136 %res = insertelement <4 x i32>zeroinitializer, i32 %x, i32 0
140 define <4 x i32> @test15(ptr %x) {
141 ; CHECK-LABEL: test15:
143 ; CHECK-NEXT: vmovss {{.*#+}} xmm0 = mem[0],zero,zero,zero
144 ; CHECK-NEXT: ## EVEX TO VEX Compression encoding: [0xc5,0xfa,0x10,0x07]
145 ; CHECK-NEXT: retq ## encoding: [0xc3]
146 %y = load i32, ptr %x, align 4
147 %res = insertelement <4 x i32>zeroinitializer, i32 %y, i32 0
151 define <16 x i32> @test16(ptr %addr) {
152 ; CHECK-LABEL: test16:
154 ; CHECK-NEXT: vmovups (%rdi), %zmm0 ## encoding: [0x62,0xf1,0x7c,0x48,0x10,0x07]
155 ; CHECK-NEXT: retq ## encoding: [0xc3]
156 %res = load <16 x i32>, ptr %addr, align 1
160 define <16 x i32> @test17(ptr %addr) {
161 ; CHECK-LABEL: test17:
163 ; CHECK-NEXT: vmovaps (%rdi), %zmm0 ## encoding: [0x62,0xf1,0x7c,0x48,0x28,0x07]
164 ; CHECK-NEXT: retq ## encoding: [0xc3]
165 %res = load <16 x i32>, ptr %addr, align 64
169 define void @test18(ptr %addr, <8 x i64> %data) {
170 ; CHECK-LABEL: test18:
172 ; CHECK-NEXT: vmovaps %zmm0, (%rdi) ## encoding: [0x62,0xf1,0x7c,0x48,0x29,0x07]
173 ; CHECK-NEXT: retq ## encoding: [0xc3]
174 store <8 x i64>%data, ptr %addr, align 64
178 define void @test19(ptr %addr, <16 x i32> %data) {
179 ; CHECK-LABEL: test19:
181 ; CHECK-NEXT: vmovups %zmm0, (%rdi) ## encoding: [0x62,0xf1,0x7c,0x48,0x11,0x07]
182 ; CHECK-NEXT: retq ## encoding: [0xc3]
183 store <16 x i32>%data, ptr %addr, align 1
187 define void @test20(ptr %addr, <16 x i32> %data) {
188 ; CHECK-LABEL: test20:
190 ; CHECK-NEXT: vmovaps %zmm0, (%rdi) ## encoding: [0x62,0xf1,0x7c,0x48,0x29,0x07]
191 ; CHECK-NEXT: retq ## encoding: [0xc3]
192 store <16 x i32>%data, ptr %addr, align 64
196 define <8 x i64> @test21(ptr %addr) {
197 ; CHECK-LABEL: test21:
199 ; CHECK-NEXT: vmovaps (%rdi), %zmm0 ## encoding: [0x62,0xf1,0x7c,0x48,0x28,0x07]
200 ; CHECK-NEXT: retq ## encoding: [0xc3]
201 %res = load <8 x i64>, ptr %addr, align 64
205 define void @test22(ptr %addr, <8 x i64> %data) {
206 ; CHECK-LABEL: test22:
208 ; CHECK-NEXT: vmovups %zmm0, (%rdi) ## encoding: [0x62,0xf1,0x7c,0x48,0x11,0x07]
209 ; CHECK-NEXT: retq ## encoding: [0xc3]
210 store <8 x i64>%data, ptr %addr, align 1
214 define <8 x i64> @test23(ptr %addr) {
215 ; CHECK-LABEL: test23:
217 ; CHECK-NEXT: vmovups (%rdi), %zmm0 ## encoding: [0x62,0xf1,0x7c,0x48,0x10,0x07]
218 ; CHECK-NEXT: retq ## encoding: [0xc3]
219 %res = load <8 x i64>, ptr %addr, align 1
223 define void @test24(ptr %addr, <8 x double> %data) {
224 ; CHECK-LABEL: test24:
226 ; CHECK-NEXT: vmovaps %zmm0, (%rdi) ## encoding: [0x62,0xf1,0x7c,0x48,0x29,0x07]
227 ; CHECK-NEXT: retq ## encoding: [0xc3]
228 store <8 x double>%data, ptr %addr, align 64
232 define <8 x double> @test25(ptr %addr) {
233 ; CHECK-LABEL: test25:
235 ; CHECK-NEXT: vmovaps (%rdi), %zmm0 ## encoding: [0x62,0xf1,0x7c,0x48,0x28,0x07]
236 ; CHECK-NEXT: retq ## encoding: [0xc3]
237 %res = load <8 x double>, ptr %addr, align 64
241 define void @test26(ptr %addr, <16 x float> %data) {
242 ; CHECK-LABEL: test26:
244 ; CHECK-NEXT: vmovaps %zmm0, (%rdi) ## encoding: [0x62,0xf1,0x7c,0x48,0x29,0x07]
245 ; CHECK-NEXT: retq ## encoding: [0xc3]
246 store <16 x float>%data, ptr %addr, align 64
250 define <16 x float> @test27(ptr %addr) {
251 ; CHECK-LABEL: test27:
253 ; CHECK-NEXT: vmovaps (%rdi), %zmm0 ## encoding: [0x62,0xf1,0x7c,0x48,0x28,0x07]
254 ; CHECK-NEXT: retq ## encoding: [0xc3]
255 %res = load <16 x float>, ptr %addr, align 64
259 define void @test28(ptr %addr, <8 x double> %data) {
260 ; CHECK-LABEL: test28:
262 ; CHECK-NEXT: vmovups %zmm0, (%rdi) ## encoding: [0x62,0xf1,0x7c,0x48,0x11,0x07]
263 ; CHECK-NEXT: retq ## encoding: [0xc3]
264 store <8 x double>%data, ptr %addr, align 1
268 define <8 x double> @test29(ptr %addr) {
269 ; CHECK-LABEL: test29:
271 ; CHECK-NEXT: vmovups (%rdi), %zmm0 ## encoding: [0x62,0xf1,0x7c,0x48,0x10,0x07]
272 ; CHECK-NEXT: retq ## encoding: [0xc3]
273 %res = load <8 x double>, ptr %addr, align 1
277 define void @test30(ptr %addr, <16 x float> %data) {
278 ; CHECK-LABEL: test30:
280 ; CHECK-NEXT: vmovups %zmm0, (%rdi) ## encoding: [0x62,0xf1,0x7c,0x48,0x11,0x07]
281 ; CHECK-NEXT: retq ## encoding: [0xc3]
282 store <16 x float>%data, ptr %addr, align 1
286 define <16 x float> @test31(ptr %addr) {
287 ; CHECK-LABEL: test31:
289 ; CHECK-NEXT: vmovups (%rdi), %zmm0 ## encoding: [0x62,0xf1,0x7c,0x48,0x10,0x07]
290 ; CHECK-NEXT: retq ## encoding: [0xc3]
291 %res = load <16 x float>, ptr %addr, align 1
295 define <16 x i32> @test32(ptr %addr, <16 x i32> %old, <16 x i32> %mask1) {
296 ; CHECK-LABEL: test32:
298 ; CHECK-NEXT: vptestmd %zmm1, %zmm1, %k1 ## encoding: [0x62,0xf2,0x75,0x48,0x27,0xc9]
299 ; CHECK-NEXT: vmovdqa32 (%rdi), %zmm0 {%k1} ## encoding: [0x62,0xf1,0x7d,0x49,0x6f,0x07]
300 ; CHECK-NEXT: retq ## encoding: [0xc3]
301 %mask = icmp ne <16 x i32> %mask1, zeroinitializer
302 %r = load <16 x i32>, ptr %addr, align 64
303 %res = select <16 x i1> %mask, <16 x i32> %r, <16 x i32> %old
307 define <16 x i32> @test33(ptr %addr, <16 x i32> %old, <16 x i32> %mask1) {
308 ; CHECK-LABEL: test33:
310 ; CHECK-NEXT: vptestmd %zmm1, %zmm1, %k1 ## encoding: [0x62,0xf2,0x75,0x48,0x27,0xc9]
311 ; CHECK-NEXT: vmovdqu32 (%rdi), %zmm0 {%k1} ## encoding: [0x62,0xf1,0x7e,0x49,0x6f,0x07]
312 ; CHECK-NEXT: retq ## encoding: [0xc3]
313 %mask = icmp ne <16 x i32> %mask1, zeroinitializer
314 %r = load <16 x i32>, ptr %addr, align 1
315 %res = select <16 x i1> %mask, <16 x i32> %r, <16 x i32> %old
319 define <16 x i32> @test34(ptr %addr, <16 x i32> %mask1) {
320 ; CHECK-LABEL: test34:
322 ; CHECK-NEXT: vptestmd %zmm0, %zmm0, %k1 ## encoding: [0x62,0xf2,0x7d,0x48,0x27,0xc8]
323 ; CHECK-NEXT: vmovdqa32 (%rdi), %zmm0 {%k1} {z} ## encoding: [0x62,0xf1,0x7d,0xc9,0x6f,0x07]
324 ; CHECK-NEXT: retq ## encoding: [0xc3]
325 %mask = icmp ne <16 x i32> %mask1, zeroinitializer
326 %r = load <16 x i32>, ptr %addr, align 64
327 %res = select <16 x i1> %mask, <16 x i32> %r, <16 x i32> zeroinitializer
331 define <16 x i32> @test35(ptr %addr, <16 x i32> %mask1) {
332 ; CHECK-LABEL: test35:
334 ; CHECK-NEXT: vptestmd %zmm0, %zmm0, %k1 ## encoding: [0x62,0xf2,0x7d,0x48,0x27,0xc8]
335 ; CHECK-NEXT: vmovdqu32 (%rdi), %zmm0 {%k1} {z} ## encoding: [0x62,0xf1,0x7e,0xc9,0x6f,0x07]
336 ; CHECK-NEXT: retq ## encoding: [0xc3]
337 %mask = icmp ne <16 x i32> %mask1, zeroinitializer
338 %r = load <16 x i32>, ptr %addr, align 1
339 %res = select <16 x i1> %mask, <16 x i32> %r, <16 x i32> zeroinitializer
343 define <8 x i64> @test36(ptr %addr, <8 x i64> %old, <8 x i64> %mask1) {
344 ; CHECK-LABEL: test36:
346 ; CHECK-NEXT: vptestmq %zmm1, %zmm1, %k1 ## encoding: [0x62,0xf2,0xf5,0x48,0x27,0xc9]
347 ; CHECK-NEXT: vmovdqa64 (%rdi), %zmm0 {%k1} ## encoding: [0x62,0xf1,0xfd,0x49,0x6f,0x07]
348 ; CHECK-NEXT: retq ## encoding: [0xc3]
349 %mask = icmp ne <8 x i64> %mask1, zeroinitializer
350 %r = load <8 x i64>, ptr %addr, align 64
351 %res = select <8 x i1> %mask, <8 x i64> %r, <8 x i64> %old
355 define <8 x i64> @test37(ptr %addr, <8 x i64> %old, <8 x i64> %mask1) {
356 ; CHECK-LABEL: test37:
358 ; CHECK-NEXT: vptestmq %zmm1, %zmm1, %k1 ## encoding: [0x62,0xf2,0xf5,0x48,0x27,0xc9]
359 ; CHECK-NEXT: vmovdqu64 (%rdi), %zmm0 {%k1} ## encoding: [0x62,0xf1,0xfe,0x49,0x6f,0x07]
360 ; CHECK-NEXT: retq ## encoding: [0xc3]
361 %mask = icmp ne <8 x i64> %mask1, zeroinitializer
362 %r = load <8 x i64>, ptr %addr, align 1
363 %res = select <8 x i1> %mask, <8 x i64> %r, <8 x i64> %old
367 define <8 x i64> @test38(ptr %addr, <8 x i64> %mask1) {
368 ; CHECK-LABEL: test38:
370 ; CHECK-NEXT: vptestmq %zmm0, %zmm0, %k1 ## encoding: [0x62,0xf2,0xfd,0x48,0x27,0xc8]
371 ; CHECK-NEXT: vmovdqa64 (%rdi), %zmm0 {%k1} {z} ## encoding: [0x62,0xf1,0xfd,0xc9,0x6f,0x07]
372 ; CHECK-NEXT: retq ## encoding: [0xc3]
373 %mask = icmp ne <8 x i64> %mask1, zeroinitializer
374 %r = load <8 x i64>, ptr %addr, align 64
375 %res = select <8 x i1> %mask, <8 x i64> %r, <8 x i64> zeroinitializer
379 define <8 x i64> @test39(ptr %addr, <8 x i64> %mask1) {
380 ; CHECK-LABEL: test39:
382 ; CHECK-NEXT: vptestmq %zmm0, %zmm0, %k1 ## encoding: [0x62,0xf2,0xfd,0x48,0x27,0xc8]
383 ; CHECK-NEXT: vmovdqu64 (%rdi), %zmm0 {%k1} {z} ## encoding: [0x62,0xf1,0xfe,0xc9,0x6f,0x07]
384 ; CHECK-NEXT: retq ## encoding: [0xc3]
385 %mask = icmp ne <8 x i64> %mask1, zeroinitializer
386 %r = load <8 x i64>, ptr %addr, align 1
387 %res = select <8 x i1> %mask, <8 x i64> %r, <8 x i64> zeroinitializer
391 define <16 x float> @test40(ptr %addr, <16 x float> %old, <16 x float> %mask1) {
392 ; CHECK-LABEL: test40:
394 ; CHECK-NEXT: vxorps %xmm2, %xmm2, %xmm2 ## encoding: [0xc5,0xe8,0x57,0xd2]
395 ; CHECK-NEXT: vcmpneq_oqps %zmm2, %zmm1, %k1 ## encoding: [0x62,0xf1,0x74,0x48,0xc2,0xca,0x0c]
396 ; CHECK-NEXT: vmovaps (%rdi), %zmm0 {%k1} ## encoding: [0x62,0xf1,0x7c,0x49,0x28,0x07]
397 ; CHECK-NEXT: retq ## encoding: [0xc3]
398 %mask = fcmp one <16 x float> %mask1, zeroinitializer
399 %r = load <16 x float>, ptr %addr, align 64
400 %res = select <16 x i1> %mask, <16 x float> %r, <16 x float> %old
404 define <16 x float> @test41(ptr %addr, <16 x float> %old, <16 x float> %mask1) {
405 ; CHECK-LABEL: test41:
407 ; CHECK-NEXT: vxorps %xmm2, %xmm2, %xmm2 ## encoding: [0xc5,0xe8,0x57,0xd2]
408 ; CHECK-NEXT: vcmpneq_oqps %zmm2, %zmm1, %k1 ## encoding: [0x62,0xf1,0x74,0x48,0xc2,0xca,0x0c]
409 ; CHECK-NEXT: vmovups (%rdi), %zmm0 {%k1} ## encoding: [0x62,0xf1,0x7c,0x49,0x10,0x07]
410 ; CHECK-NEXT: retq ## encoding: [0xc3]
411 %mask = fcmp one <16 x float> %mask1, zeroinitializer
412 %r = load <16 x float>, ptr %addr, align 1
413 %res = select <16 x i1> %mask, <16 x float> %r, <16 x float> %old
417 define <16 x float> @test42(ptr %addr, <16 x float> %mask1) {
418 ; CHECK-LABEL: test42:
420 ; CHECK-NEXT: vxorps %xmm1, %xmm1, %xmm1 ## encoding: [0xc5,0xf0,0x57,0xc9]
421 ; CHECK-NEXT: vcmpneq_oqps %zmm1, %zmm0, %k1 ## encoding: [0x62,0xf1,0x7c,0x48,0xc2,0xc9,0x0c]
422 ; CHECK-NEXT: vmovaps (%rdi), %zmm0 {%k1} {z} ## encoding: [0x62,0xf1,0x7c,0xc9,0x28,0x07]
423 ; CHECK-NEXT: retq ## encoding: [0xc3]
424 %mask = fcmp one <16 x float> %mask1, zeroinitializer
425 %r = load <16 x float>, ptr %addr, align 64
426 %res = select <16 x i1> %mask, <16 x float> %r, <16 x float> zeroinitializer
430 define <16 x float> @test43(ptr %addr, <16 x float> %mask1) {
431 ; CHECK-LABEL: test43:
433 ; CHECK-NEXT: vxorps %xmm1, %xmm1, %xmm1 ## encoding: [0xc5,0xf0,0x57,0xc9]
434 ; CHECK-NEXT: vcmpneq_oqps %zmm1, %zmm0, %k1 ## encoding: [0x62,0xf1,0x7c,0x48,0xc2,0xc9,0x0c]
435 ; CHECK-NEXT: vmovups (%rdi), %zmm0 {%k1} {z} ## encoding: [0x62,0xf1,0x7c,0xc9,0x10,0x07]
436 ; CHECK-NEXT: retq ## encoding: [0xc3]
437 %mask = fcmp one <16 x float> %mask1, zeroinitializer
438 %r = load <16 x float>, ptr %addr, align 1
439 %res = select <16 x i1> %mask, <16 x float> %r, <16 x float> zeroinitializer
443 define <8 x double> @test44(ptr %addr, <8 x double> %old, <8 x double> %mask1) {
444 ; CHECK-LABEL: test44:
446 ; CHECK-NEXT: vxorpd %xmm2, %xmm2, %xmm2 ## encoding: [0xc5,0xe9,0x57,0xd2]
447 ; CHECK-NEXT: vcmpneq_oqpd %zmm2, %zmm1, %k1 ## encoding: [0x62,0xf1,0xf5,0x48,0xc2,0xca,0x0c]
448 ; CHECK-NEXT: vmovapd (%rdi), %zmm0 {%k1} ## encoding: [0x62,0xf1,0xfd,0x49,0x28,0x07]
449 ; CHECK-NEXT: retq ## encoding: [0xc3]
450 %mask = fcmp one <8 x double> %mask1, zeroinitializer
451 %r = load <8 x double>, ptr %addr, align 64
452 %res = select <8 x i1> %mask, <8 x double> %r, <8 x double> %old
456 define <8 x double> @test45(ptr %addr, <8 x double> %old, <8 x double> %mask1) {
457 ; CHECK-LABEL: test45:
459 ; CHECK-NEXT: vxorpd %xmm2, %xmm2, %xmm2 ## encoding: [0xc5,0xe9,0x57,0xd2]
460 ; CHECK-NEXT: vcmpneq_oqpd %zmm2, %zmm1, %k1 ## encoding: [0x62,0xf1,0xf5,0x48,0xc2,0xca,0x0c]
461 ; CHECK-NEXT: vmovupd (%rdi), %zmm0 {%k1} ## encoding: [0x62,0xf1,0xfd,0x49,0x10,0x07]
462 ; CHECK-NEXT: retq ## encoding: [0xc3]
463 %mask = fcmp one <8 x double> %mask1, zeroinitializer
464 %r = load <8 x double>, ptr %addr, align 1
465 %res = select <8 x i1> %mask, <8 x double> %r, <8 x double> %old
469 define <8 x double> @test46(ptr %addr, <8 x double> %mask1) {
470 ; CHECK-LABEL: test46:
472 ; CHECK-NEXT: vxorpd %xmm1, %xmm1, %xmm1 ## encoding: [0xc5,0xf1,0x57,0xc9]
473 ; CHECK-NEXT: vcmpneq_oqpd %zmm1, %zmm0, %k1 ## encoding: [0x62,0xf1,0xfd,0x48,0xc2,0xc9,0x0c]
474 ; CHECK-NEXT: vmovapd (%rdi), %zmm0 {%k1} {z} ## encoding: [0x62,0xf1,0xfd,0xc9,0x28,0x07]
475 ; CHECK-NEXT: retq ## encoding: [0xc3]
476 %mask = fcmp one <8 x double> %mask1, zeroinitializer
477 %r = load <8 x double>, ptr %addr, align 64
478 %res = select <8 x i1> %mask, <8 x double> %r, <8 x double> zeroinitializer
482 define <8 x double> @test47(ptr %addr, <8 x double> %mask1) {
483 ; CHECK-LABEL: test47:
485 ; CHECK-NEXT: vxorpd %xmm1, %xmm1, %xmm1 ## encoding: [0xc5,0xf1,0x57,0xc9]
486 ; CHECK-NEXT: vcmpneq_oqpd %zmm1, %zmm0, %k1 ## encoding: [0x62,0xf1,0xfd,0x48,0xc2,0xc9,0x0c]
487 ; CHECK-NEXT: vmovupd (%rdi), %zmm0 {%k1} {z} ## encoding: [0x62,0xf1,0xfd,0xc9,0x10,0x07]
488 ; CHECK-NEXT: retq ## encoding: [0xc3]
489 %mask = fcmp one <8 x double> %mask1, zeroinitializer
490 %r = load <8 x double>, ptr %addr, align 1
491 %res = select <8 x i1> %mask, <8 x double> %r, <8 x double> zeroinitializer