llvm/test/CodeGen/PowerPC/fnegsel.ll
2005-04-10 20:45:35 +00:00

9 lines
267 B
LLVM

; RUN: llvm-as < %s | llc -march=ppc32 -enable-ppc-pattern-isel | not grep fneg
double %test_FNEG_sel(double %A, double %B, double %C) {
%D = sub double -0.0, %A
%Cond = setgt double %D, -0.0
%E = select bool %Cond, double %B, double %C
ret double %E
}