llvm/test/CodeGen/X86/fabs.ll
Chris Lattner 597f22f6cd new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21016 91177308-0d34-0410-b5e6-96231b3b80d8
2005-04-02 05:35:00 +00:00

11 lines
269 B
LLVM

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