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]

Re: combine.c patch


Here is another incorrect use of SUBREG_REG from combine.c, where
the wrong piece of rtl is passed to the macro.


   Alasdair.



Sat Jul  4 21:55:43 BST 1998	Alasdair Baird	<alasdair@wildcat.demon.co.uk>

    combine.c (expand_compound_operation): Apply SUBREG_REG to SUBREG.



*** combine.c.orig      Sat Jul  4 19:59:50 1998
--- combine.c   Sat Jul  4 20:00:29 1998
*************** expand_compound_operation (x)
*** 5203,5209 ****
          && subreg_lowpart_p (XEXP (x, 0))
          && GET_MODE_BITSIZE (GET_MODE (x)) <= HOST_BITS_PER_WIDE_INT
          && (nonzero_bits (SUBREG_REG (XEXP (x, 0)), GET_MODE (x))
!             & ~ GET_MODE_MASK (GET_MODE (SUBREG_REG (x)))) == 0)
        return SUBREG_REG (XEXP (x, 0));
  
        /* (zero_extend:DI (truncate:SI foo:DI)) is just foo:DI when foo
--- 5203,5209 ----
          && subreg_lowpart_p (XEXP (x, 0))
          && GET_MODE_BITSIZE (GET_MODE (x)) <= HOST_BITS_PER_WIDE_INT
          && (nonzero_bits (SUBREG_REG (XEXP (x, 0)), GET_MODE (x))
!             & ~ GET_MODE_MASK (GET_MODE (SUBREG_REG (XEXP (x, 0))))) == 0)
        return SUBREG_REG (XEXP (x, 0));
  
        /* (zero_extend:DI (truncate:SI foo:DI)) is just foo:DI when foo


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