summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/ARM/fpcmp_ueq.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/ARM/fpcmp_ueq.ll')
-rw-r--r--test/CodeGen/ARM/fpcmp_ueq.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/fpcmp_ueq.ll b/test/CodeGen/ARM/fpcmp_ueq.ll
new file mode 100644
index 0000000..67f70e9
--- /dev/null
+++ b/test/CodeGen/ARM/fpcmp_ueq.ll
@@ -0,0 +1,10 @@
+; RUN: llc < %s -march=arm | grep moveq
+; RUN: llc < %s -march=arm -mattr=+vfp2 | grep movvs
+
+define i32 @f7(float %a, float %b) {
+entry:
+ %tmp = fcmp ueq float %a,%b
+ %retval = select i1 %tmp, i32 666, i32 42
+ ret i32 %retval
+}
+