1 ; RUN: llc -march=hexagon -hexagon-gen-mux-threshold=4 < %s | FileCheck %s
2 ; Generate various cmpb instruction followed by if (p0) .. if (!p0)...
3 target triple = "hexagon"
5 define i32 @Func_3Ugt(i32 %Enum_Par_Val, i32 %pv2) nounwind readnone {
8 %cmp = icmp ugt i32 %Enum_Par_Val, %pv2
9 %selv = zext i1 %cmp to i32
13 define i32 @Func_3Uge(i32 %Enum_Par_Val, i32 %pv2) nounwind readnone {
16 %cmp = icmp uge i32 %Enum_Par_Val, %pv2
17 %selv = zext i1 %cmp to i32
21 define i32 @Func_3Ult(i32 %Enum_Par_Val, i32 %pv2) nounwind readnone {
24 %cmp = icmp ult i32 %Enum_Par_Val, %pv2
25 %selv = zext i1 %cmp to i32
29 define i32 @Func_3Ule(i32 %Enum_Par_Val, i32 %pv2) nounwind readnone {
32 %cmp = icmp ule i32 %Enum_Par_Val, %pv2
33 %selv = zext i1 %cmp to i32
37 define i32 @Func_3Ueq(i32 %Enum_Par_Val, i32 %pv2) nounwind readnone {
40 %cmp = icmp eq i32 %Enum_Par_Val, %pv2
41 %selv = zext i1 %cmp to i32
45 define i32 @Func_3Une(i32 %Enum_Par_Val, i32 %pv2) nounwind readnone {
48 %cmp = icmp ne i32 %Enum_Par_Val, %pv2
49 %selv = zext i1 %cmp to i32
53 define i32 @Func_3UneC(i32 %Enum_Par_Val) nounwind readnone {
56 %cmp = icmp ne i32 %Enum_Par_Val, 122
57 %selv = zext i1 %cmp to i32
61 define i32 @Func_3gt(i32 %Enum_Par_Val, i32 %pv2) nounwind readnone {
64 %cmp = icmp sgt i32 %Enum_Par_Val, %pv2
65 %selv = zext i1 %cmp to i32
69 define i32 @Func_3ge(i32 %Enum_Par_Val, i32 %pv2) nounwind readnone {
72 %cmp = icmp sge i32 %Enum_Par_Val, %pv2
73 %selv = zext i1 %cmp to i32
77 define i32 @Func_3lt(i32 %Enum_Par_Val, i32 %pv2) nounwind readnone {
80 %cmp = icmp slt i32 %Enum_Par_Val, %pv2
81 %selv = zext i1 %cmp to i32
85 define i32 @Func_3le(i32 %Enum_Par_Val, i32 %pv2) nounwind readnone {
88 %cmp = icmp sle i32 %Enum_Par_Val, %pv2
89 %selv = zext i1 %cmp to i32
93 define i32 @Func_3eq(i32 %Enum_Par_Val, i32 %pv2) nounwind readnone {
96 %cmp = icmp eq i32 %Enum_Par_Val, %pv2
97 %selv = zext i1 %cmp to i32
101 define i32 @Func_3ne(i32 %Enum_Par_Val, i32 %pv2) nounwind readnone {
104 %cmp = icmp ne i32 %Enum_Par_Val, %pv2
105 %selv = zext i1 %cmp to i32
109 define i32 @Func_3neC(i32 %Enum_Par_Val) nounwind readnone {
112 %cmp = icmp ne i32 %Enum_Par_Val, 122
113 %selv = zext i1 %cmp to i32