blob: a071c1151cd7d6d8b890574399b48c279ff36f4e [file] [log] [blame]
Reid Spencerd3b1f6d2007-04-15 22:20:47 +00001; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -x86-asm-syntax=intel | \
2; RUN: grep {shld.*CL}
3; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -x86-asm-syntax=intel | \
4; RUN: not grep {mov CL, BL}
Chris Lattner734d8112006-08-29 23:09:59 +00005
6; PR687
7
8ulong %foo(ulong %x, long* %X) {
9 %tmp.1 = load long* %X ; <long> [#uses=1]
10 %tmp.3 = cast long %tmp.1 to ubyte ; <ubyte> [#uses=1]
11 %tmp.4 = shl ulong %x, ubyte %tmp.3 ; <ulong> [#uses=1]
12 ret ulong %tmp.4
13}