blob: 0d2eda05562332b056b99b938c2e2108e5939b6e [file] [log] [blame]
Evan Chengd180ac12006-03-02 21:48:34 +00001; RUN: llvm-as < %s | llc -march=x86 | not grep 'subl.*%esp'
2
3int %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}