parent
2d828d2e3c
commit
ef409e2780
|
@ -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
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue