summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/2006-03-01-InstrSchedBug.ll
blob: 0d2eda05562332b056b99b938c2e2108e5939b6e (plain)
1
2
3
4
5
6
7
8
9
10
11
; RUN: llvm-as < %s | llc -march=x86 | not grep 'subl.*%esp'

int %f(int %a, int %b) {
	%tmp.2 = mul int %a, %a
	%tmp.5 = shl int %a, ubyte 1
	%tmp.6 = mul int %tmp.5, %b
	%tmp.10 = mul int %b, %b
	%tmp.7 = add int %tmp.10, %tmp.2
	%tmp.11 = add int %tmp.7, %tmp.6
	ret int %tmp.11
}