[llvm-commits] CVS: llvm/test/Regression/CodeGen/PowerPC/fnabs.ll

Chris Lattner lattner at cs.uiuc.edu
Fri Apr 8 21:03:29 PDT 2005



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

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

add a test for fnabs


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

 fnabs.ll |   11 +++++++++++
 1 files changed, 11 insertions(+)


Index: llvm/test/Regression/CodeGen/PowerPC/fnabs.ll
diff -c /dev/null llvm/test/Regression/CodeGen/PowerPC/fnabs.ll:1.1
*** /dev/null	Fri Apr  8 23:03:26 2005
--- llvm/test/Regression/CodeGen/PowerPC/fnabs.ll	Fri Apr  8 23:03:16 2005
***************
*** 0 ****
--- 1,11 ----
+ ; 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
+ }






More information about the llvm-commits mailing list