diff options
author | John Carr <jfc@mit.edu> | 1998-04-21 17:50:21 +0000 |
---|---|---|
committer | John Carr <jfc@gcc.gnu.org> | 1998-04-21 17:50:21 +0000 |
commit | 4ceb7595d9833d1cd21ec87a67c2a42e03244310 (patch) | |
tree | bb995b2767d0254f530b2e1909882e429d8b0026 /gcc/genemit.c | |
parent | d1c175729269b953c35f6d110b6666fa055db966 (diff) | |
download | gcc-4ceb7595d9833d1cd21ec87a67c2a42e03244310.zip gcc-4ceb7595d9833d1cd21ec87a67c2a42e03244310.tar.gz gcc-4ceb7595d9833d1cd21ec87a67c2a42e03244310.tar.bz2 |
genemit.c (gen_exp): Allow machine description to set mode of MATCH_OP_DUP.
* genemit.c (gen_exp): Allow machine description to set mode of
MATCH_OP_DUP.
From-SVN: r19359
Diffstat (limited to 'gcc/genemit.c')
-rw-r--r-- | gcc/genemit.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/genemit.c b/gcc/genemit.c index 209fe09..e61d3c0 100644 --- a/gcc/genemit.c +++ b/gcc/genemit.c @@ -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"); |