From 3bd540392056be2000c921296711bb80ab1bd4aa Mon Sep 17 00:00:00 2001 From: Nate Begeman Date: Fri, 17 Feb 2006 21:32:46 +0000 Subject: [PATCH] Yet another test git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26266 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/PowerPC/shl_sext.ll | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test/CodeGen/PowerPC/shl_sext.ll diff --git a/test/CodeGen/PowerPC/shl_sext.ll b/test/CodeGen/PowerPC/shl_sext.ll new file mode 100644 index 00000000000..95ec2d29f62 --- /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 ; [#uses=1] + %tmp.80 = cast sbyte %tmp.79 to int ; [#uses=1] + %tmp.81 = shl int %tmp.80, ubyte 24 ; [#uses=1] + ret int %tmp.81 +} -- 2.34.1