diff options
-rw-r--r-- | test/CodeGen/PowerPC/shl_sext.ll | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGen/PowerPC/shl_sext.ll b/test/CodeGen/PowerPC/shl_sext.ll new file mode 100644 index 0000000000..95ec2d29f6 --- /dev/null +++ b/test/CodeGen/PowerPC/shl_sext.ll @@ -0,0 +1,9 @@ +; This test should not contain a sign extend +; RUN: llvm-as < %s | llc -march=ppc32 | not grep extsb + +int %test(uint %mode.0.i.0) { + %tmp.79 = cast uint %mode.0.i.0 to sbyte ; <sbyte> [#uses=1] + %tmp.80 = cast sbyte %tmp.79 to int ; <int> [#uses=1] + %tmp.81 = shl int %tmp.80, ubyte 24 ; <int> [#uses=1] + ret int %tmp.81 +} |