This is the mail archive of the gcc-patches@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: [PATCH, i386] Avoid FP constants in wrong register set


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~


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