Fix ctlz and cttz. llvm definition requires them to return number of bits in of the...
[oota-llvm.git] / test / CodeGen / X86 / 2006-03-01-InstrSchedBug.ll
1 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | not grep {subl.*%esp}
2
3 int %f(int %a, int %b) {
4         %tmp.2 = mul int %a, %a
5         %tmp.5 = shl int %a, ubyte 1
6         %tmp.6 = mul int %tmp.5, %b
7         %tmp.10 = mul int %b, %b
8         %tmp.7 = add int %tmp.10, %tmp.2
9         %tmp.11 = add int %tmp.7, %tmp.6
10         ret int %tmp.11
11 }