| Reid Spencer | 4dcf8bf | 2007-04-16 15:31:49 +0000 | [diff] [blame] | 1 | ; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | not grep {subl.*%esp} |
| Evan Cheng | dc41f80 | 2006-03-02 21:48:34 +0000 | [diff] [blame] | 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 | } | ||||