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]

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;


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