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

Chris Lattner sabre at nondot.org
Mon May 14 15:04:33 PDT 2007



Changes in directory llvm/test/CodeGen/PowerPC:

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

new testcase


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

 fneg.ll |   12 ++++++++++++
 1 files changed, 12 insertions(+)


Index: llvm/test/CodeGen/PowerPC/fneg.ll
diff -c /dev/null llvm/test/CodeGen/PowerPC/fneg.ll:1.1
*** /dev/null	Mon May 14 17:04:26 2007
--- llvm/test/CodeGen/PowerPC/fneg.ll	Mon May 14 17:04:16 2007
***************
*** 0 ****
--- 1,12 ----
+ ; RUN: llvm-as < %s | llc -march=ppc32 | not grep fneg
+ 
+ define double @test1(double %a, double %b, double %c, double %d) {
+ entry:
+         %tmp2 = sub double -0.000000e+00, %c            ; <double> [#uses=1]
+         %tmp4 = mul double %tmp2, %d            ; <double> [#uses=1]
+         %tmp7 = mul double %a, %b               ; <double> [#uses=1]
+         %tmp9 = sub double %tmp7, %tmp4         ; <double> [#uses=1]
+         ret double %tmp9
+ }
+ 
+ 






More information about the llvm-commits mailing list