1; RUN: llc -march=hexagon < %s | FileCheck %s
2
3; CHECK-LABEL: danny:
4; CHECK: vrmpy
5define i64 @danny(<64 x i8> %a0, <64 x i8> %a1) #0 {
6  %v0 = icmp eq <64 x i8> %a0, %a1
7  %v1 = bitcast <64 x i1> %v0 to i64
8  ret i64 %v1
9}
10
11; CHECK-LABEL: sammy:
12; CHECK: vrmpy
13define i32 @sammy(<32 x i16> %a0, <32 x i16> %a1) #0 {
14  %v0 = icmp eq <32 x i16> %a0, %a1
15  %v1 = bitcast <32 x i1> %v0 to i32
16  ret i32 %v1
17}
18
19; CHECK-LABEL: kirby:
20; CHECK: vrmpy
21define i16 @kirby(<16 x i32> %a0, <16 x i32> %a1) #0 {
22  %v0 = icmp eq <16 x i32> %a0, %a1
23  %v1 = bitcast <16 x i1> %v0 to i16
24  ret i16 %v1
25}
26
27attributes #0 = { nounwind "target-cpu"="hexagonv66" "target-features"="+v66,+hvx,+hvxv66,+hvx-length64b" }
28