[llvm-commits] CVS: llvm/test/CodeGen/ARM/fp.ll fpmem.ll

Evan Cheng evan.cheng at apple.com
Mon May 7 14:50:26 PDT 2007



Changes in directory llvm/test/CodeGen/ARM:

fp.ll updated: 1.16 -> 1.17
fpmem.ll updated: 1.6 -> 1.7
---
Log message:

Fix tests.

---
Diffs of the changes:  (+7 -9)

 fp.ll    |    3 +--
 fpmem.ll |   13 ++++++-------
 2 files changed, 7 insertions(+), 9 deletions(-)


Index: llvm/test/CodeGen/ARM/fp.ll
diff -u llvm/test/CodeGen/ARM/fp.ll:1.16 llvm/test/CodeGen/ARM/fp.ll:1.17
--- llvm/test/CodeGen/ARM/fp.ll:1.16	Mon Apr 16 12:36:06 2007
+++ llvm/test/CodeGen/ARM/fp.ll	Mon May  7 16:50:07 2007
@@ -1,12 +1,11 @@
 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 > %t
 ; RUN: grep fmsr %t | wc -l | grep 4
 ; RUN: grep fsitos %t
-; RUN: grep fmrs %t
+; RUN: grep fmrs %t | wc -l | grep 2
 ; RUN: grep fsitod %t
 ; RUN: grep fmrrd %t | wc -l | grep 5
 ; RUN: grep fmdrr %t | wc -l | grep 2
 ; RUN: grep fldd %t
-; RUN: grep flds %t
 ; RUN: grep fuitod %t
 ; RUN: grep fuitos %t
 ; RUN: grep 1065353216 %t


Index: llvm/test/CodeGen/ARM/fpmem.ll
diff -u llvm/test/CodeGen/ARM/fpmem.ll:1.6 llvm/test/CodeGen/ARM/fpmem.ll:1.7
--- llvm/test/CodeGen/ARM/fpmem.ll:1.6	Mon Apr 16 12:36:06 2007
+++ llvm/test/CodeGen/ARM/fpmem.ll	Mon May  7 16:50:07 2007
@@ -6,18 +6,17 @@
 ; RUN:   grep {fsts.*\\\[} | wc -l | grep 1
 
 float %f1(float %a) {
-entry:
 	ret float 0.000000e+00
 }
 
-float %f2(float* %v) {
-entry:
+float %f2(float* %v, float %u) {
         %tmp = load float* %v
-	ret float %tmp
+        %tmp1 = add float %tmp, %u
+	ret float %tmp1
 }
 
-void %f3(float %a, float* %v) {
-entry:
-	store float %a, float* %v
+void %f3(float %a, float %b, float* %v) {
+        %tmp = add float %a, %b
+	store float %tmp, float* %v
 	ret void
 }






More information about the llvm-commits mailing list