1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 2
2 ; RUN: llc -march=hexagon < %s | FileCheck %s
4 define void @f0(<2 x i32> %a0, ptr %a1) {
6 ; CHECK: .cfi_startproc
7 ; CHECK-NEXT: // %bb.0: // %b0
9 ; CHECK-NEXT: r5:4 = combine(#1,#1)
12 ; CHECK-NEXT: r1:0 = and(r1:0,r5:4)
15 ; CHECK-NEXT: p0 = vcmpw.eq(r1:0,#1)
19 ; CHECK-NEXT: jumpr r31
20 ; CHECK-NEXT: memb(r2+#0) = r0.new
23 %v0 = trunc <2 x i32> %a0 to <2 x i1>
24 store <2 x i1> %v0, ptr %a1, align 1
28 define void @f1(<4 x i16> %a0, ptr %a1) {
30 ; CHECK: .cfi_startproc
31 ; CHECK-NEXT: // %bb.0: // %b0
33 ; CHECK-NEXT: r0 = and(r0,##65537)
34 ; CHECK-NEXT: r1 = and(r1,##65537)
37 ; CHECK-NEXT: p0 = vcmph.eq(r1:0,#1)
41 ; CHECK-NEXT: jumpr r31
42 ; CHECK-NEXT: memb(r2+#0) = r0.new
45 %v0 = trunc <4 x i16> %a0 to <4 x i1>
46 store <4 x i1> %v0, ptr %a1, align 1
50 define void @f2(<8 x i8> %a0, ptr %a1) {
52 ; CHECK: .cfi_startproc
53 ; CHECK-NEXT: // %bb.0: // %b0
55 ; CHECK-NEXT: r0 = and(r0,##16843009)
56 ; CHECK-NEXT: r1 = and(r1,##16843009)
59 ; CHECK-NEXT: p0 = vcmpb.eq(r1:0,#1)
63 ; CHECK-NEXT: jumpr r31
64 ; CHECK-NEXT: memb(r2+#0) = r0.new
67 %v0 = trunc <8 x i8> %a0 to <8 x i1>
68 store <8 x i1> %v0, ptr %a1, align 1