add some tests for floating point arithmetic

llvm-svn: 30840
This commit is contained in:
Rafael Espindola 2006-10-09 19:15:17 +00:00
parent 68ca2c483f
commit 4d03bf8f43
1 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,29 @@
; RUN: llvm-as < %s | llc -march=arm &&
; RUN: llvm-as < %s | llc -march=arm | grep fadds &&
; RUN: llvm-as < %s | llc -march=arm | grep faddd &&
; RUN: llvm-as < %s | llc -march=arm | grep fmuls &&
; RUN: llvm-as < %s | llc -march=arm | grep fmuld
float %f(float %a, float %b) {
entry:
%tmp = add float %a, %b
ret float %tmp
}
double %g(double %a, double %b) {
entry:
%tmp = add double %a, %b
ret double %tmp
}
float %h(float %a, float %b) {
entry:
%tmp = mul float %a, %b
ret float %tmp
}
double %i(double %a, double %b) {
entry:
%tmp = mul double %a, %b
ret double %tmp
}