summaryrefslogtreecommitdiff
path: root/test/CodeGen/PowerPC
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2009-05-28 21:04:35 +0000
committerEli Friedman <eli.friedman@gmail.com>2009-05-28 21:04:35 +0000
commitf1f7c09390b0c6e1d77ecc28a152d20b8a4bcea9 (patch)
tree5f65d35dc1414433dcd767f6ed532e19cb3332f3 /test/CodeGen/PowerPC
parentbbdd903c52897df78750aa0caf2fc34d55b5ead0 (diff)
downloadllvm-f1f7c09390b0c6e1d77ecc28a152d20b8a4bcea9.tar.gz
llvm-f1f7c09390b0c6e1d77ecc28a152d20b8a4bcea9.tar.bz2
llvm-f1f7c09390b0c6e1d77ecc28a152d20b8a4bcea9.tar.xz
Add explicit test for PR4280.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72539 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/PowerPC')
-rw-r--r--test/CodeGen/PowerPC/2009-05-28-LegalizeBRCC.ll15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/CodeGen/PowerPC/2009-05-28-LegalizeBRCC.ll b/test/CodeGen/PowerPC/2009-05-28-LegalizeBRCC.ll
new file mode 100644
index 0000000000..4ea43ec505
--- /dev/null
+++ b/test/CodeGen/PowerPC/2009-05-28-LegalizeBRCC.ll
@@ -0,0 +1,15 @@
+; RUN: llvm-as < %s | llc -mtriple=powerpc-apple-darwin10
+; PR4280
+
+define i32 @__fixunssfsi(float %a) nounwind readnone {
+entry:
+ %0 = fcmp ult float %a, 0x41E0000000000000 ; <i1> [#uses=1]
+ br i1 %0, label %bb1, label %bb
+
+bb: ; preds = %entry
+ ret i32 1
+
+bb1: ; preds = %entry
+ ret i32 0
+}
+