diff options
author | Kazu Hirata <kazu@cs.umass.edu> | 2004-02-02 22:05:41 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2004-02-02 22:05:41 +0000 |
commit | 600555f5b1bdaec906fae71a413d49ea6a167ed7 (patch) | |
tree | ba1b1d2811dfc616c28f99d8947ca7126815d45c /gcc | |
parent | 16dd5cfeb8364bb5b8ea60de17788a2d414c8972 (diff) | |
download | gcc-600555f5b1bdaec906fae71a413d49ea6a167ed7.zip gcc-600555f5b1bdaec906fae71a413d49ea6a167ed7.tar.gz gcc-600555f5b1bdaec906fae71a413d49ea6a167ed7.tar.bz2 |
genemit.c (gen_exp): Generate gen_rtx_fmt_e* instead of gen_rtx.
* genemit.c (gen_exp): Generate gen_rtx_fmt_e* instead of
gen_rtx.
From-SVN: r77137
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/genemit.c | 10 |
2 files changed, 13 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 740bc21..0cce257 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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> diff --git a/gcc/genemit.c b/gcc/genemit.c index 56db606..16440c5 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++) { |