This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, i386] Avoid FP constants in wrong register set
- From: Richard Henderson <rth at redhat dot com>
- To: Uros Bizjak <uros at kss-loka dot si>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 25 Jan 2005 17:27:49 -0800
- Subject: Re: [PATCH, i386] Avoid FP constants in wrong register set
- References: <41F614BD.30708@kss-loka.si>
On Tue, Jan 25, 2005 at 10:43:25AM +0100, Uros Bizjak wrote:
> @@ -3755,6 +3760,10 @@ standard_80387_constant_rtx (int idx)
> int
> standard_sse_constant_p (rtx x)
> {
> + /* Do not put x87 constants into SSE register for !TARGET_SSE_MATH. */
> + if (!TARGET_SSE_MATH && SSE_FLOAT_MODE_P (GET_MODE (x)))
> + return 0;
I would expect this to start loading 0 from memory instead of
using xorps when talking about xmmintrin.h stuff.
r~