[llvm-commits] CVS: llvm/test/Regression/CodeGen/ARM/fp.ll fpcmp.ll fpconv.ll
Rafael Espindola
rafael.espindola at gmail.com
Tue Oct 17 13:20:23 PDT 2006
Changes in directory llvm/test/Regression/CodeGen/ARM:
fp.ll updated: 1.9 -> 1.10
fpcmp.ll updated: 1.4 -> 1.5
fpconv.ll updated: 1.3 -> 1.4
---
Log message:
cleanup some tests
---
Diffs of the changes: (+43 -45)
fp.ll | 34 +++-------------------------------
fpcmp.ll | 8 +-------
fpconv.ll | 46 +++++++++++++++++++++++++++++++++++++++-------
3 files changed, 43 insertions(+), 45 deletions(-)
Index: llvm/test/Regression/CodeGen/ARM/fp.ll
diff -u llvm/test/Regression/CodeGen/ARM/fp.ll:1.9 llvm/test/Regression/CodeGen/ARM/fp.ll:1.10
--- llvm/test/Regression/CodeGen/ARM/fp.ll:1.9 Tue Oct 17 08:36:07 2006
+++ llvm/test/Regression/CodeGen/ARM/fp.ll Tue Oct 17 15:20:07 2006
@@ -1,42 +1,14 @@
; RUN: llvm-as < %s | llc -march=arm &&
-; RUN: llvm-as < %s | llc -march=arm | grep fmsr | wc -l | grep 5 &&
-; RUN: llvm-as < %s | llc -march=arm | grep fsitos &&
+; RUN: llvm-as < %s | llc -march=arm | grep fmsr &&
; 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 5 &&
-; RUN: llvm-as < %s | llc -march=arm | grep fmdrr | wc -l | grep 3 &&
+; RUN: llvm-as < %s | llc -march=arm | grep fmrrd &&
+; RUN: llvm-as < %s | llc -march=arm | grep fmdrr &&
; 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 fstd &&
; RUN: llvm-as < %s | llc -march=arm | grep fsts &&
-; 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) {
-entry:
- %tmp = cast int %a to float ; <float> [#uses=1]
- ret float %tmp
-}
-
-double %g(int %a) {
-entry:
- %tmp = cast int %a to double ; <double> [#uses=1]
- 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:
Index: llvm/test/Regression/CodeGen/ARM/fpcmp.ll
diff -u llvm/test/Regression/CodeGen/ARM/fpcmp.ll:1.4 llvm/test/Regression/CodeGen/ARM/fpcmp.ll:1.5
--- llvm/test/Regression/CodeGen/ARM/fpcmp.ll:1.4 Sat Oct 14 08:42:53 2006
+++ llvm/test/Regression/CodeGen/ARM/fpcmp.ll Tue Oct 17 15:20:07 2006
@@ -4,6 +4,7 @@
; RUN: llvm-as < %s | llc -march=arm | grep movgt &&
; RUN: llvm-as < %s | llc -march=arm | grep movge &&
; RUN: llvm-as < %s | llc -march=arm | grep movls &&
+; RUN: llvm-as < %s | llc -march=arm | grep movne &&
; RUN: llvm-as < %s | llc -march=arm | grep fcmps &&
; RUN: llvm-as < %s | llc -march=arm | grep fcmpd
@@ -55,10 +56,3 @@
%tmp = cast bool %tmp to int ; <int> [#uses=1]
ret int %tmp
}
-
-int %g2(double %a) {
-entry:
- %tmp = setne double %a, 1.000000e+00 ; <bool> [#uses=1]
- %tmp = cast bool %tmp to int ; <int> [#uses=1]
- ret int %tmp
-}
Index: llvm/test/Regression/CodeGen/ARM/fpconv.ll
diff -u llvm/test/Regression/CodeGen/ARM/fpconv.ll:1.3 llvm/test/Regression/CodeGen/ARM/fpconv.ll:1.4
--- llvm/test/Regression/CodeGen/ARM/fpconv.ll:1.3 Tue Oct 10 15:38:57 2006
+++ llvm/test/Regression/CodeGen/ARM/fpconv.ll Tue Oct 17 15:20:07 2006
@@ -1,6 +1,14 @@
; RUN: llvm-as < %s | llc -march=arm &&
+; RUN: llvm-as < %s | llc -march=arm | grep fcvtsd &&
; RUN: llvm-as < %s | llc -march=arm | grep fcvtds &&
-; RUN: llvm-as < %s | llc -march=arm | grep fcvtsd
+; RUN: llvm-as < %s | llc -march=arm | grep ftosis &&
+; RUN: llvm-as < %s | llc -march=arm | grep ftouis &&
+; RUN: llvm-as < %s | llc -march=arm | grep ftosid &&
+; RUN: llvm-as < %s | llc -march=arm | grep ftouid &&
+; RUN: llvm-as < %s | llc -march=arm | grep fsitos &&
+; RUN: llvm-as < %s | llc -march=arm | grep fsitod &&
+; RUN: llvm-as < %s | llc -march=arm | grep fuitos &&
+; RUN: llvm-as < %s | llc -march=arm | grep fuitod
float %f1(double %x) {
entry:
@@ -20,16 +28,16 @@
ret int %tmp
}
-int %f4(double %x) {
+uint %f4(float %x) {
entry:
- %tmp = cast double %x to int
- ret int %tmp
+ %tmp = cast float %x to uint
+ ret uint %tmp
}
-uint %f5(float %x) {
+int %f5(double %x) {
entry:
- %tmp = cast float %x to uint
- ret uint %tmp
+ %tmp = cast double %x to int
+ ret int %tmp
}
uint %f6(double %x) {
@@ -37,3 +45,27 @@
%tmp = cast double %x to uint
ret uint %tmp
}
+
+float %f7(int %a) {
+entry:
+ %tmp = cast int %a to float
+ ret float %tmp
+}
+
+double %f8(int %a) {
+entry:
+ %tmp = cast int %a to double
+ ret double %tmp
+}
+
+float %f9(uint %a) {
+entry:
+ %tmp = cast uint %a to float
+ ret float %tmp
+}
+
+double %f10(uint %a) {
+entry:
+ %tmp = cast uint %a to double
+ ret double %tmp
+}
More information about the llvm-commits
mailing list