mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-23 20:29:30 +00:00
9 lines
267 B
LLVM
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
|
||
|
}
|