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

Rafael Espindola rafael.espindola at gmail.com
Tue Oct 10 11:55:30 PDT 2006



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

fpconv.ll updated: 1.1 -> 1.2
---
Log message:

add double <-> int conversion


---
Diffs of the changes:  (+14 -2)

 fpconv.ll |   16 ++++++++++++++--
 1 files changed, 14 insertions(+), 2 deletions(-)


Index: llvm/test/Regression/CodeGen/ARM/fpconv.ll
diff -u llvm/test/Regression/CodeGen/ARM/fpconv.ll:1.1 llvm/test/Regression/CodeGen/ARM/fpconv.ll:1.2
--- llvm/test/Regression/CodeGen/ARM/fpconv.ll:1.1	Mon Oct  9 12:50:29 2006
+++ llvm/test/Regression/CodeGen/ARM/fpconv.ll	Tue Oct 10 13:55:14 2006
@@ -2,14 +2,26 @@
 ; RUN: llvm-as < %s | llc -march=arm | grep fcvtds &&
 ; RUN: llvm-as < %s | llc -march=arm | grep fcvtsd
 
-float %f(double %x) {
+float %f1(double %x) {
 entry:
 	%tmp1 = cast double %x to float
 	ret float %tmp1
 }
 
-double %g(float %x) {
+double %f2(float %x) {
 entry:
 	%tmp1 = cast float %x to double
 	ret double %tmp1
 }
+
+int %f3(float %x) {
+entry:
+        %tmp = cast float %x to int
+        ret int %tmp
+}
+
+int %f4(double %x) {
+entry:
+        %tmp = cast double %x to int
+        ret int %tmp
+}






More information about the llvm-commits mailing list