summaryrefslogtreecommitdiff
path: root/test/CodeGen/ARM/fpmem.ll
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2009-10-27 06:16:45 +0000
committerBob Wilson <bob.wilson@apple.com>2009-10-27 06:16:45 +0000
commitb9350315d2bafcbdd667bfab49d10b7df4515ec5 (patch)
tree030c567bea2619a05712353b51ec43367cab22b6 /test/CodeGen/ARM/fpmem.ll
parent13e80bdb7198c34009824d06df7b854d8c47c891 (diff)
downloadllvm-b9350315d2bafcbdd667bfab49d10b7df4515ec5.tar.gz
llvm-b9350315d2bafcbdd667bfab49d10b7df4515ec5.tar.bz2
llvm-b9350315d2bafcbdd667bfab49d10b7df4515ec5.tar.xz
Fix the rest of the ARM failures by converting them to FileCheck.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85208 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/ARM/fpmem.ll')
-rw-r--r--test/CodeGen/ARM/fpmem.ll13
1 files changed, 7 insertions, 6 deletions
diff --git a/test/CodeGen/ARM/fpmem.ll b/test/CodeGen/ARM/fpmem.ll
index fa897bf83f..0822fbff65 100644
--- a/test/CodeGen/ARM/fpmem.ll
+++ b/test/CodeGen/ARM/fpmem.ll
@@ -1,21 +1,22 @@
-; RUN: llc < %s -march=arm | \
-; RUN: grep {mov r0, #0} | count 1
-; RUN: llc < %s -march=arm -mattr=+vfp2 | \
-; RUN: grep {flds.*\\\[} | count 1
-; RUN: llc < %s -march=arm -mattr=+vfp2 | \
-; RUN: grep {fsts.*\\\[} | count 1
+; RUN: llc < %s -march=arm -mattr=+vfp2 | FileCheck %s
define float @f1(float %a) {
+; CHECK: f1:
+; CHECK: mov r0, #0
ret float 0.000000e+00
}
define float @f2(float* %v, float %u) {
+; CHECK: f2:
+; CHECK: flds{{.*}}[
%tmp = load float* %v ; <float> [#uses=1]
%tmp1 = fadd float %tmp, %u ; <float> [#uses=1]
ret float %tmp1
}
define void @f3(float %a, float %b, float* %v) {
+; CHECK: f3:
+; CHECK: fsts{{.*}}[
%tmp = fadd float %a, %b ; <float> [#uses=1]
store float %tmp, float* %v
ret void