Fix tests.
authorEvan Cheng <evan.cheng@apple.com>
Mon, 7 May 2007 21:50:07 +0000 (21:50 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Mon, 7 May 2007 21:50:07 +0000 (21:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36913 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/ARM/fp.ll
test/CodeGen/ARM/fpmem.ll

index 78b819e9e0e7180c5489c383fd8d5ffbaab285e5..4de9a06521c126bd86355c3ce52b91b5ba1fe587 100644 (file)
@@ -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 6e35138c016ab3ee73df77b60cd767f1533efa74..3ed9f2dccb662e32687c129aa25f292da557081b 100644 (file)
@@ -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
 }