diff options
-rw-r--r-- | test/CodeGen/PowerPC/2004-11-30-shr-var-crash.ll | 7 |
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 +} |