diff options
author | Nate Begeman <natebegeman@mac.com> | 2006-02-17 21:32:46 +0000 |
---|---|---|
committer | Nate Begeman <natebegeman@mac.com> | 2006-02-17 21:32:46 +0000 |
commit | 3bd540392056be2000c921296711bb80ab1bd4aa (patch) | |
tree | 8812c59af037c70e512dc53da90894814099c67d /test/CodeGen/PowerPC/shl_sext.ll | |
parent | d44d3d5fc33fe26083ccf202232989299f0b2bdd (diff) |
Yet another test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26266 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/PowerPC/shl_sext.ll')
-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 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 ; <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 +} |