From 734d8117234dc665c7aecd7b1b696331457f8f50 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 29 Aug 2006 23:09:59 +0000 Subject: [PATCH] new testcase for pr687 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29967 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/X86/shift-coalesce.ll | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/CodeGen/X86/shift-coalesce.ll 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 +} -- 2.34.1