1 ; RUN: llc -march=sparc <%s | FileCheck %s
4 define i32 @test_addx(i64 %a, i64 %b, i64 %c) nounwind readnone noinline {
10 %1 = icmp ugt i64 %0, %c
11 %2 = zext i1 %1 to i32
16 define i32 @test_select_int_icc(i32 %a, i32 %b, i32 %c) nounwind readnone noinline {
18 ; CHECK: test_select_int_icc
21 %0 = icmp eq i32 %a, 0
22 %1 = select i1 %0, i32 %b, i32 %c
27 define float @test_select_fp_icc(i32 %a, float %f1, float %f2) nounwind readnone noinline {
29 ; CHECK: test_select_fp_icc
32 %0 = icmp eq i32 %a, 0
33 %1 = select i1 %0, float %f1, float %f2
37 define double @test_select_dfp_icc(i32 %a, double %f1, double %f2) nounwind readnone noinline {
39 ; CHECK: test_select_fp_icc
42 %0 = icmp eq i32 %a, 0
43 %1 = select i1 %0, double %f1, double %f2
47 define i32 @test_select_int_fcc(float %f, i32 %a, i32 %b) nounwind readnone noinline {
49 ;CHECK: test_select_int_fcc
52 %0 = fcmp une float %f, 0.000000e+00
53 %a.b = select i1 %0, i32 %a, i32 %b
58 define float @test_select_fp_fcc(float %f, float %f1, float %f2) nounwind readnone noinline {
60 ;CHECK: test_select_fp_fcc
63 %0 = fcmp une float %f, 0.000000e+00
64 %1 = select i1 %0, float %f1, float %f2
68 define double @test_select_dfp_fcc(double %f, double %f1, double %f2) nounwind readnone noinline {
70 ;CHECK: test_select_dfp_fcc
73 %0 = fcmp une double %f, 0.000000e+00
74 %1 = select i1 %0, double %f1, double %f2