1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 3
2 ; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu -mattr=+avx512bw,avx512vl | FileCheck %s
4 define i1 @test(ptr %q) {
6 ; CHECK: # %bb.0: # %entry
7 ; CHECK-NEXT: vmovq {{.*#+}} xmm0 = mem[0],zero
8 ; CHECK-NEXT: vpxor %xmm0, %xmm0, %xmm0
9 ; CHECK-NEXT: vpbroadcastq %xmm0, %ymm0
10 ; CHECK-NEXT: vptest %ymm0, %ymm0
11 ; CHECK-NEXT: sete %al
12 ; CHECK-NEXT: vzeroupper
15 %0 = load i64, ptr %q, align 8
16 %add = add nsw i64 %0, 0
17 %add2 = add nsw i64 %add, 0
18 %add5 = add nsw i64 %add2, 0
19 %vecinit1.i.i68 = insertelement <2 x i64> poison, i64 %add5, i64 0
20 %add8 = add nsw i64 %add5, 0
21 %vecinit.i.i55 = insertelement <4 x i64> undef, i64 %add8, i64 0
22 %1 = bitcast <2 x i64> %vecinit1.i.i68 to <4 x i32>
23 %2 = shufflevector <4 x i32> %1, <4 x i32> poison, <8 x i32> <i32 0, i32 1, i32 0, i32 1, i32 0, i32 1, i32 0, i32 1>
24 %3 = bitcast <4 x i64> %vecinit.i.i55 to <8 x i32>
25 %4 = shufflevector <8 x i32> %3, <8 x i32> poison, <8 x i32> <i32 0, i32 1, i32 0, i32 1, i32 0, i32 1, i32 0, i32 1>
26 %5 = icmp ne <8 x i32> %2, %4
27 %6 = bitcast <8 x i1> %5 to i8