This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Strange behavior with movq
- From: Ian Lance Taylor <iant at google dot com>
- To: Olivier Maury <Olivier_maury at mentor dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Wed, 25 May 2011 10:50:44 -0700
- Subject: Re: Strange behavior with movq
- References: <4DDD2AA8.5020908@mentor.com>
Olivier Maury <Olivier_maury@mentor.com> writes:
> I've a problem with the movq instruction on a 32 bits OS : when that
> instruction is executed it has a bad effect on the floating stack.
When you are using SSE registers you shouldn't be using the floating
point stack, and vice-versa. Read up on the EMMS instruction.
Ian