llvm-6502/test/CodeGen/X86/fabs.ll
2005-04-02 05:40:03 +00:00

11 lines
280 B
LLVM

; Make sure this testcase codegens to the fabs instruction, not a call to fabsf
; RUN: llvm-as < %s | llc -march=x86 -disable-pattern-isel=0 | grep 'fabs$'
declare float %fabsf(float)
float %fabsftest(float %X) {
%Y = call float %fabsf(float %X)
ret float %Y
}