* genrecog.c (add_to_sequence): Disable mode check for
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 7 Oct 1999 19:02:36 +0000 (19:02 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 7 Oct 1999 19:02:36 +0000 (19:02 +0000)
        wildcard matches.

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

gcc/ChangeLog
gcc/genrecog.c

index cc4abc1..06bebfc 100644 (file)
@@ -1,3 +1,8 @@
+Thu Oct  7 12:00:53 1999  Richard Henderson  <rth@cygnus.com>
+
+       * genrecog.c (add_to_sequence): Disable mode check for
+       wildcard matches.
+
 Thu Oct  7 20:14:16 1999  Bernd Schmidt  <bernds@cygnus.co.uk>
 
        * ggc-simple.c (init_ggc): Set empty_string.
index c3172f5..bcab2e3 100644 (file)
@@ -478,6 +478,12 @@ add_to_sequence (pattern, last, position, insn_type, top)
 #endif
              }
          }
+       else
+         {
+           /* Wildcard match.  Can't enforce a mode because we allow
+              anything -- const_int included.  */
+           mode = VOIDmode;
+         }
 
        /* Accept the operand, ie. record it in `operands'.  */
        test = new_decision_test (DT_accept_op, &place);