This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/16532] Inefficient jump to epilogue
- From: "dann at godzilla dot ics dot uci dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Aug 2004 18:30:10 -0000
- Subject: [Bug target/16532] Inefficient jump to epilogue
- References: <20040713215437.16532.dann@godzilla.ics.uci.edu>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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