128 lines · plain
1; RUN: llc < %s -mcpu=pentium -mtriple=i686-linux-gnu -float-abi=soft | FileCheck %s2 3define i1 @test1(double %d) #0 {4entry:5 %cmp = fcmp ule double %d, 0.000000e+006 ret i1 %cmp7}8; CHECK-LABEL: test1:9; CHECK: calll __gtdf210; CHECK: setle11; CHECK: retl12 13define i1 @test2(double %d) #0 {14entry:15 %cmp = fcmp ult double %d, 0.000000e+0016 ret i1 %cmp17}18; CHECK-LABEL: test2:19; CHECK: calll __gedf220; CHECK: sets21; CHECK: retl22 23define i1 @test3(double %d) #0 {24entry:25 %cmp = fcmp ugt double %d, 0.000000e+0026 ret i1 %cmp27}28; CHECK-LABEL: test3:29; CHECK: calll __ledf230; CHECK: setg31; CHECK: retl32 33define i1 @test4(double %d) #0 {34entry:35 %cmp = fcmp uge double %d, 0.000000e+0036 ret i1 %cmp37}38; CHECK-LABEL: test4:39; CHECK: calll __ltdf240; CHECK: setns41; CHECK: retl42 43define i1 @test5(double %d) #0 {44entry:45 %cmp = fcmp ole double %d, 0.000000e+0046 ret i1 %cmp47}48; CHECK-LABEL: test5: 49; CHECK: calll __ledf250; CHECK: setle51; CHECK: retl52 53define i1 @test6(double %d) #0 {54entry:55 %cmp = fcmp olt double %d, 0.000000e+0056 ret i1 %cmp57}58; CHECK-LABEL: test6:59; CHECK: calll __ltdf260; CHECK: sets61; CHECK: retl62 63define i1 @test7(double %d) #0 {64entry:65 %cmp = fcmp ogt double %d, 0.000000e+0066 ret i1 %cmp67}68; CHECK-LABEL: test7:69; CHECK: calll __gtdf270; CHECK: setg71; CHECK: retl72 73define i1 @test8(double %d) #0 {74entry:75 %cmp = fcmp oge double %d, 0.000000e+0076 ret i1 %cmp77}78; CHECK-LABEL: test8:79; CHECK: calll __gedf280; CHECK: setns81; CHECK: retl82 83define i1 @test9(double %d) #0 {84entry:85 %cmp = fcmp oeq double %d, 0.000000e+0086 ret i1 %cmp87}88; CHECK-LABEL: test9:89; CHECK: calll __eqdf290; CHECK: sete91; CHECK: retl92 93define i1 @test10(double %d) #0 {94entry:95 %cmp = fcmp ueq double %d, 0.000000e+0096 ret i1 %cmp97}98; CHECK-LABEL: test10:99; CHECK: calll __eqdf2100; CHECK: sete101; CHECK: calll __unorddf2102; CHECK: retl103 104define i1 @test11(double %d) #0 {105entry:106 %cmp = fcmp one double %d, 0.000000e+00107 ret i1 %cmp108}109; CHECK-LABEL: test11:110; CHECK: calll __eqdf2111; CHECK: setne112; CHECK: calll __unorddf2113; CHECK: sete114; CHECK: and115; CHECK: retl116 117define i1 @test12(double %d) #0 {118entry:119 %cmp = fcmp une double %d, 0.000000e+00120 ret i1 %cmp121}122; CHECK-LABEL: test12:123; CHECK: calll __nedf2124; CHECK: setne125; CHECK: retl126 127attributes #0 = { "use-soft-float"="true" }128