Re: Enabling tree->rtl to generate (plus for asm() operands at O0

2006-02-03 Thread Mike Stump
On Jan 30, 2006, at 11:50 AM, Andrew Pinski wrote: I'm trying to get: void foo() { int rowfraclo[2]; rowfraclo[1] = 42; asm ("movd mm6, %a0" : : "p" (rowfraclo+1)); } With the below patch (still running the testsuite) I can get the compiler to generate that code. So, the question is h

Re: Enabling tree->rtl to generate (plus for asm() operands at O0

2006-01-30 Thread Andrew Pinski
> I'm trying to get: > > void foo() { >int rowfraclo[2]; >rowfraclo[1] = 42; >asm ("movd mm6, %a0" : : "p" (rowfraclo+1)); > } > > With the below patch (still running the testsuite) I can get the > compiler to generate that code. So, the question is how better can I > do this? I

Enabling tree->rtl to generate (plus for asm() operands at O0

2006-01-30 Thread Mike Stump
I'm trying to get: void foo() { int rowfraclo[2]; rowfraclo[1] = 42; asm ("movd mm6, %a0" : : "p" (rowfraclo+1)); } to generate: movd mm6, -4(%ebp) at -O0. Currently we generate: leal-8(%ebp), %eax addl$4, %eax movd mm6, (%eax) With the below patch (still running