OSDN Git Service

* pa.md (reload_peepholes): Don't allow addresses with side
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 18 Sep 1997 07:45:15 +0000 (07:45 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 18 Sep 1997 07:45:15 +0000 (07:45 +0000)
        effects for the memory operand.
Geez, how long have we been screwing this up...

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@15536 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/pa/pa.md

index 1d12a8f..c199435 100644 (file)
@@ -1,3 +1,8 @@
+Thu Sep 18 01:47:06 1997  Jeffrey A Law  (law@cygnus.com)
+
+       * pa.md (reload_peepholes): Don't allow addresses with side
+       effects for the memory operand.
+
 Wed Sep 17 18:19:53 1997  Jason Merrill  <jason@yorick.cygnus.com>
 
        * libgcc2.c (find_exception_handler): Subtract one from our PC when
index 1844a6e..138f675 100644 (file)
    && GET_MODE (operands[0]) == DFmode
    && GET_CODE (operands[1]) == REG
    && GET_CODE (operands[2]) == REG
+   && ! side_effects_p (XEXP (operands[0], 0))
    && REGNO_REG_CLASS (REGNO (operands[1]))
       == REGNO_REG_CLASS (REGNO (operands[2]))"
   "*
    && GET_MODE (operands[0]) == DFmode
    && GET_CODE (operands[0]) == REG
    && GET_CODE (operands[2]) == REG
+   && ! side_effects_p (XEXP (operands[1], 0))
    && REGNO_REG_CLASS (REGNO (operands[0]))
       == REGNO_REG_CLASS (REGNO (operands[2]))"
   "*