summaryrefslogtreecommitdiff
path: root/test/CodeGen/PowerPC/2004-11-30-shr-var-crash.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-11-30 06:39:45 +0000
committerChris Lattner <sabre@nondot.org>2004-11-30 06:39:45 +0000
commitaac2d44bc344d99beac5c5e05d9f780d7ad0542e (patch)
treeef96e5ca69d6d063ee3e465cd6397c85c326dfe8 /test/CodeGen/PowerPC/2004-11-30-shr-var-crash.ll
parente74ed0d53b5c12eb9cb463698df8e81c8a99549d (diff)
downloadllvm-aac2d44bc344d99beac5c5e05d9f780d7ad0542e.tar.gz
llvm-aac2d44bc344d99beac5c5e05d9f780d7ad0542e.tar.bz2
llvm-aac2d44bc344d99beac5c5e05d9f780d7ad0542e.tar.xz
New testcase that crashes the PPC BE
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18375 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/PowerPC/2004-11-30-shr-var-crash.ll')
-rw-r--r--test/CodeGen/PowerPC/2004-11-30-shr-var-crash.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CodeGen/PowerPC/2004-11-30-shr-var-crash.ll b/test/CodeGen/PowerPC/2004-11-30-shr-var-crash.ll
new file mode 100644
index 0000000000..e768753d81
--- /dev/null
+++ b/test/CodeGen/PowerPC/2004-11-30-shr-var-crash.ll
@@ -0,0 +1,7 @@
+; RUN: llvm-as < %s | llc -march=ppc32
+
+void %main() {
+ %shamt = add ubyte 0, 1 ; <ubyte> [#uses=1]
+ %tr2 = shr long 1, ubyte %shamt ; <long> [#uses=0]
+ ret void
+}