Evan Cheng | e5d5595 | 2006-03-03 18:58:09 +0000 | [diff] [blame] | 1 | ; RUN: llvm-as < %s | llc -march=x86 -stats 2>&1 | grep 'asm-printer' | grep 7 |
2 | |||||
3 | int %g(int %a, int %b) { | ||||
4 | %tmp.1 = shl int %b, ubyte 1 | ||||
5 | %tmp.3 = add int %tmp.1, %a | ||||
6 | %tmp.5 = mul int %tmp.3, %a | ||||
7 | %tmp.8 = mul int %b, %b | ||||
8 | %tmp.9 = add int %tmp.5, %tmp.8 | ||||
9 | ret int %tmp.9 | ||||
10 | } |