aboutsummaryrefslogtreecommitdiff
path: root/gcc/genemit.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/genemit.c')
-rw-r--r--gcc/genemit.c30
1 files changed, 9 insertions, 21 deletions
diff --git a/gcc/genemit.c b/gcc/genemit.c
index 29437b9..b6df49c 100644
--- a/gcc/genemit.c
+++ b/gcc/genemit.c
@@ -378,27 +378,15 @@ gen_insn (rtx insn, int lineno)
/* Output code to construct and return the rtl for the instruction body. */
- if (XVECLEN (insn, 1) == 1)
- {
- printf (" return ");
- gen_exp (XVECEXP (insn, 1, 0), DEFINE_INSN, NULL);
- printf (";\n}\n\n");
- }
- else
- {
- char *used = XCNEWVEC (char, stats.num_generator_args);
-
- printf (" return gen_rtx_PARALLEL (VOIDmode, gen_rtvec (%d",
- XVECLEN (insn, 1));
-
- for (i = 0; i < XVECLEN (insn, 1); i++)
- {
- printf (",\n\t\t");
- gen_exp (XVECEXP (insn, 1, i), DEFINE_INSN, used);
- }
- printf ("));\n}\n\n");
- XDELETEVEC (used);
- }
+ rtx pattern = add_implicit_parallel (XVEC (insn, 1));
+ /* ??? This is the traditional behavior, but seems suspect. */
+ char *used = (XVECLEN (insn, 1) == 1
+ ? NULL
+ : XCNEWVEC (char, stats.num_generator_args));
+ printf (" return ");
+ gen_exp (pattern, DEFINE_INSN, used);
+ printf (";\n}\n\n");
+ XDELETEVEC (used);
}
/* Generate the `gen_...' function for a DEFINE_EXPAND. */