[Bug optimization/13355] Suboptimal code generated

kazu at cs dot umass dot edu gcc-bugzilla@gcc.gnu.org
Wed Dec 24 05:49:00 GMT 2003


------- Additional Comments From kazu at cs dot umass dot edu  2003-12-24 04:16 -------
A reduced testcase for the second case.
On mainline, i686-pc-linux-gnu.

/* -march=i686 -mtune=i686 -fomit-frame-pointer -O2 */

register int ebx asm ("ebx");
register int dummy1 asm ("esi");
register int dummy2 asm ("ebp");

int
foo (int arg)
{
  long long res = (long long) arg * (long long) ebx;
  return (int) res;
}

Global variables take up three registers from IA-32!


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kazu at cs dot umass dot edu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13355



More information about the Gcc-bugs mailing list