From: Chris Lattner Date: Tue, 17 Apr 2007 19:03:02 +0000 (+0000) Subject: new testcase X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=84e8315aaaf558195c73f0c04e9a1b1bc4dbd293;p=oota-llvm.git new testcase git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36211 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGen/PowerPC/sign_ext_inreg1.ll b/test/CodeGen/PowerPC/sign_ext_inreg1.ll new file mode 100644 index 00000000000..0e67f770388 --- /dev/null +++ b/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 ; [#uses=1] + %tmp23 = trunc i64 %tmp29 to i32 ; [#uses=1] + %tmp410 = lshr i32 %tmp23, 9 ; [#uses=1] + %tmp45 = trunc i32 %tmp410 to i16 ; [#uses=1] + %tmp456 = sext i16 %tmp45 to i32 ; [#uses=1] + ret i32 %tmp456 +} +