genrecog.c (add_to_sequence): Disable mode check for wildcard matches.
authorRichard Henderson <rth@cygnus.com>
Thu, 7 Oct 1999 19:02:36 +0000 (12:02 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Thu, 7 Oct 1999 19:02:36 +0000 (12:02 -0700)
        * genrecog.c (add_to_sequence): Disable mode check for
        wildcard matches.

From-SVN: r29857

gcc/ChangeLog
gcc/genrecog.c

index cc4abc1bb2a2929d15a5fa8247a0e421517df190..06bebfcb6cb76bce3171b94d3370be85eea42f0c 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 c3172f5a68bace8415f49544bc3379e5ae92da53..bcab2e3698c9f909c6191539a27423ce9208ba16 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);