1 /* Generate code from machine description to emit insns as rtl.
2 Copyright (C) 1987, 1988, 1991, 1994, 1995, 1997, 1998, 1999, 2000, 2001,
3 2003, 2004, 2005, 2007, 2008, 2009, 2010, 2011, 2012
4 Free Software Foundation, Inc.
6 This file is part of GCC.
8 GCC is free software; you can redistribute it and/or modify it under
9 the terms of the GNU General Public License as published by the Free
10 Software Foundation; either version 3, or (at your option) any later
13 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
14 WARRANTY; without even the implied warranty of MERCHANTABILITY or
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
18 You should have received a copy of the GNU General Public License
19 along with GCC; see the file COPYING3. If not see
20 <http://www.gnu.org/licenses/>. */
25 #include "coretypes.h"
30 #include "gensupport.h"
33 static int insn_code_number
;
34 static int insn_index_number
;
36 /* Data structure for recording the patterns of insns that have CLOBBERs.
37 We use this to output a function that adds these CLOBBERs to a
38 previously-allocated PARALLEL expression. */
42 struct clobber_ent
*insns
;
45 struct clobber_pat
*next
;
49 /* Records one insn that uses the clobber list. */
53 int code_number
; /* Counts only insns. */
54 struct clobber_ent
*next
;
57 static void print_code (RTX_CODE
);
58 static void gen_exp (rtx
, enum rtx_code
, char *);
59 static void gen_insn (rtx
, int);
60 static void gen_expand (rtx
);
61 static void gen_split (rtx
);
62 static void output_add_clobbers (void);
63 static void output_added_clobbers_hard_reg_p (void);
64 static void gen_rtx_scratch (rtx
, enum rtx_code
);
65 static void output_peephole2_scratches (rtx
);
69 print_code (RTX_CODE code
)
72 for (p1
= GET_RTX_NAME (code
); *p1
; p1
++)
73 putchar (TOUPPER(*p1
));
77 gen_rtx_scratch (rtx x
, enum rtx_code subroutine_type
)
79 if (subroutine_type
== DEFINE_PEEPHOLE2
)
81 printf ("operand%d", XINT (x
, 0));
85 printf ("gen_rtx_SCRATCH (%smode)", GET_MODE_NAME (GET_MODE (x
)));
89 /* Print a C expression to construct an RTX just like X,
90 substituting any operand references appearing within. */
93 gen_exp (rtx x
, enum rtx_code subroutine_type
, char *used
)
114 if (used
[XINT (x
, 0)])
116 printf ("copy_rtx (operand%d)", XINT (x
, 0));
119 used
[XINT (x
, 0)] = 1;
121 printf ("operand%d", XINT (x
, 0));
125 printf ("gen_rtx_fmt_");
126 for (i
= 0; i
< XVECLEN (x
, 1); i
++)
128 printf (" (GET_CODE (operand%d), ", XINT (x
, 0));
129 if (GET_MODE (x
) == VOIDmode
)
130 printf ("GET_MODE (operand%d)", XINT (x
, 0));
132 printf ("%smode", GET_MODE_NAME (GET_MODE (x
)));
133 for (i
= 0; i
< XVECLEN (x
, 1); i
++)
136 gen_exp (XVECEXP (x
, 1, i
), subroutine_type
, used
);
142 printf ("gen_rtx_fmt_");
143 for (i
= 0; i
< XVECLEN (x
, 2); i
++)
145 printf (" (GET_CODE (operand%d)", XINT (x
, 0));
146 printf (", %smode", GET_MODE_NAME (GET_MODE (x
)));
147 for (i
= 0; i
< XVECLEN (x
, 2); i
++)
150 gen_exp (XVECEXP (x
, 2, i
), subroutine_type
, used
);
157 printf ("operand%d", XINT (x
, 0));
161 gen_rtx_scratch (x
, subroutine_type
);
171 printf ("simple_return_rtx");
174 if (REG_P (XEXP (x
, 0)))
176 printf ("gen_hard_reg_clobber (%smode, %i)", GET_MODE_NAME (GET_MODE (XEXP (x
, 0))),
177 REGNO (XEXP (x
, 0)));
188 printf ("const0_rtx");
189 else if (INTVAL (x
) == 1)
190 printf ("const1_rtx");
191 else if (INTVAL (x
) == -1)
192 printf ("constm1_rtx");
193 else if (-MAX_SAVED_CONST_INT
<= INTVAL (x
)
194 && INTVAL (x
) <= MAX_SAVED_CONST_INT
)
195 printf ("const_int_rtx[MAX_SAVED_CONST_INT + (%d)]",
197 else if (INTVAL (x
) == STORE_FLAG_VALUE
)
198 printf ("const_true_rtx");
201 printf ("GEN_INT (");
202 printf (HOST_WIDE_INT_PRINT_DEC_C
, INTVAL (x
));
209 /* These shouldn't be written in MD files. Instead, the appropriate
210 routines in varasm.c should be called. */
219 printf (" (%smode", GET_MODE_NAME (GET_MODE (x
)));
221 fmt
= GET_RTX_FORMAT (code
);
222 len
= GET_RTX_LENGTH (code
);
223 for (i
= 0; i
< len
; i
++)
231 gen_exp (XEXP (x
, i
), subroutine_type
, used
);
235 printf ("%u", XINT (x
, i
));
239 printf ("\"%s\"", XSTR (x
, i
));
245 printf ("gen_rtvec (%d", XVECLEN (x
, i
));
246 for (j
= 0; j
< XVECLEN (x
, i
); j
++)
249 gen_exp (XVECEXP (x
, i
, j
), subroutine_type
, used
);
262 /* Generate the `gen_...' function for a DEFINE_INSN. */
265 gen_insn (rtx insn
, int lineno
)
267 struct pattern_stats stats
;
270 /* See if the pattern for this insn ends with a group of CLOBBERs of (hard)
271 registers or MATCH_SCRATCHes. If so, store away the information for
276 int has_hard_reg
= 0;
278 for (i
= XVECLEN (insn
, 1) - 1; i
> 0; i
--)
280 if (GET_CODE (XVECEXP (insn
, 1, i
)) != CLOBBER
)
283 if (REG_P (XEXP (XVECEXP (insn
, 1, i
), 0)))
285 else if (GET_CODE (XEXP (XVECEXP (insn
, 1, i
), 0)) != MATCH_SCRATCH
)
289 if (i
!= XVECLEN (insn
, 1) - 1)
291 struct clobber_pat
*p
;
292 struct clobber_ent
*link
= XNEW (struct clobber_ent
);
295 link
->code_number
= insn_code_number
;
297 /* See if any previous CLOBBER_LIST entry is the same as this
300 for (p
= clobber_list
; p
; p
= p
->next
)
302 if (p
->first_clobber
!= i
+ 1
303 || XVECLEN (p
->pattern
, 1) != XVECLEN (insn
, 1))
306 for (j
= i
+ 1; j
< XVECLEN (insn
, 1); j
++)
308 rtx old_rtx
= XEXP (XVECEXP (p
->pattern
, 1, j
), 0);
309 rtx new_rtx
= XEXP (XVECEXP (insn
, 1, j
), 0);
311 /* OLD and NEW_INSN are the same if both are to be a SCRATCH
313 or if both are registers of the same mode and number. */
314 if (! (GET_MODE (old_rtx
) == GET_MODE (new_rtx
)
315 && ((GET_CODE (old_rtx
) == MATCH_SCRATCH
316 && GET_CODE (new_rtx
) == MATCH_SCRATCH
)
317 || (REG_P (old_rtx
) && REG_P (new_rtx
)
318 && REGNO (old_rtx
) == REGNO (new_rtx
)))))
322 if (j
== XVECLEN (insn
, 1))
328 p
= XNEW (struct clobber_pat
);
332 p
->first_clobber
= i
+ 1;
333 p
->next
= clobber_list
;
334 p
->has_hard_reg
= has_hard_reg
;
338 link
->next
= p
->insns
;
343 /* Don't mention instructions whose names are the null string
344 or begin with '*'. They are in the machine description just
346 if (XSTR (insn
, 0)[0] == 0 || XSTR (insn
, 0)[0] == '*')
349 printf ("/* %s:%d */\n", read_md_filename
, lineno
);
351 /* Find out how many operands this function has. */
352 get_pattern_stats (&stats
, XVEC (insn
, 1));
353 if (stats
.max_dup_opno
> stats
.max_opno
)
354 fatal ("match_dup operand number has no match_operand");
356 /* Output the function name and argument declarations. */
357 printf ("rtx\ngen_%s (", XSTR (insn
, 0));
358 if (stats
.num_generator_args
)
359 for (i
= 0; i
< stats
.num_generator_args
; i
++)
361 printf (",\n\trtx operand%d ATTRIBUTE_UNUSED", i
);
363 printf ("rtx operand%d ATTRIBUTE_UNUSED", i
);
369 /* Output code to construct and return the rtl for the instruction body. */
371 if (XVECLEN (insn
, 1) == 1)
374 gen_exp (XVECEXP (insn
, 1, 0), DEFINE_INSN
, NULL
);
379 char *used
= XCNEWVEC (char, stats
.num_generator_args
);
381 printf (" return gen_rtx_PARALLEL (VOIDmode, gen_rtvec (%d",
384 for (i
= 0; i
< XVECLEN (insn
, 1); i
++)
387 gen_exp (XVECEXP (insn
, 1, i
), DEFINE_INSN
, used
);
389 printf ("));\n}\n\n");
394 /* Generate the `gen_...' function for a DEFINE_EXPAND. */
397 gen_expand (rtx expand
)
399 struct pattern_stats stats
;
403 if (strlen (XSTR (expand
, 0)) == 0)
404 fatal ("define_expand lacks a name");
405 if (XVEC (expand
, 1) == 0)
406 fatal ("define_expand for %s lacks a pattern", XSTR (expand
, 0));
408 /* Find out how many operands this function has. */
409 get_pattern_stats (&stats
, XVEC (expand
, 1));
411 /* Output the function name and argument declarations. */
412 printf ("rtx\ngen_%s (", XSTR (expand
, 0));
413 if (stats
.num_generator_args
)
414 for (i
= 0; i
< stats
.num_generator_args
; i
++)
416 printf (",\n\trtx operand%d", i
);
418 printf ("rtx operand%d", i
);
424 /* If we don't have any C code to write, only one insn is being written,
425 and no MATCH_DUPs are present, we can just return the desired insn
426 like we do for a DEFINE_INSN. This saves memory. */
427 if ((XSTR (expand
, 3) == 0 || *XSTR (expand
, 3) == '\0')
428 && stats
.max_opno
>= stats
.max_dup_opno
429 && XVECLEN (expand
, 1) == 1)
432 gen_exp (XVECEXP (expand
, 1, 0), DEFINE_EXPAND
, NULL
);
437 /* For each operand referred to only with MATCH_DUPs,
438 make a local variable. */
439 for (i
= stats
.num_generator_args
; i
<= stats
.max_dup_opno
; i
++)
440 printf (" rtx operand%d;\n", i
);
441 for (; i
<= stats
.max_scratch_opno
; i
++)
442 printf (" rtx operand%d ATTRIBUTE_UNUSED;\n", i
);
443 printf (" rtx _val = 0;\n");
444 printf (" start_sequence ();\n");
446 /* The fourth operand of DEFINE_EXPAND is some code to be executed
447 before the actual construction.
448 This code expects to refer to `operands'
449 just as the output-code in a DEFINE_INSN does,
450 but here `operands' is an automatic array.
451 So copy the operand values there before executing it. */
452 if (XSTR (expand
, 3) && *XSTR (expand
, 3))
455 if (stats
.num_operand_vars
> 0)
456 printf (" rtx operands[%d];\n", stats
.num_operand_vars
);
458 /* Output code to copy the arguments into `operands'. */
459 for (i
= 0; i
< stats
.num_generator_args
; i
++)
460 printf (" operands[%d] = operand%d;\n", i
, i
);
462 /* Output the special code to be executed before the sequence
464 print_md_ptr_loc (XSTR (expand
, 3));
465 printf ("%s\n", XSTR (expand
, 3));
467 /* Output code to copy the arguments back out of `operands'
468 (unless we aren't going to use them at all). */
469 if (XVEC (expand
, 1) != 0)
471 for (i
= 0; i
< stats
.num_operand_vars
; i
++)
473 printf (" operand%d = operands[%d];\n", i
, i
);
474 printf (" (void) operand%d;\n", i
);
480 /* Output code to construct the rtl for the instruction bodies.
481 Use emit_insn to add them to the sequence being accumulated.
482 But don't do this if the user's code has set `no_more' nonzero. */
484 used
= XCNEWVEC (char, stats
.num_operand_vars
);
486 for (i
= 0; i
< XVECLEN (expand
, 1); i
++)
488 rtx next
= XVECEXP (expand
, 1, i
);
489 if ((GET_CODE (next
) == SET
&& GET_CODE (SET_DEST (next
)) == PC
)
490 || (GET_CODE (next
) == PARALLEL
491 && ((GET_CODE (XVECEXP (next
, 0, 0)) == SET
492 && GET_CODE (SET_DEST (XVECEXP (next
, 0, 0))) == PC
)
493 || ANY_RETURN_P (XVECEXP (next
, 0, 0))))
494 || ANY_RETURN_P (next
))
495 printf (" emit_jump_insn (");
496 else if ((GET_CODE (next
) == SET
&& GET_CODE (SET_SRC (next
)) == CALL
)
497 || GET_CODE (next
) == CALL
498 || (GET_CODE (next
) == PARALLEL
499 && GET_CODE (XVECEXP (next
, 0, 0)) == SET
500 && GET_CODE (SET_SRC (XVECEXP (next
, 0, 0))) == CALL
)
501 || (GET_CODE (next
) == PARALLEL
502 && GET_CODE (XVECEXP (next
, 0, 0)) == CALL
))
503 printf (" emit_call_insn (");
504 else if (LABEL_P (next
))
505 printf (" emit_label (");
506 else if (GET_CODE (next
) == MATCH_OPERAND
507 || GET_CODE (next
) == MATCH_DUP
508 || GET_CODE (next
) == MATCH_OPERATOR
509 || GET_CODE (next
) == MATCH_OP_DUP
510 || GET_CODE (next
) == MATCH_PARALLEL
511 || GET_CODE (next
) == MATCH_PAR_DUP
512 || GET_CODE (next
) == PARALLEL
)
515 printf (" emit_insn (");
516 gen_exp (next
, DEFINE_EXPAND
, used
);
518 if (GET_CODE (next
) == SET
&& GET_CODE (SET_DEST (next
)) == PC
519 && GET_CODE (SET_SRC (next
)) == LABEL_REF
)
520 printf (" emit_barrier ();");
525 /* Call `get_insns' to extract the list of all the
526 insns emitted within this gen_... function. */
528 printf (" _val = get_insns ();\n");
529 printf (" end_sequence ();\n");
530 printf (" return _val;\n}\n\n");
533 /* Like gen_expand, but generates insns resulting from splitting SPLIT. */
536 gen_split (rtx split
)
538 struct pattern_stats stats
;
540 const char *const name
=
541 ((GET_CODE (split
) == DEFINE_PEEPHOLE2
) ? "peephole2" : "split");
545 if (XVEC (split
, 0) == 0)
546 fatal ("define_%s (definition %d) lacks a pattern", name
,
548 else if (XVEC (split
, 2) == 0)
549 fatal ("define_%s (definition %d) lacks a replacement pattern", name
,
552 /* Find out how many operands this function has. */
554 get_pattern_stats (&stats
, XVEC (split
, 2));
555 unused
= (stats
.num_operand_vars
== 0 ? " ATTRIBUTE_UNUSED" : "");
556 used
= XCNEWVEC (char, stats
.num_operand_vars
);
558 /* Output the prototype, function name and argument declarations. */
559 if (GET_CODE (split
) == DEFINE_PEEPHOLE2
)
561 printf ("extern rtx gen_%s_%d (rtx, rtx *);\n",
562 name
, insn_code_number
);
563 printf ("rtx\ngen_%s_%d (rtx curr_insn ATTRIBUTE_UNUSED, rtx *operands%s)\n",
564 name
, insn_code_number
, unused
);
568 printf ("extern rtx gen_split_%d (rtx, rtx *);\n", insn_code_number
);
569 printf ("rtx\ngen_split_%d (rtx curr_insn ATTRIBUTE_UNUSED, rtx *operands%s)\n",
570 insn_code_number
, unused
);
574 /* Declare all local variables. */
575 for (i
= 0; i
< stats
.num_operand_vars
; i
++)
576 printf (" rtx operand%d;\n", i
);
577 printf (" rtx _val = 0;\n");
579 if (GET_CODE (split
) == DEFINE_PEEPHOLE2
)
580 output_peephole2_scratches (split
);
582 printf (" start_sequence ();\n");
584 /* The fourth operand of DEFINE_SPLIT is some code to be executed
585 before the actual construction. */
589 print_md_ptr_loc (XSTR (split
, 3));
590 printf ("%s\n", XSTR (split
, 3));
593 /* Output code to copy the arguments back out of `operands' */
594 for (i
= 0; i
< stats
.num_operand_vars
; i
++)
596 printf (" operand%d = operands[%d];\n", i
, i
);
597 printf (" (void) operand%d;\n", i
);
600 /* Output code to construct the rtl for the instruction bodies.
601 Use emit_insn to add them to the sequence being accumulated.
602 But don't do this if the user's code has set `no_more' nonzero. */
604 for (i
= 0; i
< XVECLEN (split
, 2); i
++)
606 rtx next
= XVECEXP (split
, 2, i
);
607 if ((GET_CODE (next
) == SET
&& GET_CODE (SET_DEST (next
)) == PC
)
608 || (GET_CODE (next
) == PARALLEL
609 && GET_CODE (XVECEXP (next
, 0, 0)) == SET
610 && GET_CODE (SET_DEST (XVECEXP (next
, 0, 0))) == PC
)
611 || ANY_RETURN_P (next
))
612 printf (" emit_jump_insn (");
613 else if ((GET_CODE (next
) == SET
&& GET_CODE (SET_SRC (next
)) == CALL
)
614 || GET_CODE (next
) == CALL
615 || (GET_CODE (next
) == PARALLEL
616 && GET_CODE (XVECEXP (next
, 0, 0)) == SET
617 && GET_CODE (SET_SRC (XVECEXP (next
, 0, 0))) == CALL
)
618 || (GET_CODE (next
) == PARALLEL
619 && GET_CODE (XVECEXP (next
, 0, 0)) == CALL
))
620 printf (" emit_call_insn (");
621 else if (LABEL_P (next
))
622 printf (" emit_label (");
623 else if (GET_CODE (next
) == MATCH_OPERAND
624 || GET_CODE (next
) == MATCH_OPERATOR
625 || GET_CODE (next
) == MATCH_PARALLEL
626 || GET_CODE (next
) == MATCH_OP_DUP
627 || GET_CODE (next
) == MATCH_DUP
628 || GET_CODE (next
) == PARALLEL
)
631 printf (" emit_insn (");
632 gen_exp (next
, GET_CODE (split
), used
);
634 if (GET_CODE (next
) == SET
&& GET_CODE (SET_DEST (next
)) == PC
635 && GET_CODE (SET_SRC (next
)) == LABEL_REF
)
636 printf (" emit_barrier ();");
639 /* Call `get_insns' to make a list of all the
640 insns emitted within this gen_... function. */
642 printf (" _val = get_insns ();\n");
643 printf (" end_sequence ();\n");
644 printf (" return _val;\n}\n\n");
649 /* Write a function, `add_clobbers', that is given a PARALLEL of sufficient
650 size for the insn and an INSN_CODE, and inserts the required CLOBBERs at
651 the end of the vector. */
654 output_add_clobbers (void)
656 struct clobber_pat
*clobber
;
657 struct clobber_ent
*ent
;
660 printf ("\n\nvoid\nadd_clobbers (rtx pattern ATTRIBUTE_UNUSED, int insn_code_number)\n");
662 printf (" switch (insn_code_number)\n");
665 for (clobber
= clobber_list
; clobber
; clobber
= clobber
->next
)
667 for (ent
= clobber
->insns
; ent
; ent
= ent
->next
)
668 printf (" case %d:\n", ent
->code_number
);
670 for (i
= clobber
->first_clobber
; i
< XVECLEN (clobber
->pattern
, 1); i
++)
672 printf (" XVECEXP (pattern, 0, %d) = ", i
);
673 gen_exp (XVECEXP (clobber
->pattern
, 1, i
),
674 GET_CODE (clobber
->pattern
), NULL
);
678 printf (" break;\n\n");
681 printf (" default:\n");
682 printf (" gcc_unreachable ();\n");
687 /* Write a function, `added_clobbers_hard_reg_p' that is given an insn_code
688 number that will have clobbers added (as indicated by `recog') and returns
689 1 if those include a clobber of a hard reg or 0 if all of them just clobber
693 output_added_clobbers_hard_reg_p (void)
695 struct clobber_pat
*clobber
;
696 struct clobber_ent
*ent
;
699 printf ("\n\nint\nadded_clobbers_hard_reg_p (int insn_code_number)\n");
701 printf (" switch (insn_code_number)\n");
704 for (clobber_p
= 0; clobber_p
<= 1; clobber_p
++)
707 for (clobber
= clobber_list
; clobber
; clobber
= clobber
->next
)
708 if (clobber
->has_hard_reg
== clobber_p
)
709 for (ent
= clobber
->insns
; ent
; ent
= ent
->next
)
711 printf (" case %d:\n", ent
->code_number
);
716 printf (" return %d;\n\n", clobber_p
);
719 printf (" default:\n");
720 printf (" gcc_unreachable ();\n");
725 /* Generate code to invoke find_free_register () as needed for the
726 scratch registers used by the peephole2 pattern in SPLIT. */
729 output_peephole2_scratches (rtx split
)
735 for (i
= 0; i
< XVECLEN (split
, 0); i
++)
737 rtx elt
= XVECEXP (split
, 0, i
);
738 if (GET_CODE (elt
) == MATCH_SCRATCH
)
740 int last_insn_nr
= insn_nr
;
741 int cur_insn_nr
= insn_nr
;
743 for (j
= i
+ 1; j
< XVECLEN (split
, 0); j
++)
744 if (GET_CODE (XVECEXP (split
, 0, j
)) == MATCH_DUP
)
746 if (XINT (XVECEXP (split
, 0, j
), 0) == XINT (elt
, 0))
747 last_insn_nr
= cur_insn_nr
;
749 else if (GET_CODE (XVECEXP (split
, 0, j
)) != MATCH_SCRATCH
)
754 printf (" HARD_REG_SET _regs_allocated;\n");
755 printf (" CLEAR_HARD_REG_SET (_regs_allocated);\n");
759 printf (" if ((operands[%d] = peep2_find_free_register (%d, %d, \"%s\", %smode, &_regs_allocated)) == NULL_RTX)\n\
762 insn_nr
, last_insn_nr
,
764 GET_MODE_NAME (GET_MODE (elt
)));
767 else if (GET_CODE (elt
) != MATCH_DUP
)
773 main (int argc
, char **argv
)
777 progname
= "genemit";
779 if (!init_rtx_reader_args (argc
, argv
))
780 return (FATAL_EXIT_CODE
);
782 /* Assign sequential codes to all entries in the machine description
783 in parallel with the tables in insn-output.c. */
785 insn_code_number
= 0;
786 insn_index_number
= 0;
788 printf ("/* Generated automatically by the program `genemit'\n\
789 from the machine description file `md'. */\n\n");
791 printf ("#include \"config.h\"\n");
792 printf ("#include \"system.h\"\n");
793 printf ("#include \"coretypes.h\"\n");
794 printf ("#include \"tm.h\"\n");
795 printf ("#include \"rtl.h\"\n");
796 printf ("#include \"tm_p.h\"\n");
797 printf ("#include \"function.h\"\n");
798 printf ("#include \"expr.h\"\n");
799 printf ("#include \"optabs.h\"\n");
800 printf ("#include \"dfp.h\"\n");
801 printf ("#include \"flags.h\"\n");
802 printf ("#include \"output.h\"\n");
803 printf ("#include \"insn-config.h\"\n");
804 printf ("#include \"hard-reg-set.h\"\n");
805 printf ("#include \"recog.h\"\n");
806 printf ("#include \"resource.h\"\n");
807 printf ("#include \"reload.h\"\n");
808 printf ("#include \"diagnostic-core.h\"\n");
809 printf ("#include \"regs.h\"\n");
810 printf ("#include \"tm-constrs.h\"\n");
811 printf ("#include \"ggc.h\"\n");
812 printf ("#include \"basic-block.h\"\n");
813 printf ("#include \"target.h\"\n\n");
814 printf ("#define FAIL return (end_sequence (), _val)\n");
815 printf ("#define DONE return (_val = get_insns (), end_sequence (), _val)\n\n");
817 /* Read the machine description. */
823 desc
= read_md_rtx (&line_no
, &insn_code_number
);
827 switch (GET_CODE (desc
))
830 gen_insn (desc
, line_no
);
834 printf ("/* %s:%d */\n", read_md_filename
, line_no
);
839 printf ("/* %s:%d */\n", read_md_filename
, line_no
);
843 case DEFINE_PEEPHOLE2
:
844 printf ("/* %s:%d */\n", read_md_filename
, line_no
);
854 /* Write out the routines to add CLOBBERs to a pattern and say whether they
855 clobber a hard reg. */
856 output_add_clobbers ();
857 output_added_clobbers_hard_reg_p ();
860 return (ferror (stdout
) != 0 ? FATAL_EXIT_CODE
: SUCCESS_EXIT_CODE
);