This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [i386 PATCH] Expand negation directly to neg?f2_1 when approriate
- From: Richard Henderson <rth at redhat dot com>
- To: Roger Sayle <roger at eyesopen dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 30 May 2006 14:00:39 -0700
- Subject: Re: [i386 PATCH] Expand negation directly to neg?f2_1 when approriate
- References: <Pine.LNX.4.44.0605301107220.30964-100000@www.eyesopen.com>
On Tue, May 30, 2006 at 11:45:23AM -0600, Roger Sayle wrote:
> * config/i386/i386.c (ix86_expand_fp_absneg_operator): When SSE
> isn't available, directly generate the simpler x87 patterns without
> the (use (const_int 0)).
> * config/i386/i386.md (*negsf2_1): Enable pre-reload if the SSE
> implementation isn't available.
> (*negdf2_1): Likewise, if the SSE2 pattern isn't available.
> (*negxf2_1): XF mode negation is always done using the x87.
> (*abssf2_1, *absdf2_1, *absxf2_1): Likewise^3 for fabs.
Ok, except,
> ! "TARGET_80387 && (reload_completed || !TARGET_SSE_MATH || !TARGET_SSE)"
You don't need the TARGET_SSE; TARGET_SSE_MATH will be forced false.
> ! "TARGET_80387 && (reload_completed || !TARGET_SSE_MATH || !TARGET_SSE2)"
SSE1 insns *can* be used, iirc.
r~