summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/PowerPC/2004-11-30-shr-var-crash.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/CodeGen/PowerPC/2004-11-30-shr-var-crash.ll')
-rw-r--r--llvm/test/CodeGen/PowerPC/2004-11-30-shr-var-crash.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/PowerPC/2004-11-30-shr-var-crash.ll b/llvm/test/CodeGen/PowerPC/2004-11-30-shr-var-crash.ll
new file mode 100644
index 00000000000..8f54c78e7a9
--- /dev/null
+++ b/llvm/test/CodeGen/PowerPC/2004-11-30-shr-var-crash.ll
@@ -0,0 +1,7 @@
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32
+
+void %main() {
+ %shamt = add ubyte 0, 1 ; <ubyte> [#uses=1]
+ %tr2 = shr long 1, ubyte %shamt ; <long> [#uses=0]
+ ret void
+}
OpenPOWER on IntegriCloud