blob: e9b9946a08355f83597baadbf3d1e45b0aeadb4c [file] [log] [blame]
Evan Chenge5d55952006-03-03 18:58:09 +00001; RUN: llvm-as < %s | llc -march=x86 -stats 2>&1 | grep 'asm-printer' | grep 7
2
3int %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}