Transform (x << (y&31)) -> (x << y). This takes advantage of the fact x86 shift instr...
[oota-llvm.git] / test / CodeGen / PowerPC / fnegsel.ll
1 ; RUN: llvm-as < %s | llc -march=ppc32 | not grep fneg
2
3 define double @test_FNEG_sel(double %A, double %B, double %C) {
4         %D = sub double -0.000000e+00, %A               ; <double> [#uses=1]
5         %Cond = fcmp ugt double %D, -0.000000e+00               ; <i1> [#uses=1]
6         %E = select i1 %Cond, double %B, double %C              ; <double> [#uses=1]
7         ret double %E
8 }
9