blob: bf96708da25e71284c989d67ab07e06df3e51bbc [file] [log] [blame]
Reid Spencer69ccadd2006-12-02 04:23:10 +00001; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -stats 2>&1 | grep 'asm-printer' | grep 7
Evan Chenge5d55952006-03-03 18:58:09 +00002
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}