This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
SSE immediate loads fix
- From: Jan Hubicka <jh at suse dot cz>
- To: gcc-patches at gcc dot gnu dot org, rth at cygnus dot com
- Date: Tue, 11 Jun 2002 19:15:25 +0200
- Subject: 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;