blob: da063df46cb09ba01da5c2afff64c252a43e6c59 [file] [log] [blame]
Reid Spencer4cda1902007-04-16 15:15:52 +00001; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -stats |& \
2; RUN: grep asm-printer | grep 7
Evan Chenge5d55952006-03-03 18:58:09 +00003
4int %g(int %a, int %b) {
5 %tmp.1 = shl int %b, ubyte 1
6 %tmp.3 = add int %tmp.1, %a
7 %tmp.5 = mul int %tmp.3, %a
8 %tmp.8 = mul int %b, %b
9 %tmp.9 = add int %tmp.5, %tmp.8
10 ret int %tmp.9
11}