aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2006-10-10 16:33:47 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2006-10-10 16:33:47 +0000
commit0d9fe764dfcacf9978680cd8bc91cc27191f8546 (patch)
tree727a9e37f7c821ac7d2f560484350ed8e2bd82ec /test/CodeGen
parentfb6abd7deae16f2a180415d85fa33b58e1467afa (diff)
compare doubles
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30856 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
-rw-r--r--test/CodeGen/ARM/fpcmp.ll11
1 files changed, 10 insertions, 1 deletions
diff --git a/test/CodeGen/ARM/fpcmp.ll b/test/CodeGen/ARM/fpcmp.ll
index 6d9012df41..53529bcf04 100644
--- a/test/CodeGen/ARM/fpcmp.ll
+++ b/test/CodeGen/ARM/fpcmp.ll
@@ -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 @@ entry:
%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
+}