Fix tests.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36913 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Evan Cheng 2007-05-07 21:50:07 +00:00
parent 070549eb9c
commit fd4dbf78ae
2 changed files with 7 additions and 9 deletions

View 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

View 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
}