926bb8eb1c3d120ed20c756125092be86b7d387e
[oota-llvm.git] / test / CodeGen / PowerPC / fp-branch.ll
1 ; RUN: llc < %s -mattr=-vsx -march=ppc32 | grep fcmp | count 1
2 ; RUN: llc < %s -mattr=+vsx -march=ppc32 | grep xscmpudp | count 1
3
4 declare i1 @llvm.isunordered.f64(double, double)
5
6 define i1 @intcoord_cond_next55(double %tmp48.reload) {
7 newFuncRoot:
8         br label %cond_next55
9
10 bb72.exitStub:          ; preds = %cond_next55
11         ret i1 true
12
13 cond_next62.exitStub:           ; preds = %cond_next55
14         ret i1 false
15
16 cond_next55:            ; preds = %newFuncRoot
17         %tmp57 = fcmp oge double %tmp48.reload, 1.000000e+00            ; <i1> [#uses=1]
18         %tmp58 = fcmp uno double %tmp48.reload, 1.000000e+00            ; <i1> [#uses=1]
19         %tmp59 = or i1 %tmp57, %tmp58           ; <i1> [#uses=1]
20         br i1 %tmp59, label %bb72.exitStub, label %cond_next62.exitStub
21 }
22