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]

SSE immediate loads fix


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;


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