[llvm-commits] CVS: llvm/test/Regression/CodeGen/ARM/fparith.ll

Rafael Espindola rafael.espindola at gmail.com
Mon Oct 9 12:15:31 PDT 2006



Changes in directory llvm/test/Regression/CodeGen/ARM:

fparith.ll added (r1.1)
---
Log message:

add some tests for floating point arithmetic


---
Diffs of the changes:  (+29 -0)

 fparith.ll |   29 +++++++++++++++++++++++++++++
 1 files changed, 29 insertions(+)


Index: llvm/test/Regression/CodeGen/ARM/fparith.ll
diff -c /dev/null llvm/test/Regression/CodeGen/ARM/fparith.ll:1.1
*** /dev/null	Mon Oct  9 14:15:27 2006
--- llvm/test/Regression/CodeGen/ARM/fparith.ll	Mon Oct  9 14:15:17 2006
***************
*** 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
+ }






More information about the llvm-commits mailing list