re PR target/41029 (ICE RTL check: expected code 'reg', have 'post_inc' in rhs_regno...
authorKaz Kojima <kkojima@gcc.gnu.org>
Wed, 12 Aug 2009 22:26:13 +0000 (22:26 +0000)
committerKaz Kojima <kkojima@gcc.gnu.org>
Wed, 12 Aug 2009 22:26:13 +0000 (22:26 +0000)
PR target/41029
* config/sh/sh.md (reload_outdf__RnFRm+4): Fix thinko.

From-SVN: r150709

gcc/ChangeLog
gcc/config/sh/sh.md

index 33778f89c1aed4b8a732cecbc1de656c9348d403..16e7d234a0d7e5922e9089084f4e78aab8682d3b 100644 (file)
@@ -1,3 +1,8 @@
+2009-08-12  Kaz Kojima  <kkojima@gcc.gnu.org>
+
+       PR target/41029
+       * config/sh/sh.md (reload_outdf__RnFRm+4): Fix thinko.
+
 2009-08-12  Kaz Kojima  <kkojima@gcc.gnu.org>
 
        * config/sh/sh.c (sh_promote_function_mode): Add ATTRIBUTE_UNUSED.
index 30084c2d0f81da9f464e4b2aa46b76c5c5c6255d..f06098bfc1bf8c3648fc3e00cd29169b1a386847 100644 (file)
@@ -6065,7 +6065,7 @@ label:
           /* If we have modified the stack pointer, the value that we have
             read with post-increment might be modified by an interrupt,
             so write it back.  */
-          if (REGNO (addr) == STACK_POINTER_REGNUM)
+          if (REGNO (XEXP (addr, 0)) == STACK_POINTER_REGNUM)
            emit_insn (gen_push_e (reg0));
           else
            emit_insn (gen_addsi3 (XEXP (operands[1], 0), XEXP (operands[1], 0), GEN_INT (-4)));