genemit.c (gen_exp): Generate gen_rtx_fmt_e* instead of gen_rtx.
authorKazu Hirata <kazu@cs.umass.edu>
Mon, 2 Feb 2004 22:05:41 +0000 (22:05 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Mon, 2 Feb 2004 22:05:41 +0000 (22:05 +0000)
* genemit.c (gen_exp): Generate gen_rtx_fmt_e* instead of
gen_rtx.

From-SVN: r77137

gcc/ChangeLog
gcc/genemit.c

index 740bc212ea23aec95c6e8f3b1791ac5a945960df..0cce257a0acdaffeb4abe02496d3b125506ca2db 100644 (file)
@@ -1,3 +1,8 @@
+2004-02-02  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * genemit.c (gen_exp): Generate gen_rtx_fmt_e* instead of
+       gen_rtx.
+
 2004-02-02  Eric Christopher  <echristo@redhat.com>
             Zack Weinberg  <zack@codesourcery.com>
 
index 56db606838635748fff850130e3b5945b1a963a0..16440c5c9b066b357774169e246058aa650bf376 100644 (file)
@@ -178,7 +178,10 @@ gen_exp (rtx x, enum rtx_code subroutine_type, char *used)
       return;
 
     case MATCH_OP_DUP:
-      printf ("gen_rtx (GET_CODE (operand%d), ", XINT (x, 0));
+      printf ("gen_rtx_fmt_");
+      for (i = 0; i < XVECLEN (x, 1); i++)
+       printf ("e");
+      printf (" (GET_CODE (operand%d), ", XINT (x, 0));
       if (GET_MODE (x) == VOIDmode)
        printf ("GET_MODE (operand%d)", XINT (x, 0));
       else
@@ -192,7 +195,10 @@ gen_exp (rtx x, enum rtx_code subroutine_type, char *used)
       return;
 
     case MATCH_OPERATOR:
-      printf ("gen_rtx (GET_CODE (operand%d)", XINT (x, 0));
+      printf ("gen_rtx_fmt_");
+      for (i = 0; i < XVECLEN (x, 2); i++)
+       printf ("e");
+      printf (" (GET_CODE (operand%d)", XINT (x, 0));
       printf (", %smode", GET_MODE_NAME (GET_MODE (x)));
       for (i = 0; i < XVECLEN (x, 2); i++)
        {