summaryrefslogtreecommitdiff
path: root/test/CodeGen/PowerPC/2005-01-14-SetSelectCrash.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-01-14 19:30:42 +0000
committerChris Lattner <sabre@nondot.org>2005-01-14 19:30:42 +0000
commit557671951fd4f0502834e6bf3795f24dc7cc5963 (patch)
tree4c9e1b1cffb1d90a40d1c19cb027ab389aed71c2 /test/CodeGen/PowerPC/2005-01-14-SetSelectCrash.ll
parent906ab50acf4f33ee47053138900a8d5a4160aa06 (diff)
downloadllvm-557671951fd4f0502834e6bf3795f24dc7cc5963.tar.gz
llvm-557671951fd4f0502834e6bf3795f24dc7cc5963.tar.bz2
llvm-557671951fd4f0502834e6bf3795f24dc7cc5963.tar.xz
Testcase that crashes the PPC backend. Thanks to Rob for finding this.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19554 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/PowerPC/2005-01-14-SetSelectCrash.ll')
-rw-r--r--test/CodeGen/PowerPC/2005-01-14-SetSelectCrash.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/PowerPC/2005-01-14-SetSelectCrash.ll b/test/CodeGen/PowerPC/2005-01-14-SetSelectCrash.ll
new file mode 100644
index 0000000000..fe2dcf536b
--- /dev/null
+++ b/test/CodeGen/PowerPC/2005-01-14-SetSelectCrash.ll
@@ -0,0 +1,8 @@
+; RUN: llvm-as < %s | llc -march=ppc32
+
+int %main() {
+ %setle = setle long 1, 0
+ %select = select bool true, bool %setle, bool true
+ ret int 0
+}
+