[llvm-commits] CVS: llvm/test/Regression/CodeGen/X86/fabs.ll

Chris Lattner lattner at cs.uiuc.edu
Fri Apr 1 21:35:13 PST 2005



Changes in directory llvm/test/Regression/CodeGen/X86:

fabs.ll added (r1.1)
---
Log message:

new testcase


---
Diffs of the changes:  (+10 -0)

 fabs.ll |   10 ++++++++++
 1 files changed, 10 insertions(+)


Index: llvm/test/Regression/CodeGen/X86/fabs.ll
diff -c /dev/null llvm/test/Regression/CodeGen/X86/fabs.ll:1.1
*** /dev/null	Fri Apr  1 23:35:10 2005
--- llvm/test/Regression/CodeGen/X86/fabs.ll	Fri Apr  1 23:35:00 2005
***************
*** 0 ****
--- 1,10 ----
+ ; 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
+ }
+ 






More information about the llvm-commits mailing list