Skip to content
Snippets Groups Projects
Commit dc41f80f authored by Evan Cheng's avatar Evan Cheng
Browse files

Add a regression test for bug 478.

llvm-svn: 26471
parent 4e3904f6
No related branches found
No related tags found
No related merge requests found
; 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
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment