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 ebotcazou at gcc dot gnu dot org  2004-08-19 10:13 -------
> 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. 

That's because -mcpu=ultrasparc enables -mv8plus, which means that the global
and out registers can be used as full 64-bit registers.  For example in the .s file:

srlx    %o5, 48, %o5

However, this optimization is partially defeated by the 32-bit calling
convention in the testcase, so I'm not sure it is really worth while there.


-- 


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]