summaryrefslogtreecommitdiff
path: root/test/CodeGen
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2009-09-09 23:14:54 +0000
committerBob Wilson <bob.wilson@apple.com>2009-09-09 23:14:54 +0000
commitcd3b9a4f17cf78f208765ab2ab01f2019a9e5651 (patch)
treee984a030b66e115db35d9488a71a60fd81243748 /test/CodeGen
parentc5ea263a23f4f15587e35c9cb07cf72a9fba7613 (diff)
downloadllvm-cd3b9a4f17cf78f208765ab2ab01f2019a9e5651.tar.gz
llvm-cd3b9a4f17cf78f208765ab2ab01f2019a9e5651.tar.bz2
llvm-cd3b9a4f17cf78f208765ab2ab01f2019a9e5651.tar.xz
Fix pr4939: Change FPCCToARMCC to translate SETOLE to ARMCC::LS.
See the bug report for details. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81397 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
-rw-r--r--test/CodeGen/ARM/2009-09-09-fpcmp-ole.ll18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/2009-09-09-fpcmp-ole.ll b/test/CodeGen/ARM/2009-09-09-fpcmp-ole.ll
new file mode 100644
index 0000000000..98cab9a914
--- /dev/null
+++ b/test/CodeGen/ARM/2009-09-09-fpcmp-ole.ll
@@ -0,0 +1,18 @@
+; RUN: llc -O1 -march=arm -mattr=+vfp2 < %s | FileCheck %s
+; pr4939
+
+define void @test(double* %x, double* %y) nounwind {
+ %1 = load double* %x, align 4
+ %2 = load double* %y, align 4
+ %3 = fsub double -0.000000e+00, %1
+ %4 = fcmp ugt double %2, %3
+ br i1 %4, label %bb1, label %bb2
+
+bb1:
+;CHECK: fstdhi
+ store double %1, double* %y, align 4
+ br label %bb2
+
+bb2:
+ ret void
+}