New testcase that crashes the PPC BE
authorChris Lattner <sabre@nondot.org>
Tue, 30 Nov 2004 06:39:45 +0000 (06:39 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 30 Nov 2004 06:39:45 +0000 (06:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18375 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/PowerPC/2004-11-30-shr-var-crash.ll [new file with mode: 0644]

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 (file)
index 0000000..e768753
--- /dev/null
@@ -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
+}