This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Trivial i386 SSE fix
- From: Jan Hubicka <jh at suse dot cz>
- To: gcc-patches at gcc dot gnu dot org, rth at cygnus dot com
- Date: Wed, 13 Feb 2002 20:22:38 +0100
- Subject: Trivial i386 SSE fix
Bootstrapped/regtested i386. FIxes crash in post reload splitter trying
to allocate register.
Wed Feb 13 21:17:59 CET 2002 Jan Hubicka <jh@suse.cz>
* i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
operands.
*** /p1/cfg9/egcs/gcc/config/i386/i386.c Tue Feb 5 20:08:31 2002
--- i386.c Wed Feb 13 21:16:46 2002
*************** ix86_prepare_fp_compare_args (code, pop0
*** 7105,7111 ****
/* Try to rearrange the comparison to make it cheaper. */
if (ix86_fp_comparison_cost (code)
> ix86_fp_comparison_cost (swap_condition (code))
! && (GET_CODE (op0) == REG || !reload_completed))
{
rtx tmp;
tmp = op0, op0 = op1, op1 = tmp;
--- 7140,7146 ----
/* Try to rearrange the comparison to make it cheaper. */
if (ix86_fp_comparison_cost (code)
> ix86_fp_comparison_cost (swap_condition (code))
! && (GET_CODE (op1) == REG || !no_new_pseudos))
{
rtx tmp;
tmp = op0, op0 = op1, op1 = tmp;