summaryrefslogtreecommitdiff
path: root/test/CodeGen/PowerPC/2005-08-12-rlwimi-crash.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-08-12 23:34:03 +0000
committerChris Lattner <sabre@nondot.org>2005-08-12 23:34:03 +0000
commit7e03c749419da9989b2ae5607f072dcd73c16192 (patch)
tree962078a31b3c06c13a9d91227c63294f89462236 /test/CodeGen/PowerPC/2005-08-12-rlwimi-crash.ll
parentc60fb08f7ee00be0aa62c9bf92fd361a2d07c229 (diff)
testcase that crashed the ppc backend, distilled from crafty
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22770 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/PowerPC/2005-08-12-rlwimi-crash.ll')
-rw-r--r--test/CodeGen/PowerPC/2005-08-12-rlwimi-crash.ll12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/CodeGen/PowerPC/2005-08-12-rlwimi-crash.ll b/test/CodeGen/PowerPC/2005-08-12-rlwimi-crash.ll
new file mode 100644
index 00000000000..e9deb8f2761
--- /dev/null
+++ b/test/CodeGen/PowerPC/2005-08-12-rlwimi-crash.ll
@@ -0,0 +1,12 @@
+; this should not crash the ppc backend
+
+; RUN: llvm-as < %s | llc -march=ppc32
+
+uint %test( int %j.0.0.i) {
+ %tmp.85.i = and int %j.0.0.i, 7
+ %tmp.161278.i = cast int %tmp.85.i to uint
+ %tmp.5.i77.i = shr uint %tmp.161278.i, ubyte 3
+ ret uint %tmp.5.i77.i
+}
+
+