mips16 zero_extendsidi2

Clinton Popetz cpopetz@cygnus.com
Tue Mar 7 09:23:00 GMT 2000


In this patch:

2000-01-25  Clinton Popetz  <cpopetz@cygnus.com>

        * config/mips/mips.md (zero_extendsidi2_internal): Disable for
        mips16.

(See http://gcc.gnu.org/ml/gcc-patches/2000-01/msg00902.html )

I needed to also ensure the associated expander forced the operand to a
register for mips16.  This never triggered before, but now libiberty won't
build for mips16 eabi.

Ok?

		-Clint


2000-03-06  Clinton Popetz  <cpopetz@cygnus.com>
	
	* config/mips/mips.md (zero_extendsidi2): Always force operand
	one to memory for mips16.

Index: mips.md
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/mips/mips.md,v
retrieving revision 1.78
diff -c -2 -p -r1.78 mips.md
*** mips.md	2000/02/26 21:35:46	1.78
--- mips.md	2000/03/07 15:59:25
*************** move\\t%0,%z4\\n\\
*** 3616,3620 ****
    "
  {
!   if (optimize && GET_CODE (operands[1]) == MEM)
      operands[1] = force_not_mem (operands[1]);
  
--- 3616,3620 ----
    "
  {
!   if ((optimize || TARGET_MIPS16) && GET_CODE (operands[1]) == MEM)
      operands[1] = force_not_mem (operands[1]);
  


More information about the Gcc-patches mailing list