[llvm-commits] CVS: llvm/test/Regression/CodeGen/ARM/fparith.ll

Rafael Espindola rafael.espindola at gmail.com
Fri Oct 13 10:37:51 PDT 2006



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

fparith.ll updated: 1.2 -> 1.3
---
Log message:

add FNEGS and FNEGD


---
Diffs of the changes:  (+15 -1)

 fparith.ll |   16 +++++++++++++++-
 1 files changed, 15 insertions(+), 1 deletion(-)


Index: llvm/test/Regression/CodeGen/ARM/fparith.ll
diff -u llvm/test/Regression/CodeGen/ARM/fparith.ll:1.2 llvm/test/Regression/CodeGen/ARM/fparith.ll:1.3
--- llvm/test/Regression/CodeGen/ARM/fparith.ll:1.2	Tue Oct 10 14:35:01 2006
+++ llvm/test/Regression/CodeGen/ARM/fparith.ll	Fri Oct 13 12:37:35 2006
@@ -2,7 +2,9 @@
 ; RUN: llvm-as < %s | llc -march=arm | grep fadds &&
 ; RUN: llvm-as < %s | llc -march=arm | grep faddd &&
 ; RUN: llvm-as < %s | llc -march=arm | grep fmuls &&
-; RUN: llvm-as < %s | llc -march=arm | grep fmuld
+; RUN: llvm-as < %s | llc -march=arm | grep fmuld &&
+; RUN: llvm-as < %s | llc -march=arm | grep fnegs &&
+; RUN: llvm-as < %s | llc -march=arm | grep fnegd
 
 float %f1(float %a, float %b) {
 entry:
@@ -39,3 +41,15 @@
 	%tmp = sub double %a, %b
 	ret double %tmp
 }
+
+float %f7(float %a) {
+entry:
+	%tmp1 = sub float -0.000000e+00, %a
+	ret float %tmp1
+}
+
+double %f8(double %a) {
+entry:
+	%tmp1 = sub double -0.000000e+00, %a
+	ret double %tmp1
+}






More information about the llvm-commits mailing list