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

Rafael Espindola rafael.espindola at gmail.com
Mon Oct 9 10:50:46 PDT 2006



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

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

add float -> double and double -> float conversion


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

 fpconv.ll |   15 +++++++++++++++
 1 files changed, 15 insertions(+)


Index: llvm/test/Regression/CodeGen/ARM/fpconv.ll
diff -c /dev/null llvm/test/Regression/CodeGen/ARM/fpconv.ll:1.1
*** /dev/null	Mon Oct  9 12:50:39 2006
--- llvm/test/Regression/CodeGen/ARM/fpconv.ll	Mon Oct  9 12:50:29 2006
***************
*** 0 ****
--- 1,15 ----
+ ; RUN: llvm-as < %s | llc -march=arm &&
+ ; RUN: llvm-as < %s | llc -march=arm | grep fcvtds &&
+ ; RUN: llvm-as < %s | llc -march=arm | grep fcvtsd
+ 
+ float %f(double %x) {
+ entry:
+ 	%tmp1 = cast double %x to float
+ 	ret float %tmp1
+ }
+ 
+ double %g(float %x) {
+ entry:
+ 	%tmp1 = cast float %x to double
+ 	ret double %tmp1
+ }






More information about the llvm-commits mailing list