From: Chris Lattner Date: Tue, 29 Aug 2006 23:09:59 +0000 (+0000) Subject: new testcase for pr687 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=734d8117234dc665c7aecd7b1b696331457f8f50;p=oota-llvm.git new testcase for pr687 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29967 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGen/X86/shift-coalesce.ll b/test/CodeGen/X86/shift-coalesce.ll new file mode 100644 index 00000000000..90295f146c4 --- /dev/null +++ b/test/CodeGen/X86/shift-coalesce.ll @@ -0,0 +1,11 @@ +; RUN: llvm-as < %s | llc -march=x86 -x86-asm-syntax=intel | grep 'shld.*CL' && +; RUN: llvm-as < %s | llc -march=x86 -x86-asm-syntax=intel | not grep 'mov CL, BL' + +; PR687 + +ulong %foo(ulong %x, long* %X) { + %tmp.1 = load long* %X ; [#uses=1] + %tmp.3 = cast long %tmp.1 to ubyte ; [#uses=1] + %tmp.4 = shl ulong %x, ubyte %tmp.3 ; [#uses=1] + ret ulong %tmp.4 +}