[llvm-commits] CVS: llvm/test/Regression/CodeGen/ARM/fp.ll
Rafael Espindola
rafael.espindola at gmail.com
Sat Oct 7 07:25:07 PDT 2006
Changes in directory llvm/test/Regression/CodeGen/ARM:
fp.ll updated: 1.7 -> 1.8
---
Log message:
implement FUITOS and FUITOD
---
Diffs of the changes: (+17 -2)
fp.ll | 19 +++++++++++++++++--
1 files changed, 17 insertions(+), 2 deletions(-)
Index: llvm/test/Regression/CodeGen/ARM/fp.ll
diff -u llvm/test/Regression/CodeGen/ARM/fp.ll:1.7 llvm/test/Regression/CodeGen/ARM/fp.ll:1.8
--- llvm/test/Regression/CodeGen/ARM/fp.ll:1.7 Sat Oct 7 09:03:39 2006
+++ llvm/test/Regression/CodeGen/ARM/fp.ll Sat Oct 7 09:24:52 2006
@@ -1,12 +1,14 @@
; RUN: llvm-as < %s | llc -march=arm &&
-; RUN: llvm-as < %s | llc -march=arm | grep fmsr | wc -l | grep 2 &&
+; RUN: llvm-as < %s | llc -march=arm | grep fmsr | wc -l | grep 4 &&
; RUN: llvm-as < %s | llc -march=arm | grep fsitos &&
; RUN: llvm-as < %s | llc -march=arm | grep fmrs &&
; RUN: llvm-as < %s | llc -march=arm | grep fsitod &&
-; RUN: llvm-as < %s | llc -march=arm | grep fmrrd | wc -l | grep 4 &&
+; RUN: llvm-as < %s | llc -march=arm | grep fmrrd | wc -l | grep 5 &&
; RUN: llvm-as < %s | llc -march=arm | grep fmdrr | wc -l | grep 2 &&
; RUN: llvm-as < %s | llc -march=arm | grep fldd &&
; RUN: llvm-as < %s | llc -march=arm | grep flds &&
+; RUN: llvm-as < %s | llc -march=arm | grep fuitod &&
+; RUN: llvm-as < %s | llc -march=arm | grep fuitos &&
; RUN: llvm-as < %s | llc -march=arm | grep ".word.*1065353216"
float %f(int %a) {
@@ -21,6 +23,19 @@
ret double %tmp
}
+double %uint_to_double(uint %a) {
+entry:
+ %tmp = cast uint %a to double
+ ret double %tmp
+}
+
+float %uint_to_float(uint %a) {
+entry:
+ %tmp = cast uint %a to float
+ ret float %tmp
+}
+
+
double %h(double* %v) {
entry:
%tmp = load double* %v ; <double> [#uses=1]
More information about the llvm-commits
mailing list