More inline arm assembly woes... (long)

Dan Kegel dank@kegel.com
Tue Oct 21 23:20:00 GMT 2003


Bryce Schober wrote:
>     int_a = int_rand[0];
>     int_b = int_rand[1];
>     result = fixp_mul_32u_n16( int_a, int_b );
>     int_a = int_rand[2];
>     int_b = int_rand[3];
>     result = result + fixp_mul_32u_n16( int_a, int_b );
> While I like the array access optimization, I'm appalled by the fact 
> that gcc seems to have optimized the addition out of existence.  Anyone 
> have any ideas here?

Is result global?  If not, gcc can legally nuke it, I think...

It might help to show your actual source.
- Dan


-- 
Dan Kegel
http://www.kegel.com
http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=78045


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com



More information about the crossgcc mailing list