[llvm-commits] CVS: llvm/test/Regression/CodeGen/ARM/fpcmp.ll
Rafael Espindola
rafael.espindola at gmail.com
Tue Oct 10 09:34:02 PDT 2006
Changes in directory llvm/test/Regression/CodeGen/ARM:
fpcmp.ll updated: 1.1 -> 1.2
---
Log message:
compare doubles
---
Diffs of the changes: (+10 -1)
fpcmp.ll | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletion(-)
Index: llvm/test/Regression/CodeGen/ARM/fpcmp.ll
diff -u llvm/test/Regression/CodeGen/ARM/fpcmp.ll:1.1 llvm/test/Regression/CodeGen/ARM/fpcmp.ll:1.2
--- llvm/test/Regression/CodeGen/ARM/fpcmp.ll:1.1 Tue Oct 10 09:26:06 2006
+++ llvm/test/Regression/CodeGen/ARM/fpcmp.ll Tue Oct 10 11:33:47 2006
@@ -3,7 +3,9 @@
; RUN: llvm-as < %s | llc -march=arm | grep moveq &&
; 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 movle
+; RUN: llvm-as < %s | llc -march=arm | grep movle &&
+; RUN: llvm-as < %s | llc -march=arm | grep fcmpes &&
+; RUN: llvm-as < %s | llc -march=arm | grep fcmped
int %f1(float %a) {
entry:
@@ -39,3 +41,10 @@
%tmp = cast bool %tmp to int ; <int> [#uses=1]
ret int %tmp
}
+
+int %g1(double %a) {
+entry:
+ %tmp = setlt double %a, 1.000000e+00 ; <bool> [#uses=1]
+ %tmp = cast bool %tmp to int ; <int> [#uses=1]
+ ret int %tmp
+}
More information about the llvm-commits
mailing list