regmove.c (fixup_match_2): Check that P has RTX_CLASS 'i' before using its PATTERN.
authorJ"orn Rennecke <amylaar@cygnus.co.uk>
Wed, 1 Jul 1998 09:27:35 +0000 (09:27 +0000)
committerJoern Rennecke <amylaar@gcc.gnu.org>
Wed, 1 Jul 1998 09:27:35 +0000 (10:27 +0100)
* regmove.c (fixup_match_2): Check that P has RTX_CLASS 'i' before
using its PATTERN.

From-SVN: r20868

gcc/ChangeLog
gcc/regmove.c

index ff467bfd9ace083e03fa2b1259b6ddf0a82e0207..9688de22732df2376ef3d6784c26c596ff4a55bf 100644 (file)
@@ -1,3 +1,8 @@
+Wed Jul  1 17:23:23 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
+
+       * regmove.c (fixup_match_2): Check that P has RTX_CLASS 'i' before
+       using its PATTERN.
+
 Wed Jul  1 05:04:41 1998  Richard Henderson  <rth@cygnus.com>
 
        * expr.c (emit_group_load, emit_group_store): Rewrite considering
index 158a69585e5fbff02807ce59b4d3b2924ee136b9..b01a6ff10ffd8f6c7593aaa1da2927deff136545 100644 (file)
@@ -805,6 +805,8 @@ fixup_match_2 (insn, dst, src, offset, regmove_dump_file)
                          && (NOTE_LINE_NUMBER (p) == NOTE_INSN_LOOP_BEG
                              || NOTE_LINE_NUMBER (p) == NOTE_INSN_LOOP_END)))
                    break;
+                 if (GET_RTX_CLASS (GET_CODE (p)) != 'i')
+                   continue;
                  if (reg_overlap_mentioned_p (dst, PATTERN (p)))
                    {
                      try_auto_increment (p, insn, 0, dst, newconst, 1);