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 target/16532] Inefficient jump to epilogue


------- Additional Comments From dann at godzilla dot ics dot uci dot edu  2004-08-18 18:30 -------
A simplified version of the testcase shows an issue with the ultrasparc code
generation: 

extern unsigned char first_one[65536];

int FirstOne(unsigned long long arg1)
{
  if (arg1 >> 48)
    return (first_one[arg1 >> 48]);
  return 0;
}

gcc -O2 -mcpu=ultrasparc generates a "save" in the prologue, 
A "save" is not generated when compiling for v8. 
There should be no need for a "save", this is a leaf function, and the number of
registers used is very small. 



-- 


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


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