diff options
| author | Chris Lattner <sabre@nondot.org> | 2007-04-17 19:03:02 +0000 | 
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2007-04-17 19:03:02 +0000 | 
| commit | 2a4054bddb06cfcc71ab276157d14360a3f86c7d (patch) | |
| tree | 9c96fa7bd800e435d2eb784e4eadcad999bdfcc8 | |
| parent | 51109b783081831fc63e63fa8d2cab542eb6c534 (diff) | |
| download | bcm5719-llvm-2a4054bddb06cfcc71ab276157d14360a3f86c7d.tar.gz bcm5719-llvm-2a4054bddb06cfcc71ab276157d14360a3f86c7d.zip | |
new testcase
llvm-svn: 36211
| -rw-r--r-- | llvm/test/CodeGen/PowerPC/sign_ext_inreg1.ll | 12 | 
1 files changed, 12 insertions, 0 deletions
| diff --git a/llvm/test/CodeGen/PowerPC/sign_ext_inreg1.ll b/llvm/test/CodeGen/PowerPC/sign_ext_inreg1.ll new file mode 100644 index 00000000000..0e67f770388 --- /dev/null +++ b/llvm/test/CodeGen/PowerPC/sign_ext_inreg1.ll @@ -0,0 +1,12 @@ +; RUN: llvm-as < %s | llc -march=ppc32 | grep srwi +; RUN: llvm-as < %s | llc -march=ppc32 | not grep rlwimi + +define i32 @baz(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 +} + | 

