SSE immediate loads fix

Jan Hubicka jh@suse.cz
Tue Jun 11 10:15:00 GMT 2002


RIchard,
your patch to shorten i387 immediates is bit overactive and does the
same for SSE, where we lose.

Tue Jun 11 19:33:52 CEST 2002  Jan HUbicka  <jh@suse.cz>

	* i386.h (RTX_COSTS): float_extend is not for free for SSE.

*** i386.h.old	Mon Jun 10 23:43:00 2002
--- i386.h	Tue Jun 11 19:32:14 2002
*************** do {							\
*** 2706,2712 ****
      TOPLEVEL_COSTS_N_INSNS (ix86_cost->add);				\
  									\
    case FLOAT_EXTEND:							\
!     TOPLEVEL_COSTS_N_INSNS (0);						\
  									\
    egress_rtx_costs:							\
      break;
--- 2707,2716 ----
      TOPLEVEL_COSTS_N_INSNS (ix86_cost->add);				\
  									\
    case FLOAT_EXTEND:							\
!     if (!TARGET_SSE_MATH						\
! 	|| !VALID_SSE_REG_MODE (GET_MODE (X)))				\
!       TOPLEVEL_COSTS_N_INSNS (0);					\
!     break;								\
  									\
    egress_rtx_costs:							\
      break;



More information about the Gcc-patches mailing list