Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 1 | ; 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} | ||||
5 | |||||
6 | ; PR687 | ||||
7 | |||||
8 | ulong %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 | } |