This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug optimization/13355] Suboptimal code generated


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]