summaryrefslogtreecommitdiff
path: root/gcc/genemit.c
diff options
context:
space:
mode:
authorkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>2004-02-02 22:05:41 +0000
committerkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>2004-02-02 22:05:41 +0000
commit8d7bd4fda0c2a479dffd18a49011b248912475a6 (patch)
treeba1b1d2811dfc616c28f99d8947ca7126815d45c /gcc/genemit.c
parent57ba96e9654acb842670e49a4b8b21ab8ffaadc1 (diff)
downloadgcc-8d7bd4fda0c2a479dffd18a49011b248912475a6.tar.gz
* genemit.c (gen_exp): Generate gen_rtx_fmt_e* instead of
gen_rtx. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@77137 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/genemit.c')
-rw-r--r--gcc/genemit.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/gcc/genemit.c b/gcc/genemit.c
index 56db6068386..16440c5c9b0 100644
--- a/gcc/genemit.c
+++ b/gcc/genemit.c
@@ -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++)
{