This is the mail archive of the gcc@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]

Re: gcc-4.3.2 generated "vmhraddshs" instruction when I compiled with -mcpu=8540


On Wed, Dec 17, 2008 at 01:33:38PM +0700, Ha Luong wrote:
> Thanks for your guide. When I debugged the exe file or make it ran on
> 8548 board, the vmhaddshs makes the exe file hang out. Could I compile
> the source for 8540 (e500v1 instructions) only?

Sure.  But evstdd{,x} are e500v1 instructions too, so you'll still see
them in the generated exe file.

My guess is that you're taking alignment traps on those instructions.
You need to compile with -mabi=spe in addition to -mcpu=8540 to ensure
that the stack and register save areas are properly aligned.

-Nathan


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