diff options
| author | Chris Lattner <sabre@nondot.org> | 2007-04-17 21:12:26 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2007-04-17 21:12:26 +0000 |
| commit | 0a8d14ce67bf11c5fa95940435e958f3294a72ae (patch) | |
| tree | dbf8ca0d41c769880f910a60fa63b686be3146fa /llvm/test/CodeGen/PowerPC/shl_elim.ll | |
| parent | 1ff58a45ae7fb8c8d4e3df37ca267abd6376704b (diff) | |
| download | bcm5719-llvm-0a8d14ce67bf11c5fa95940435e958f3294a72ae.tar.gz bcm5719-llvm-0a8d14ce67bf11c5fa95940435e958f3294a72ae.zip | |
new testcase
llvm-svn: 36220
Diffstat (limited to 'llvm/test/CodeGen/PowerPC/shl_elim.ll')
| -rw-r--r-- | llvm/test/CodeGen/PowerPC/shl_elim.ll | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/PowerPC/shl_elim.ll b/llvm/test/CodeGen/PowerPC/shl_elim.ll new file mode 100644 index 00000000000..3dc47729860 --- /dev/null +++ b/llvm/test/CodeGen/PowerPC/shl_elim.ll @@ -0,0 +1,11 @@ +; RUN: llvm-as < %s | llc -march=ppc32 | not grep slwi + +define i32 @test1(i64 %a) { + %tmp29 = lshr i64 %a, 24 ; <i64> [#uses=1] + %tmp23 = trunc i64 %tmp29 to i32 ; <i32> [#uses=1] + %tmp410 = lshr i32 %tmp23, 9 ; <i32> [#uses=1] + %tmp45 = trunc i32 %tmp410 to i16 ; <i16> [#uses=1] + %tmp456 = sext i16 %tmp45 to i32 ; <i32> [#uses=1] + ret i32 %tmp456 +} + |

