1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 12:02:58 +02:00
llvm-mirror/test/Regression/CodeGen/X86/2006-03-01-InstrSchedBug.ll
Evan Cheng af289a7ee4 Add a regression test for bug 478.
llvm-svn: 26471
2006-03-02 21:48:34 +00:00

12 lines
284 B
LLVM

; 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
}