mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-20 11:29:24 +00:00
12 lines
228 B
LLVM
12 lines
228 B
LLVM
|
; RUN: llvm-as < %s | llc -march=ppc32 -enable-ppc-pattern-isel | grep fnabs
|
||
|
|
||
|
declare double %fabs(double)
|
||
|
|
||
|
implementation
|
||
|
|
||
|
double %test(double %X) {
|
||
|
%Y = call double %fabs(double %X)
|
||
|
%Z = sub double -0.0, %Y
|
||
|
ret double %Z
|
||
|
}
|