Minor fix for i386.md

law@redhat.com law@redhat.com
Thu Jun 13 05:27:00 GMT 2002


This fixes the various conversion.c compilation and execution failures that
we've been seeing on ia32 on and off for the last month or so.

Bootstrapped and regression tested on i686-pc-linux-gnu.  Installed into
the mainlines sources.

	* i386.md (extenddfxf2, extenddftf2): Fix typo/thinko.

Index: config/i386/i386.md
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/i386/i386.md,v
retrieving revision 1.373
diff -c -3 -p -r1.373 i386.md
*** config/i386/i386.md	12 Jun 2002 14:51:09 -0000	1.373
--- config/i386/i386.md	13 Jun 2002 12:25:49 -0000
***************
*** 3560,3566 ****
    /* ??? Needed for compress_float_constant since all fp constants
       are LEGITIMATE_CONSTANT_P.  */
    if (GET_CODE (operands[1]) == CONST_DOUBLE)
!     operands[1] = validize_mem (force_const_mem (SFmode, operands[1]));
    if (GET_CODE (operands[0]) == MEM && GET_CODE (operands[1]) == MEM)
      operands[1] = force_reg (DFmode, operands[1]);
  })
--- 3560,3566 ----
    /* ??? Needed for compress_float_constant since all fp constants
       are LEGITIMATE_CONSTANT_P.  */
    if (GET_CODE (operands[1]) == CONST_DOUBLE)
!     operands[1] = validize_mem (force_const_mem (DFmode, operands[1]));
    if (GET_CODE (operands[0]) == MEM && GET_CODE (operands[1]) == MEM)
      operands[1] = force_reg (DFmode, operands[1]);
  })
***************
*** 3605,3611 ****
    /* ??? Needed for compress_float_constant since all fp constants
       are LEGITIMATE_CONSTANT_P.  */
    if (GET_CODE (operands[1]) == CONST_DOUBLE)
!     operands[1] = validize_mem (force_const_mem (SFmode, operands[1]));
    if (GET_CODE (operands[0]) == MEM && GET_CODE (operands[1]) == MEM)
      operands[1] = force_reg (DFmode, operands[1]);
  })
--- 3605,3611 ----
    /* ??? Needed for compress_float_constant since all fp constants
       are LEGITIMATE_CONSTANT_P.  */
    if (GET_CODE (operands[1]) == CONST_DOUBLE)
!     operands[1] = validize_mem (force_const_mem (DFmode, operands[1]));
    if (GET_CODE (operands[0]) == MEM && GET_CODE (operands[1]) == MEM)
      operands[1] = force_reg (DFmode, operands[1]);
  })




More information about the Gcc-patches mailing list