summaryrefslogtreecommitdiff
path: root/test/CodeGen/ARM/fpmem.ll
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-05-07 21:50:07 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-05-07 21:50:07 +0000
commitfd4dbf78aed3a15e2537bf5701ddb1b063d2ed74 (patch)
tree42c7b1579d2f1bf8ddc6e87b25bc2151caf71490 /test/CodeGen/ARM/fpmem.ll
parent070549eb9cb79900b78bb20550d13313aea05652 (diff)
downloadllvm-fd4dbf78aed3a15e2537bf5701ddb1b063d2ed74.tar.gz
llvm-fd4dbf78aed3a15e2537bf5701ddb1b063d2ed74.tar.bz2
llvm-fd4dbf78aed3a15e2537bf5701ddb1b063d2ed74.tar.xz
Fix tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36913 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/ARM/fpmem.ll')
-rw-r--r--test/CodeGen/ARM/fpmem.ll13
1 files changed, 6 insertions, 7 deletions
diff --git a/test/CodeGen/ARM/fpmem.ll b/test/CodeGen/ARM/fpmem.ll
index 6e35138c01..3ed9f2dccb 100644
--- a/test/CodeGen/ARM/fpmem.ll
+++ b/test/CodeGen/ARM/fpmem.ll
@@ -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
}