1 ; RUN: llc -march=hexagon -O3 < %s | FileCheck %s
3 target triple = "hexagon"
6 ; CHECK: p{{[0-9]+}} = sfcmp.ge(r{{[0-9]+}},r{{[0-9]+}})
7 ; CHECK: p{{[0-9]+}} = sfcmp.gt(r{{[0-9]+}},r{{[0-9]+}})
8 define i32 @f0(ptr nocapture %a0) #0 {
10 %v0 = load float, ptr %a0, align 4, !tbaa !0
11 %v1 = fcmp olt float %v0, 6.000000e+01
12 br i1 %v1, label %b1, label %b2
15 %v2 = getelementptr inbounds float, ptr %a0, i32 1
16 %v3 = load float, ptr %v2, align 4, !tbaa !0
17 %v4 = fcmp ogt float %v3, 0x3FECCCCCC0000000
20 b2: ; preds = %b1, %b0
21 %v5 = phi i1 [ false, %b0 ], [ %v4, %b1 ]
22 %v6 = zext i1 %v5 to i32
27 ; CHECK: p{{[0-9]+}} = sfcmp.eq(r{{[0-9]+}},r{{[0-9]+}})
28 define i32 @f1(ptr nocapture %a0) #0 {
30 %v0 = load float, ptr %a0, align 4, !tbaa !0
31 %v1 = fcmp oeq float %v0, 6.000000e+01
32 %v2 = zext i1 %v1 to i32
37 ; CHECK: p{{[0-9]+}} = dfcmp.ge(r{{[0-9]+}}:{{[0-9]+}},r{{[0-9]+}}:{{[0-9]+}})
38 ; CHECK: p{{[0-9]+}} = dfcmp.gt(r{{[0-9]+}}:{{[0-9]+}},r{{[0-9]+}}:{{[0-9]+}})
39 define i32 @f2(ptr nocapture %a0) #0 {
41 %v0 = load double, ptr %a0, align 8, !tbaa !4
42 %v1 = fcmp olt double %v0, 6.000000e+01
43 br i1 %v1, label %b1, label %b2
46 %v2 = getelementptr inbounds double, ptr %a0, i32 1
47 %v3 = load double, ptr %v2, align 8, !tbaa !4
48 %v4 = fcmp ogt double %v3, 0x3FECCCCCC0000000
51 b2: ; preds = %b1, %b0
52 %v5 = phi i1 [ false, %b0 ], [ %v4, %b1 ]
53 %v6 = zext i1 %v5 to i32
57 define i32 @f3(ptr nocapture %a0) #0 {
59 %v0 = load double, ptr %a0, align 8, !tbaa !4
60 %v1 = fcmp oeq double %v0, 6.000000e+01
61 %v2 = zext i1 %v1 to i32
65 attributes #0 = { nounwind readonly "target-cpu"="hexagonv55" "no-nans-fp-math"="true" }
69 !2 = !{!"omnipotent char", !3}
70 !3 = !{!"Simple C/C++ TBAA"}