genemit.c (gen_exp): Allow machine description to set mode of MATCH_OP_DUP.
authorJohn Carr <jfc@mit.edu>
Tue, 21 Apr 1998 17:50:21 +0000 (17:50 +0000)
committerJohn Carr <jfc@gcc.gnu.org>
Tue, 21 Apr 1998 17:50:21 +0000 (17:50 +0000)
* genemit.c (gen_exp): Allow machine description to set mode of
MATCH_OP_DUP.

From-SVN: r19359

gcc/ChangeLog
gcc/genemit.c

index 683d7d5cc0ea7c7622b3eb9aa052025dc371266c..58dc7f73864d93063807dd6cf4c5ac17c2996abd 100644 (file)
@@ -1,3 +1,8 @@
+Tue Apr 21 20:48:37 1998  John Carr  <jfc@mit.edu>
+
+       * genemit.c (gen_exp): Allow machine description to set mode of
+       MATCH_OP_DUP.
+
 Tue Apr 21 16:36:01 1998  John Carr  <jfc@mit.edu>
 
        * alias.c (mode_alias_check): New function.
index 209fe096e0c0267cce55de4e8f7a90287ba44e55..e61d3c09dc45de847e3fbcdb2bf023c1b05f8068 100644 (file)
@@ -172,8 +172,11 @@ gen_exp (x)
       return;
 
     case MATCH_OP_DUP:
-      printf ("gen_rtx (GET_CODE (operand%d), GET_MODE (operand%d)",
-             XINT (x, 0), XINT (x, 0));
+      printf ("gen_rtx (GET_CODE (operand%d), ", XINT (x, 0));
+      if (GET_MODE (x) == VOIDmode)
+       printf ("GET_MODE (operand%d)", XINT (x, 0));
+      else
+       printf ("%smode", GET_MODE_NAME (GET_MODE (x)));
       for (i = 0; i < XVECLEN (x, 1); i++)
        {
          printf (",\n\t\t");