This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RFC: pre-patch to get MD-only patterns out of the compiler proper


This rather large and indigestible patch (which I am not planning to
apply as is) is the result of an experiment I did yesterday.  There
are a large number of RTL codes that are only used in machine
descriptions.  There are tables in the compiler sized by
NUM_RTX_CODE.  Hence it seemed logical that excluding the MD-only
patterns from rtl.def when building the compiler would reduce the size
of the compiler, and possibly speed it up as well.

With this patch, I measure a small but consistent code size reduction
in cc1 and cc1plus: 10KB on amd64-linux, 7KB on powerpc-darwin.  (Note
that this does include some not-directly-related code removal, see
below.)  On amd64-linux I also measured a 30-second improvement in
bootstrap time (2.2%) but this was a highly-parallel build so it may
be noise.  Due to concurrent activity on the Darwin box, I do not have
reliable timings there.

Now, it is not terribly surprising that this change caused a fair
amount of fallout.  The biggest problems were with gengtype, which
includes rtl.h on its own account, but should generate code to GC-walk
only the RTL codes that are used in the compiler proper.  The cleanest
way to address this is to make it not include rtl.h on its own
account; instead it looks directly at rtl.def, and temporarily #undefs
GENERATOR_FILE to get only the relevant entries.  

However, that then meant gengtype wasn't seeing the insn_note
enumeration, which it also needs.  Remembering that we recently had a
case where the enumeration and the name array got out of sync, I
decided to fix that with the big hammer, i.e. creating rtl-notes.def.
It might be more appropriate to have reg-notes.def and insn-notes.def;
every #includer of rtl-notes.def cares about only one of the two
things that it defines, and has to exclude the other.   A pleasant
side effect of this is that gengtype no longer has to use numeric
literals when writing out its switch on NOTE_INSN_* values.

The other 'interesting' problem case is CONST_STRING.  This is *not* a
constant object from the compiler's point of view.  It is supposed
only to be used for attribute strings in the MD.  The patch below
includes several places where I have deleted code to print out
CONST_STRINGs that cannot possibly appear.

However, CONST_STRING has been recycled for dwarf2 variable location
tracking, and I cannot think of a better way to represent that.  My
current feeling is that instead of getting rid of CONST_STRING in the
compiler proper, we should collapse ASM_INPUT into CONST_STRING. They
carry exactly the same content.  ASM_INPUT is used two ways: as
PATTERN(insn) for an asm() statement without operands, which could
perfectly well be handled as ASM_OPERANDS without operands; and as a
way of encapsulating a constraint string inside an ASM_OPERANDS, for
which CONST_STRING will serve nicely.  CONST_STRING should continue to
not be an RTL constant object, and perhaps should be renamed STRING so
that this is clear.

The RTL code NIL should not be used in the compiler proper, nor in
fact should it appear anywhere (its sole legitimate use is as a kluge
in read-rtl.c, which can be done via special-case logic a la
define_constants).  However, I have not touched it, because there are
a large number of places that use it when they mean UNKNOWN.  That can
easily be fixed, but I didn't want to make this even larger and more
indigestible.

The diff to rtl.def is wellnigh unreadable because the file got
rearranged so much.

I'm looking for comments (a) on the approach as a whole; (b) on the
question of whether there should be one or two notes.def files; (c) on
what to do with CONST_STRING.

zw

===================================================================
Index: Makefile.in
--- Makefile.in	17 Aug 2004 16:17:04 -0000	1.1349
+++ Makefile.in	17 Aug 2004 16:34:38 -0000
@@ -673,7 +673,7 @@ HOOKS_H = hooks.h
 LANGHOOKS_DEF_H = langhooks-def.h $(HOOKS_H)
 TARGET_DEF_H = target-def.h $(HOOKS_H)
 MACHMODE_H = machmode.h mode-classes.def insn-modes.h
-RTL_BASE_H = rtl.h rtl.def $(MACHMODE_H) input.h statistics.h
+RTL_BASE_H = rtl.h rtl.def rtl-notes.def $(MACHMODE_H) input.h statistics.h
 RTL_H = $(RTL_BASE_H) genrtl.h
 PARAMS_H = params.h params.def
 TREE_H = tree.h tree.def $(MACHMODE_H) tree-check.h builtins.def \
@@ -2553,8 +2553,8 @@ gengtype$(build_exeext) : gengtype.o gen
 	$(CC_FOR_BUILD) $(BUILD_CFLAGS) $(BUILD_LDFLAGS) -o $@ \
 	 gengtype.o gengtype-lex.o gengtype-yacc.o $(BUILD_LIBS)
 
-gengtype.o : gengtype.c gengtype.h $(BCONFIG_H) $(SYSTEM_H) coretypes.h $(GTM_H) \
-  real.h $(RTL_BASE_H) gtyp-gen.h
+gengtype.o : gengtype.c $(BCONFIG_H) $(SYSTEM_H) coretypes.h $(GTM_H) \
+  gengtype.h gtyp-gen.h rtl.def rtl-notes.def
 
 gengtype-lex.o : gengtype-lex.c gengtype.h gengtype-yacc.h \
   $(BCONFIG_H) coretypes.h $(GTM_H) $(SYSTEM_H) vec.h
===================================================================
Index: final.c
--- final.c	12 Aug 2004 13:56:40 -0000	1.327
+++ final.c	17 Aug 2004 16:34:38 -0000
@@ -1704,7 +1704,7 @@ final_scan_insn (rtx insn, FILE *file, i
 	case NOTE_INSN_FUNCTION_END:
 	case NOTE_INSN_REPEATED_LINE_NUMBER:
 	case NOTE_INSN_EXPECTED_VALUE:
-	case NOTE_DISABLE_SCHED_OF_BLOCK:
+	case NOTE_INSN_DISABLE_SCHED_OF_BLOCK:
 	  break;
 
 	case NOTE_INSN_UNLIKELY_EXECUTED_CODE:
===================================================================
Index: gengtype.c
--- gengtype.c	4 Aug 2004 20:55:07 -0000	1.62
+++ gengtype.c	17 Aug 2004 16:34:38 -0000
@@ -24,7 +24,6 @@ Software Foundation, 59 Temple Place - S
 #include "tm.h"
 #include "gengtype.h"
 #include "gtyp-gen.h"
-#include "rtl.h"
 #undef abort
 
 /* Nonzero iff an error has occurred.  */
@@ -332,9 +331,25 @@ note_variable (const char *s, type_p t, 
   variables = n;
 }
 
-/* We really don't care how long a CONST_DOUBLE is.  */
+/* We don't care how long a CONST_DOUBLE is.  */
 #define CONST_DOUBLE_FORMAT "ww"
-const char * const rtx_format[NUM_RTX_CODE] = {
+/* We don't want to see codes that are only for generator files.  */
+#undef GENERATOR_FILE
+
+enum rtx_code {
+#define DEF_RTL_EXPR(ENUM, NAME, FORMAT, CLASS) ENUM ,
+#include "rtl.def"
+#undef DEF_RTL_EXPR
+  NUM_RTX_CODE
+};
+
+static const char * const rtx_name[NUM_RTX_CODE] = {
+#define DEF_RTL_EXPR(ENUM, NAME, FORMAT, CLASS)   NAME ,
+#include "rtl.def"
+#undef DEF_RTL_EXPR
+};
+
+static const char * const rtx_format[NUM_RTX_CODE] = {
 #define DEF_RTL_EXPR(ENUM, NAME, FORMAT, CLASS)   FORMAT ,
 #include "rtl.def"
 #undef DEF_RTL_EXPR
@@ -342,13 +357,34 @@ const char * const rtx_format[NUM_RTX_CO
 
 static int rtx_next_new[NUM_RTX_CODE];
 
+/* We also need codes and names for insn notes (not register notes).
+   Note that we do *not* bias the note values here.  */
+#define DEF_REG_NOTE(NAME) /* nothing */
+
+#define DEF_INSN_NOTE(NAME) NAME,
+enum insn_note {
+#include "rtl-notes.def"
+  NOTE_INSN_MAX
+};
+#undef DEF_INSN_NOTE
+
+#define DEF_INSN_NOTE(NAME) #NAME,
+static const char *const note_insn_name[NOTE_INSN_MAX] = {
+#include "rtl-notes.def"
+};
+#undef DEF_INSN_NOTE
+#undef DEF_REG_NOTE
+
+#undef CONST_DOUBLE_FORMAT
+#define GENERATOR_FILE
+
 /* Generate the contents of the rtx_next array.  This really doesn't belong
    in gengtype at all, but it's needed for adjust_field_rtx_def.  */
 
 static void
 gen_rtx_next (void)
 {
-  int i;
+  size_t i;
   for (i = 0; i < NUM_RTX_CODE; i++)
     {
       int k;
@@ -397,12 +433,6 @@ adjust_field_rtx_def (type_p t, options_
   type_p rtx_tp, rtvec_tp, tree_tp, mem_attrs_tp, note_union_tp, scalar_tp;
   type_p bitmap_tp, basic_block_tp, reg_attrs_tp;
 
-  static const char * const rtx_name[NUM_RTX_CODE] = {
-#define DEF_RTL_EXPR(ENUM, NAME, FORMAT, CLASS)   NAME ,
-#include "rtl.def"
-#undef DEF_RTL_EXPR
-  };
-
   if (t->kind != TYPE_UNION)
     {
       error_at_line (&lexer_line,
@@ -428,7 +458,7 @@ adjust_field_rtx_def (type_p t, options_
     pair_p note_flds = NULL;
     int c;
 
-    for (c = NOTE_INSN_BIAS; c <= NOTE_INSN_MAX; c++)
+    for (c = 0; c <= NOTE_INSN_MAX; c++)
       {
 	pair_p old_note_flds = note_flds;
 
@@ -438,7 +468,7 @@ adjust_field_rtx_def (type_p t, options_
 	note_flds->opt = XNEW (struct options);
 	note_flds->opt->next = nodot;
 	note_flds->opt->name = "tag";
-	note_flds->opt->info = xasprintf ("%d", c);
+	note_flds->opt->info = note_insn_name[c];
 	note_flds->next = old_note_flds;
 
 	switch (c)
===================================================================
Index: modulo-sched.c
--- modulo-sched.c	8 Aug 2004 21:35:53 -0000	1.9
+++ modulo-sched.c	17 Aug 2004 16:34:38 -0000
@@ -1112,7 +1112,7 @@ sms_schedule (FILE *dump_file)
           /* Mark this loop as software pipelined so the later
 	     scheduling passes doesn't touch it.  */
 	  if (! flag_resched_modulo_sched)
-	    emit_note_before (NOTE_DISABLE_SCHED_OF_BLOCK,
+	    emit_note_before (NOTE_INSN_DISABLE_SCHED_OF_BLOCK,
 	     		      g->closing_branch->insn);
 
 	  generate_reg_moves (ps);
===================================================================
Index: rtl-notes.def
--- rtl-notes.def	1 Jan 1970 00:00:00 -0000
+++ rtl-notes.def	17 Aug 2004 16:34:38 -0000
@@ -0,0 +1,247 @@
+/* Insn and register note definitions. 
+   Copyright (C) 2004 Free Software Foundation, Inc.
+
+This file is part of GCC.
+
+GCC is free software; you can redistribute it and/or modify it under
+the terms of the GNU General Public License as published by the Free
+Software Foundation; either version 2, or (at your option) any later
+version.
+
+GCC is distributed in the hope that it will be useful, but WITHOUT ANY
+WARRANTY; without even the implied warranty of MERCHANTABILITY or
+FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+for more details.
+
+You should have received a copy of the GNU General Public License
+along with GCC; see the file COPYING.  If not, write to the Free
+Software Foundation, 59 Temple Place - Suite 330, Boston, MA
+02111-1307, USA.  */
+
+/* Shorthand.  */
+#define REG_NOTE(NAME) DEF_REG_NOTE (REG_##NAME)
+#define INSN_NOTE(NAME) DEF_INSN_NOTE (NOTE_INSN_##NAME)
+
+/* Register notes.  */
+
+/* The value in REG dies in this insn (i.e., it is not needed past
+   this insn).  If REG is set in this insn, the REG_DEAD note may,
+   but need not, be omitted.  */
+REG_NOTE (DEAD)
+
+/* The REG is autoincremented or autodecremented.  */
+REG_NOTE (INC)
+
+/* Describes the insn as a whole; it says that the insn sets a register
+   to a constant value or to be equivalent to a memory address.  If the
+   register is spilled to the stack then the constant value should be
+   substituted for it.  The contents of the REG_EQUIV is the constant
+   value or memory address, which may be different from the source of
+   the SET although it has the same value.  A REG_EQUIV note may also
+   appear on an insn which copies a register parameter to a pseudo-register,
+   if there is a memory address which could be used to hold that
+   pseudo-register throughout the function.  */
+REG_NOTE (EQUIV)
+
+/* Like REG_EQUIV except that the destination is only momentarily equal
+   to the specified rtx.  Therefore, it cannot be used for substitution;
+   but it can be used for cse.  */
+REG_NOTE (EQUAL)
+
+/* This insn copies the return-value of a library call out of the hard reg
+   for return values.  This note is actually an INSN_LIST and it points to
+   the first insn involved in setting up arguments for the call.  flow.c
+   uses this to delete the entire library call when its result is dead.  */
+REG_NOTE (RETVAL)
+
+/* The inverse of REG_RETVAL: it goes on the first insn of the library call
+   and points at the one that has the REG_RETVAL.  This note is also an
+   INSN_LIST.  */
+REG_NOTE (LIBCALL)
+
+/* The register is always nonnegative during the containing loop.  This is
+   used in branches so that decrement and branch instructions terminating
+   on zero can be matched.  There must be an insn pattern in the md file
+   named `decrement_and_branch_until_zero' or else this will never be added
+   to any instructions.  */
+REG_NOTE (NONNEG)
+
+/* There is no conflict *after this insn* between the register in the note
+   and the destination of this insn.  */
+REG_NOTE (NO_CONFLICT)
+
+/* Identifies a register set in this insn and never used.  */
+REG_NOTE (UNUSED)
+
+/* REG_CC_SETTER and REG_CC_USER link a pair of insns that set and use CC0,
+   respectively.  Normally, these are required to be consecutive insns, but
+   we permit putting a cc0-setting insn in the delay slot of a branch as
+   long as only one copy of the insn exists.  In that case, these notes
+   point from one to the other to allow code generation to determine what
+   any require information and to properly update CC_STATUS.  These notes
+   are INSN_LISTs.  */
+REG_NOTE (CC_SETTER)
+REG_NOTE (CC_USER)
+
+/* Points to a CODE_LABEL.  Used by non-JUMP_INSNs to say that the
+   CODE_LABEL contained in the REG_LABEL note is used by the insn.
+   This note is an INSN_LIST.  */
+REG_NOTE (LABEL)
+
+/* REG_DEP_ANTI and REG_DEP_OUTPUT are used in LOG_LINKS to represent
+   write-after-read and write-after-write dependencies respectively.
+   Data dependencies, which are the only type of LOG_LINK created by
+   flow, are represented by a 0 reg note kind.  */
+REG_NOTE (DEP_ANTI)
+REG_NOTE (DEP_OUTPUT)
+
+/* REG_BR_PROB is attached to JUMP_INSNs and CALL_INSNs.
+   It has an integer value.  For jumps, it is the probability that this is a
+   taken branch.  For calls, it is the probability that this call won't
+   return.  */
+REG_NOTE (BR_PROB)
+
+/* REG_VALUE_PROFILE is attached when the profile is read in to an insn
+   before that the code to profile the value is inserted.  It contains
+   the results of profiling.  */
+REG_NOTE (VALUE_PROFILE)
+
+/* Attached to a call insn; indicates that the call is malloc-like and
+   that the pointer returned cannot alias anything else.  */
+REG_NOTE (NOALIAS)
+
+/* Used to optimize rtl generated by dynamic stack allocations for targets
+   where SETJMP_VIA_SAVE_AREA is true.  */
+REG_NOTE (SAVE_AREA)
+
+/* REG_BR_PRED is attached to JUMP_INSNs and CALL_INSNSs.  It contains
+   CONCAT of two integer value.  First specifies the branch predictor
+   that added the note, second specifies the predicted hitrate of branch
+   in the same format as REG_BR_PROB note uses.  */
+REG_NOTE (BR_PRED)
+
+/* Attached to insns that are RTX_FRAME_RELATED_P, but are too complex
+   for DWARF to interpret what they imply.  The attached rtx is used
+   instead of intuition.  */
+REG_NOTE (FRAME_RELATED_EXPR)
+
+/* Indicates that REG holds the exception context for the function.
+   This context is shared by inline functions, so the code to acquire
+   the real exception context is delayed until after inlining.  */
+REG_NOTE (EH_CONTEXT)
+
+/* Indicates what exception region an INSN belongs in.  This is used to
+   indicate what region to which a call may throw.  REGION 0 indicates
+   that a call cannot throw at all.  REGION -1 indicates that it cannot
+   throw, nor will it execute a non-local goto.  */
+REG_NOTE (EH_REGION)
+
+/* Used by haifa-sched to save NOTE_INSN notes across scheduling.  */
+REG_NOTE (SAVE_NOTE)
+
+/* Indicates that this insn (which is part of the prologue) computes
+   a value which might not be used later, and if so it's OK to delete
+   the insn.  Normally, deleting any insn in the prologue is an error.
+   At present the parameter is unused and set to (const_int 0).  */
+REG_NOTE (MAYBE_DEAD)
+
+/* Indicates that a call does not return.  */
+REG_NOTE (NORETURN)
+
+/* Indicates that an indirect jump is a non-local goto instead of a
+   computed goto.  */
+REG_NOTE (NON_LOCAL_GOTO)
+
+/* Indicates that a jump crosses between hot and cold sections
+   in a (partitioned) assembly or .o file, and therefore should not be
+   reduced to a simpler jump by optimizations.  */
+REG_NOTE (CROSSING_JUMP)
+
+/* This kind of note is generated at each to `setjmp',
+   and similar functions that can return twice.  */
+REG_NOTE (SETJMP)
+
+/* Indicate calls that always returns.  */
+REG_NOTE (ALWAYS_RETURN)
+
+/* Codes that appear in the NOTE_LINE_NUMBER field
+   for kinds of notes that are not line numbers.
+
+   Notice that we do not try to use zero here for any of
+   the special note codes because sometimes the source line
+   actually can be zero!  This happens (for example) when we
+   are generating code for the per-translation-unit constructor
+   and destructor routines for some C++ translation unit.
+
+   If you should change any of the following values, or if you
+   should add a new value here, don't forget to change the
+   note_insn_name array in rtl.c.  */
+
+/* This note is used to get rid of an insn
+   when it isn't safe to patch the insn out of the chain.  */
+INSN_NOTE (DELETED)
+
+/* These are used to mark the beginning and end of a lexical block.
+   See NOTE_BLOCK and reorder_blocks.  */
+INSN_NOTE (BLOCK_BEG)
+INSN_NOTE (BLOCK_END)
+
+/* These mark the extremes of a loop.  */
+INSN_NOTE (LOOP_BEG)
+INSN_NOTE (LOOP_END)
+
+/* Generated at the place in a loop that `continue' jumps to.  */
+INSN_NOTE (LOOP_CONT)
+/* Generated at the start of a duplicated exit test.  */
+INSN_NOTE (LOOP_VTOP)
+
+/* Mark that a block shouldn't be scheduled.  This is currently
+   used in modulo scheduling. Modulo scheduling  adds this note
+   to the blocks of the modulo-scheduled loops to disable scheduling
+   them in the later traditional scheduling passes.  */
+INSN_NOTE (DISABLE_SCHED_OF_BLOCK)
+
+/* This kind of note is generated at the end of the function body,
+   just before the return insn or return label.  In an optimizing
+   compilation it is deleted by the first jump optimization, after
+   enabling that optimizer to determine whether control can fall
+   off the end of the function body without a return statement.  */
+INSN_NOTE (FUNCTION_END)
+
+/* This marks the point immediately after the last prologue insn.  */
+INSN_NOTE (PROLOGUE_END)
+
+/* This marks the point immediately prior to the first epilogue insn.  */
+INSN_NOTE (EPILOGUE_BEG)
+
+/* Generated in place of user-declared labels when they are deleted.  */
+INSN_NOTE (DELETED_LABEL)
+
+/* This note indicates the start of the real body of the function,
+   i.e. the point just after all of the parms have been moved into
+   their homes, etc.  */
+INSN_NOTE (FUNCTION_BEG)
+
+/* These note where exception handling regions begin and end.
+   Uses NOTE_EH_HANDLER to identify the region in question.  */
+INSN_NOTE (EH_REGION_BEG)
+INSN_NOTE (EH_REGION_END)
+
+/* Generated whenever a duplicate line number note is output.  For example,
+   one is output after the end of an inline function, in order to prevent
+   the line containing the inline call from being counted twice in gcov.  */
+INSN_NOTE (REPEATED_LINE_NUMBER)
+
+/* Record the struct for the following basic block.  Uses NOTE_BASIC_BLOCK.  */
+INSN_NOTE (BASIC_BLOCK)
+
+/* Record the expected value of a register at a location.  Uses
+   NOTE_EXPECTED_VALUE; stored as (eq (reg) (const_int)).  */
+INSN_NOTE (EXPECTED_VALUE)
+
+/* Record that the current basic block is unlikely to be executed and
+   should be moved to the UNLIKELY_EXECUTED_TEXT_SECTION.  */
+INSN_NOTE (UNLIKELY_EXECUTED_CODE)
+
+/* The location of a variable.  */
+INSN_NOTE (VAR_LOCATION)
===================================================================
Index: rtl.c
--- rtl.c	16 Aug 2004 23:05:03 -0000	1.146
+++ rtl.c	17 Aug 2004 16:34:38 -0000
@@ -116,36 +116,28 @@ const unsigned char rtx_size[NUM_RTX_COD
 };
 
 /* Names for kinds of NOTEs and REG_NOTEs.  */
+extern char NOTE_INSN_MAX_isnt_negative_adjust_NOTE_INSN_BIAS
+[NOTE_INSN_MAX < 0 ? 1 : -1];
 
+#define DEF_INSN_NOTE(NAME) #NAME
+#define DEF_REG_NOTE(NAME) /* nothing */
 const char * const note_insn_name[NOTE_INSN_MAX - NOTE_INSN_BIAS] =
 {
-  "", "NOTE_INSN_DELETED",
-  "NOTE_INSN_BLOCK_BEG", "NOTE_INSN_BLOCK_END",
-  "NOTE_INSN_LOOP_BEG", "NOTE_INSN_LOOP_END",
-  "NOTE_INSN_LOOP_CONT", "NOTE_INSN_LOOP_VTOP",
-  "NOTE_DISABLE_SCHED_OF_BLOCK",
-  "NOTE_INSN_FUNCTION_END",
-  "NOTE_INSN_PROLOGUE_END", "NOTE_INSN_EPILOGUE_BEG",
-  "NOTE_INSN_DELETED_LABEL", "NOTE_INSN_FUNCTION_BEG",
-  "NOTE_INSN_EH_REGION_BEG", "NOTE_INSN_EH_REGION_END",
-  "NOTE_INSN_REPEATED_LINE_NUMBER",
-  "NOTE_INSN_BASIC_BLOCK", "NOTE_INSN_EXPECTED_VALUE",
-  "NOTE_INSN_UNLIKELY_EXECUTED_CODE",
-  "NOTE_INSN_VAR_LOCATION"
+  "",
+#include "rtl-notes.def"
 };
+#undef DEF_INSN_NOTE
+#undef DEF_REG_NOTE
 
+#define DEF_INSN_NOTE(NAME) /* nothing */
+#define DEF_REG_NOTE(NAME) #NAME
 const char * const reg_note_name[] =
 {
-  "", "REG_DEAD", "REG_INC", "REG_EQUIV", "REG_EQUAL",
-  "REG_RETVAL", "REG_LIBCALL", "REG_NONNEG",
-  "REG_NO_CONFLICT", "REG_UNUSED", "REG_CC_SETTER", "REG_CC_USER",
-  "REG_LABEL", "REG_DEP_ANTI", "REG_DEP_OUTPUT", "REG_BR_PROB",
-  "REG_VALUE_PROFILE", "REG_NOALIAS", "REG_SAVE_AREA", "REG_BR_PRED",
-  "REG_FRAME_RELATED_EXPR", "REG_EH_CONTEXT", "REG_EH_REGION",
-  "REG_SAVE_NOTE", "REG_MAYBE_DEAD", "REG_NORETURN",
-  "REG_NON_LOCAL_GOTO", "REG_CROSSING_JUMP", "REG_SETJMP", "REG_ALWAYS_RETURN"
+  "",
+#include "rtl-notes.def"
 };
-
+#undef DEF_INSN_NOTE
+#undef DEF_REG_NOTE
 
 #ifdef GATHER_STATISTICS
 static int rtx_alloc_counts[(int) LAST_AND_UNUSED_RTX_CODE];
===================================================================
Index: rtl.h
--- rtl.h	17 Aug 2004 07:27:13 -0000	1.501
+++ rtl.h	17 Aug 2004 16:34:38 -0000
@@ -721,153 +721,20 @@ do {				\
    chain pointer and the first operand is the REG being described.
    The mode field of the EXPR_LIST contains not a real machine mode
    but a value from enum reg_note.  */
-
 #define REG_NOTES(INSN)	XEXP(INSN, 8)
 
-/* Don't forget to change reg_note_name in rtl.c.  */
-enum reg_note
-{
-  /* The value in REG dies in this insn (i.e., it is not needed past
-     this insn).  If REG is set in this insn, the REG_DEAD note may,
-     but need not, be omitted.  */
-  REG_DEAD = 1,
-
-  /* The REG is autoincremented or autodecremented.  */
-  REG_INC,
-
-  /* Describes the insn as a whole; it says that the insn sets a register
-     to a constant value or to be equivalent to a memory address.  If the
-     register is spilled to the stack then the constant value should be
-     substituted for it.  The contents of the REG_EQUIV is the constant
-     value or memory address, which may be different from the source of
-     the SET although it has the same value.  A REG_EQUIV note may also
-     appear on an insn which copies a register parameter to a pseudo-register,
-     if there is a memory address which could be used to hold that
-     pseudo-register throughout the function.  */
-  REG_EQUIV,
-
-  /* Like REG_EQUIV except that the destination is only momentarily equal
-     to the specified rtx.  Therefore, it cannot be used for substitution;
-     but it can be used for cse.  */
-  REG_EQUAL,
-
-  /* This insn copies the return-value of a library call out of the hard reg
-     for return values.  This note is actually an INSN_LIST and it points to
-     the first insn involved in setting up arguments for the call.  flow.c
-     uses this to delete the entire library call when its result is dead.  */
-  REG_RETVAL,
-
-  /* The inverse of REG_RETVAL: it goes on the first insn of the library call
-     and points at the one that has the REG_RETVAL.  This note is also an
-     INSN_LIST.  */
-  REG_LIBCALL,
-
-  /* The register is always nonnegative during the containing loop.  This is
-     used in branches so that decrement and branch instructions terminating
-     on zero can be matched.  There must be an insn pattern in the md file
-     named `decrement_and_branch_until_zero' or else this will never be added
-     to any instructions.  */
-  REG_NONNEG,
-
-  /* There is no conflict *after this insn* between the register in the note
-     and the destination of this insn.  */
-  REG_NO_CONFLICT,
-
-  /* Identifies a register set in this insn and never used.  */
-  REG_UNUSED,
-
-  /* REG_CC_SETTER and REG_CC_USER link a pair of insns that set and use CC0,
-     respectively.  Normally, these are required to be consecutive insns, but
-     we permit putting a cc0-setting insn in the delay slot of a branch as
-     long as only one copy of the insn exists.  In that case, these notes
-     point from one to the other to allow code generation to determine what
-     any require information and to properly update CC_STATUS.  These notes
-     are INSN_LISTs.  */
-  REG_CC_SETTER, REG_CC_USER,
-
-  /* Points to a CODE_LABEL.  Used by non-JUMP_INSNs to say that the
-     CODE_LABEL contained in the REG_LABEL note is used by the insn.
-     This note is an INSN_LIST.  */
-  REG_LABEL,
-
-  /* REG_DEP_ANTI and REG_DEP_OUTPUT are used in LOG_LINKS to represent
-     write-after-read and write-after-write dependencies respectively.
-     Data dependencies, which are the only type of LOG_LINK created by
-     flow, are represented by a 0 reg note kind.  */
-  REG_DEP_ANTI, REG_DEP_OUTPUT,
-
-  /* REG_BR_PROB is attached to JUMP_INSNs and CALL_INSNs.
-     It has an integer value.  For jumps, it is the probability that this is a
-     taken branch.  For calls, it is the probability that this call won't
-     return.  */
-  REG_BR_PROB,
-
-  /* REG_VALUE_PROFILE is attached when the profile is read in to an insn
-     before that the code to profile the value is inserted.  It contains
-     the results of profiling.  */
-  REG_VALUE_PROFILE,
-
-  /* Attached to a call insn; indicates that the call is malloc-like and
-     that the pointer returned cannot alias anything else.  */
-  REG_NOALIAS,
-
-  /* Used to optimize rtl generated by dynamic stack allocations for targets
-     where SETJMP_VIA_SAVE_AREA is true.  */
-  REG_SAVE_AREA,
-
-  /* REG_BR_PRED is attached to JUMP_INSNs and CALL_INSNSs.  It contains
-     CONCAT of two integer value.  First specifies the branch predictor
-     that added the note, second specifies the predicted hitrate of branch
-     in the same format as REG_BR_PROB note uses.  */
-  REG_BR_PRED,
-
-  /* Attached to insns that are RTX_FRAME_RELATED_P, but are too complex
-     for DWARF to interpret what they imply.  The attached rtx is used
-     instead of intuition.  */
-  REG_FRAME_RELATED_EXPR,
-
-  /* Indicates that REG holds the exception context for the function.
-     This context is shared by inline functions, so the code to acquire
-     the real exception context is delayed until after inlining.  */
-  REG_EH_CONTEXT,
-
-  /* Indicates what exception region an INSN belongs in.  This is used to
-     indicate what region to which a call may throw.  REGION 0 indicates
-     that a call cannot throw at all.  REGION -1 indicates that it cannot
-     throw, nor will it execute a non-local goto.  */
-  REG_EH_REGION,
-
-  /* Used by haifa-sched to save NOTE_INSN notes across scheduling.  */
-  REG_SAVE_NOTE,
-
-  /* Indicates that this insn (which is part of the prologue) computes
-     a value which might not be used later, and if so it's OK to delete
-     the insn.  Normally, deleting any insn in the prologue is an error.
-     At present the parameter is unused and set to (const_int 0).  */
-  REG_MAYBE_DEAD,
-
-  /* Indicates that a call does not return.  */
-  REG_NORETURN,
-
-  /* Indicates that an indirect jump is a non-local goto instead of a
-     computed goto.  */
-  REG_NON_LOCAL_GOTO,
-
-  /* Indicates that a jump crosses between hot and cold sections
-     in a (partitioned) assembly or .o file, and therefore should not be
-     reduced to a simpler jump by optimizations.  */
-  REG_CROSSING_JUMP,
-
-  /* This kind of note is generated at each to `setjmp',
-     and similar functions that can return twice.  */
-  REG_SETJMP,
+#define DEF_INSN_NOTE(NAME) /* nothing */
+#define DEF_REG_NOTE(NAME) NAME,
+enum reg_note {
+  /* Bias.  */
+  REG_UNKNOWN_NOTE = 0,
+#include "rtl-notes.def"
 
-  /* Indicate calls that always returns.  */
-  REG_ALWAYS_RETURN
+  /* The base value for branch probability notes.  */
+  REG_BR_PROB_BASE = 10000
 };
-
-/* The base value for branch probability notes.  */
-#define REG_BR_PROB_BASE  10000
+#undef DEF_INSN_NOTE
+#undef DEF_REG_NOTE
 
 /* Define macros to extract and insert the reg-note kind in an EXPR_LIST.  */
 #define REG_NOTE_KIND(LINK) ((enum reg_note) GET_MODE (LINK))
@@ -946,102 +813,24 @@ extern const char * const reg_note_name[
 						 0, VAR_LOCATION))
 #define NOTE_VAR_LOCATION_LOC(INSN)	(XCEXP (XCEXP (INSN, 4, NOTE),  \
 						1, VAR_LOCATION))
-  
-/* Codes that appear in the NOTE_LINE_NUMBER field
-   for kinds of notes that are not line numbers.
-
-   Notice that we do not try to use zero here for any of
-   the special note codes because sometimes the source line
-   actually can be zero!  This happens (for example) when we
-   are generating code for the per-translation-unit constructor
-   and destructor routines for some C++ translation unit.
-
-   If you should change any of the following values, or if you
-   should add a new value here, don't forget to change the
-   note_insn_name array in rtl.c.  */
 
-enum insn_note
-{
+/* Insn notes that are not line numbers have values from this
+   enumeration.  */
+#define DEF_INSN_NOTE(NAME) NAME,
+#define DEF_REG_NOTE(NAME) /* nothing */
+enum insn_note {
   /* Keep all of these numbers negative.  Adjust as needed.  */
   NOTE_INSN_BIAS = -100,
-
-  /* This note is used to get rid of an insn
-     when it isn't safe to patch the insn out of the chain.  */
-  NOTE_INSN_DELETED,
-
-  /* These are used to mark the beginning and end of a lexical block.
-     See NOTE_BLOCK and reorder_blocks.  */
-  NOTE_INSN_BLOCK_BEG,
-  NOTE_INSN_BLOCK_END,
-
-  /* These mark the extremes of a loop.  */
-  NOTE_INSN_LOOP_BEG,
-  NOTE_INSN_LOOP_END,
-
-  /* Generated at the place in a loop that `continue' jumps to.  */
-  NOTE_INSN_LOOP_CONT,
-  /* Generated at the start of a duplicated exit test.  */
-  NOTE_INSN_LOOP_VTOP,
-
-  /* Mark that a block shouldn't be scheduled.  This is currently
-     used in modulo scheduling. Modulo scheduling  adds this note
-     to the blocks of the modulo-scheduled loops to disable scheduling
-     them in the later traditional scheduling passes.  */
-  NOTE_DISABLE_SCHED_OF_BLOCK,
-
-  /* This kind of note is generated at the end of the function body,
-     just before the return insn or return label.  In an optimizing
-     compilation it is deleted by the first jump optimization, after
-     enabling that optimizer to determine whether control can fall
-     off the end of the function body without a return statement.  */
-  NOTE_INSN_FUNCTION_END,
-
-  /* This marks the point immediately after the last prologue insn.  */
-  NOTE_INSN_PROLOGUE_END,
-
-  /* This marks the point immediately prior to the first epilogue insn.  */
-  NOTE_INSN_EPILOGUE_BEG,
-
-  /* Generated in place of user-declared labels when they are deleted.  */
-  NOTE_INSN_DELETED_LABEL,
-
-  /* This note indicates the start of the real body of the function,
-     i.e. the point just after all of the parms have been moved into
-     their homes, etc.  */
-  NOTE_INSN_FUNCTION_BEG,
-
-  /* These note where exception handling regions begin and end.
-     Uses NOTE_EH_HANDLER to identify the region in question.  */
-  NOTE_INSN_EH_REGION_BEG,
-  NOTE_INSN_EH_REGION_END,
-
-  /* Generated whenever a duplicate line number note is output.  For example,
-     one is output after the end of an inline function, in order to prevent
-     the line containing the inline call from being counted twice in gcov.  */
-  NOTE_INSN_REPEATED_LINE_NUMBER,
-
-  /* Record the struct for the following basic block.  Uses NOTE_BASIC_BLOCK.  */
-  NOTE_INSN_BASIC_BLOCK,
-
-  /* Record the expected value of a register at a location.  Uses
-     NOTE_EXPECTED_VALUE; stored as (eq (reg) (const_int)).  */
-  NOTE_INSN_EXPECTED_VALUE,
-
-  /* Record that the current basic block is unlikely to be executed and
-     should be moved to the UNLIKELY_EXECUTED_TEXT_SECTION.  */
-  NOTE_INSN_UNLIKELY_EXECUTED_CODE,
-
-  /* The location of a variable.  */
-  NOTE_INSN_VAR_LOCATION,
-
+#include "rtl-notes.def"
   NOTE_INSN_MAX
 };
+#undef DEF_INSN_NOTE
+#undef DEF_REG_NOTE
 
 /* Names for NOTE insn's other than line numbers.  */
-
 extern const char * const note_insn_name[NOTE_INSN_MAX - NOTE_INSN_BIAS];
 #define GET_NOTE_INSN_NAME(NOTE_CODE) \
-  (note_insn_name[(NOTE_CODE) - (int) NOTE_INSN_BIAS])
+  (note_insn_name[(NOTE_CODE) - NOTE_INSN_BIAS])
 
 /* The name of a label, in case it corresponds to an explicit label
    in the input source code.  */
===================================================================
Index: sched-rgn.c
--- sched-rgn.c	8 Aug 2004 21:35:53 -0000	1.78
+++ sched-rgn.c	17 Aug 2004 16:34:38 -0000
@@ -2352,7 +2352,7 @@ sched_is_disabled_for_current_region_p (
            insn = PREV_INSN (insn))
       	if (GET_CODE (insn) == NOTE
 	    && (NOTE_LINE_NUMBER (insn)
-	        == NOTE_DISABLE_SCHED_OF_BLOCK))
+	        == NOTE_INSN_DISABLE_SCHED_OF_BLOCK))
           {
               disable_sched = true;
 	      break;
===================================================================
Index: ra-debug.c
--- ra-debug.c	9 Jul 2004 03:29:34 -0000	1.22
+++ ra-debug.c	17 Aug 2004 16:34:38 -0000
@@ -237,7 +237,6 @@ ra_print_rtx_object (FILE *file, rtx x)
 		}
 	      break;
 	    }
-      case CONST_STRING: fprintf (file, "\"%s\"", XSTR (x, 0)); break;
       case CONST: fputs ("const(", file);
 		  ra_print_rtx (file, XEXP (x, 0), 0);
 		  fputs (")", file);
===================================================================
Index: sched-vis.c
--- sched-vis.c	20 Jul 2004 07:26:53 -0000	1.32
+++ sched-vis.c	17 Aug 2004 16:34:38 -0000
@@ -438,11 +438,6 @@ print_value (char *buf, rtx x, int verbo
 	sprintf (t, "<0x%lx,0x%lx>", (long) XWINT (x, 2), (long) XWINT (x, 3));
       cur = safe_concat (buf, cur, t);
       break;
-    case CONST_STRING:
-      cur = safe_concat (buf, cur, "\"");
-      cur = safe_concat (buf, cur, XSTR (x, 0));
-      cur = safe_concat (buf, cur, "\"");
-      break;
     case SYMBOL_REF:
       cur = safe_concat (buf, cur, "`");
       cur = safe_concat (buf, cur, XSTR (x, 0));
===================================================================
Index: config/arm/arm.c
--- config/arm/arm.c	15 Aug 2004 15:45:08 -0000	1.390
+++ config/arm/arm.c	17 Aug 2004 16:34:38 -0000
@@ -6818,10 +6818,6 @@ arm_print_value (FILE *f, rtx x)
       }
       return;
 
-    case CONST_STRING:
-      fprintf (f, "\"%s\"", XSTR (x, 0));
-      return;
-
     case SYMBOL_REF:
       fprintf (f, "`%s'", XSTR (x, 0));
       return;
===================================================================
Index: rtl.def
*** rtl.def	12 Aug 2004 07:48:54 -0000	1.90
--- rtl.def	17 Aug 2004 16:38:15 -0000
***************
*** 88,98 ****
  
  DEF_RTL_EXPR(NIL, "nil", "*", RTX_EXTRA)
  
- 
- /* include a file */
- 
- DEF_RTL_EXPR(INCLUDE, "include", "s", RTX_EXTRA)
- 
  /* ---------------------------------------------------------------------
     Expressions used in constructing lists.
     --------------------------------------------------------------------- */
--- 88,93 ----
***************
*** 105,329 ****
  DEF_RTL_EXPR(INSN_LIST, "insn_list", "ue", RTX_EXTRA)
  
  /* ----------------------------------------------------------------------
!    Expression types for machine descriptions.
!    These do not appear in actual rtl code in the compiler.
!    ---------------------------------------------------------------------- */
! 
! /* Appears only in machine descriptions.
!    Means use the function named by the second arg (the string)
!    as a predicate; if matched, store the structure that was matched
!    in the operand table at index specified by the first arg (the integer).
!    If the second arg is the null string, the structure is just stored.
! 
!    A third string argument indicates to the register allocator restrictions
!    on where the operand can be allocated.
! 
!    If the target needs no restriction on any instruction this field should
!    be the null string.
! 
!    The string is prepended by:
!    '=' to indicate the operand is only written to.
!    '+' to indicate the operand is both read and written to.
! 
!    Each character in the string represents an allocable class for an operand.
!    'g' indicates the operand can be any valid class.
!    'i' indicates the operand can be immediate (in the instruction) data.
!    'r' indicates the operand can be in a register.
!    'm' indicates the operand can be in memory.
!    'o' a subset of the 'm' class.  Those memory addressing modes that
!        can be offset at compile time (have a constant added to them).
! 
!    Other characters indicate target dependent operand classes and
!    are described in each target's machine description.
! 
!    For instructions with more than one operand, sets of classes can be
!    separated by a comma to indicate the appropriate multi-operand constraints.
!    There must be a 1 to 1 correspondence between these sets of classes in
!    all operands for an instruction.
!    */
! DEF_RTL_EXPR(MATCH_OPERAND, "match_operand", "iss", RTX_MATCH)
! 
! /* Appears only in machine descriptions.
!    Means match a SCRATCH or a register.  When used to generate rtl, a
!    SCRATCH is generated.  As for MATCH_OPERAND, the mode specifies
!    the desired mode and the first argument is the operand number.
!    The second argument is the constraint.  */
! DEF_RTL_EXPR(MATCH_SCRATCH, "match_scratch", "is", RTX_MATCH)
! 
! /* Appears only in machine descriptions.
!    Means match only something equal to what is stored in the operand table
!    at the index specified by the argument.  */
! DEF_RTL_EXPR(MATCH_DUP, "match_dup", "i", RTX_MATCH)
  
! /* Appears only in machine descriptions.
!    Means apply a predicate, AND match recursively the operands of the rtx.
!    Operand 0 is the operand-number, as in match_operand.
!    Operand 1 is a predicate to apply (as a string, a function name).
!    Operand 2 is a vector of expressions, each of which must match
!    one subexpression of the rtx this construct is matching.  */
! DEF_RTL_EXPR(MATCH_OPERATOR, "match_operator", "isE", RTX_MATCH)
  
! /* Appears only in machine descriptions.
!    Means to match a PARALLEL of arbitrary length.  The predicate is applied
!    to the PARALLEL and the initial expressions in the PARALLEL are matched.
!    Operand 0 is the operand-number, as in match_operand.
!    Operand 1 is a predicate to apply to the PARALLEL.
!    Operand 2 is a vector of expressions, each of which must match the 
!    corresponding element in the PARALLEL.  */
! DEF_RTL_EXPR(MATCH_PARALLEL, "match_parallel", "isE", RTX_MATCH)
  
! /* Appears only in machine descriptions.
!    Means match only something equal to what is stored in the operand table
!    at the index specified by the argument.  For MATCH_OPERATOR.  */
! DEF_RTL_EXPR(MATCH_OP_DUP, "match_op_dup", "iE", RTX_MATCH)
  
! /* Appears only in machine descriptions.
!    Means match only something equal to what is stored in the operand table
!    at the index specified by the argument.  For MATCH_PARALLEL.  */
! DEF_RTL_EXPR(MATCH_PAR_DUP, "match_par_dup", "iE", RTX_MATCH)
  
! /* Appears only in define_predicate/define_special predicate
!    expressions in a machine description.  Evaluates true only if the
!    operand has an RTX code from the set given by the argument (a
!    comma-separated list).  */
! DEF_RTL_EXPR(MATCH_CODE, "match_code", "s", RTX_MATCH)
  
! /* Appears only in define_predicate/define_special_predicate expressions
!    in a machine description.  The argument is a C expression to be injected
!    at this point in the predicate formula.  */
! DEF_RTL_EXPR(MATCH_TEST, "match_test", "s", RTX_MATCH)
  
! /* Appears only in machine descriptions.
!    Defines the pattern for one kind of instruction.
     Operand:
!    0: names this instruction.
!       If the name is the null string, the instruction is in the
!       machine description just to be recognized, and will never be emitted by
!       the tree to rtl expander.
!    1: is the pattern.
!    2: is a string which is a C expression
!       giving an additional condition for recognizing this pattern.
!       A null string means no extra condition.
!    3: is the action to execute if this pattern is matched.
!       If this assembler code template starts with a * then it is a fragment of
!       C code to run to decide on a template to use.  Otherwise, it is the
!       template to use.
!    4: optionally, a vector of attributes for this insn.
!      */
! DEF_RTL_EXPR(DEFINE_INSN, "define_insn", "sEsTV", RTX_EXTRA)
! 
! /* Definition of a peephole optimization.
!    1st operand: vector of insn patterns to match
!    2nd operand: C expression that must be true
!    3rd operand: template or C code to produce assembler output.
!    4: optionally, a vector of attributes for this insn.
!      */
! DEF_RTL_EXPR(DEFINE_PEEPHOLE, "define_peephole", "EsTV", RTX_EXTRA)
! 
! /* Definition of a split operation.
!    1st operand: insn pattern to match
!    2nd operand: C expression that must be true
!    3rd operand: vector of insn patterns to place into a SEQUENCE
!    4th operand: optionally, some C code to execute before generating the
! 	insns.  This might, for example, create some RTX's and store them in
! 	elements of `recog_data.operand' for use by the vector of
! 	insn-patterns.
! 	(`operands' is an alias here for `recog_data.operand').  */
! DEF_RTL_EXPR(DEFINE_SPLIT, "define_split", "EsES", RTX_EXTRA)
  
! /* Definition of an insn and associated split.
!    This is the concatenation, with a few modifications, of a define_insn
!    and a define_split which share the same pattern.
     Operand:
!    0: names this instruction.
!       If the name is the null string, the instruction is in the
!       machine description just to be recognized, and will never be emitted by
!       the tree to rtl expander.
!    1: is the pattern.
!    2: is a string which is a C expression
!       giving an additional condition for recognizing this pattern.
!       A null string means no extra condition.
!    3: is the action to execute if this pattern is matched.
!       If this assembler code template starts with a * then it is a fragment of
!       C code to run to decide on a template to use.  Otherwise, it is the
!       template to use.
!    4: C expression that must be true for split.  This may start with "&&"
!       in which case the split condition is the logical and of the insn 
!       condition and what follows the "&&" of this operand.
!    5: vector of insn patterns to place into a SEQUENCE
!    6: optionally, some C code to execute before generating the
! 	insns.  This might, for example, create some RTX's and store them in
! 	elements of `recog_data.operand' for use by the vector of
! 	insn-patterns.
! 	(`operands' is an alias here for `recog_data.operand').  
!    7: optionally, a vector of attributes for this insn.  */
! DEF_RTL_EXPR(DEFINE_INSN_AND_SPLIT, "define_insn_and_split", "sEsTsESV", RTX_EXTRA)
! 
! /* Definition of an RTL peephole operation.
!    Follows the same arguments as define_split.  */
! DEF_RTL_EXPR(DEFINE_PEEPHOLE2, "define_peephole2", "EsES", RTX_EXTRA)
! 
! /* Define how to generate multiple insns for a standard insn name.
!    1st operand: the insn name.
!    2nd operand: vector of insn-patterns.
! 	Use match_operand to substitute an element of `recog_data.operand'.
!    3rd operand: C expression that must be true for this to be available.
! 	This may not test any operands.
!    4th operand: Extra C code to execute before generating the insns.
! 	This might, for example, create some RTX's and store them in
! 	elements of `recog_data.operand' for use by the vector of
! 	insn-patterns.
! 	(`operands' is an alias here for `recog_data.operand').  */
! DEF_RTL_EXPR(DEFINE_EXPAND, "define_expand", "sEss", RTX_EXTRA)
!    
! /* Define a requirement for delay slots.
!    1st operand: Condition involving insn attributes that, if true,
! 	        indicates that the insn requires the number of delay slots
! 		shown.
!    2nd operand: Vector whose length is the three times the number of delay
! 		slots required.
! 	        Each entry gives three conditions, each involving attributes.
! 		The first must be true for an insn to occupy that delay slot
! 		location.  The second is true for all insns that can be
! 		annulled if the branch is true and the third is true for all
! 		insns that can be annulled if the branch is false. 
! 
!    Multiple DEFINE_DELAYs may be present.  They indicate differing
!    requirements for delay slots.  */
! DEF_RTL_EXPR(DEFINE_DELAY, "define_delay", "eE", RTX_EXTRA)
! 
! /* Define attribute computation for `asm' instructions.  */
! DEF_RTL_EXPR(DEFINE_ASM_ATTRIBUTES, "define_asm_attributes", "V", RTX_EXTRA)
! 
! /* Definition of a conditional execution meta operation.  Automatically
!    generates new instances of DEFINE_INSN, selected by having attribute
!    "predicable" true.  The new pattern will contain a COND_EXEC and the
!    predicate at top-level.
! 
     Operand:
!    0: The predicate pattern.  The top-level form should match a
!       relational operator.  Operands should have only one alternative.
!    1: A C expression giving an additional condition for recognizing
!       the generated pattern.
!    2: A template or C code to produce assembler output.  */
! DEF_RTL_EXPR(DEFINE_COND_EXEC, "define_cond_exec", "Ess", RTX_EXTRA)
! 
! /* Definition of an operand predicate.  The difference between
!    DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE is that genrecog will
!    not warn about a match_operand with no mode if it has a predicate
!    defined with DEFINE_SPECIAL_PREDICATE.
  
!    Operand:
!    0: The name of the predicate.
!    1: A boolean expression which computes whether or not the predicate
!       matches.  This expression can use IOR, AND, NOT, MATCH_OPERAND,
!       MATCH_CODE, and MATCH_TEST.  It must be specific enough that genrecog
!       can calculate the set of RTX codes that can possibly match.
!    2: A C function body which must return true for the predicate to match.
!       Optional.  Use this when the test is too complicated to fit into a
!       match_test expression.  */
! DEF_RTL_EXPR(DEFINE_PREDICATE, "define_predicate", "ses", RTX_EXTRA)
! DEF_RTL_EXPR(DEFINE_SPECIAL_PREDICATE, "define_special_predicate", "ses", RTX_EXTRA)
  
  /* SEQUENCE appears in the result of a `gen_...' function
     for a DEFINE_EXPAND that wants to make several insns.
--- 100,157 ----
  DEF_RTL_EXPR(INSN_LIST, "insn_list", "ue", RTX_EXTRA)
  
  /* ----------------------------------------------------------------------
!    Expression types used for things in the instruction chain.
  
!    All formats must start with "iuu" to handle the chain.
!    Each insn expression holds an rtl instruction and its semantics
!    during back-end processing.
!    See macros in "rtl.h" for the meaning of each rtx->u.fld[].
  
!    ---------------------------------------------------------------------- */
  
! /* An instruction that cannot jump.  */
! DEF_RTL_EXPR(INSN, "insn", "iuuBieiee", RTX_INSN)
  
! /* An instruction that can possibly jump.
!    Fields ( rtx->u.fld[] ) have exact same meaning as INSN's.  */
! DEF_RTL_EXPR(JUMP_INSN, "jump_insn", "iuuBieiee0", RTX_INSN)
  
! /* An instruction that can possibly call a subroutine
!    but which will not change which instruction comes next
!    in the current function.
!    Field ( rtx->u.fld[9] ) is CALL_INSN_FUNCTION_USAGE.
!    All other fields ( rtx->u.fld[] ) have exact same meaning as INSN's.  */
! DEF_RTL_EXPR(CALL_INSN, "call_insn", "iuuBieieee", RTX_INSN)
  
! /* A marker that indicates that control will not flow through.  */
! DEF_RTL_EXPR(BARRIER, "barrier", "iuu000000", RTX_EXTRA)
  
! /* Holds a label that is followed by instructions.
     Operand:
!    4: is used in jump.c for the use-count of the label.
!    5: is used in flow.c to point to the chain of label_ref's to this label.
!    6: is a number that is unique in the entire compilation.
!    7: is the user-given name of the label, if any.  */
! DEF_RTL_EXPR(CODE_LABEL, "code_label", "iuuB00is", RTX_EXTRA)
  
! #ifdef USE_MAPPED_LOCATION
! /* Say where in the code a source line starts, for symbol table's sake.
     Operand:
!    4: unused if line number > 0, note-specific data otherwise.
!    5: line number if > 0, enum note_insn otherwise.
!    6: CODE_LABEL_NUMBER if line number == NOTE_INSN_DELETED_LABEL.  */
! #else
! /* Say where in the code a source line starts, for symbol table's sake.
     Operand:
!    4: filename, if line number > 0, note-specific data otherwise.
!    5: line number if > 0, enum note_insn otherwise.
!    6: unique number if line number == note_insn_deleted_label.  */
! #endif
! DEF_RTL_EXPR(NOTE, "note", "iuuB0ni", RTX_EXTRA)
  
! /* Information about the current location of a user variable.  Appears only
!    in NOTE_INSN_VAR_LOCATION notes.  */
! DEF_RTL_EXPR(VAR_LOCATION, "var_location", "te", RTX_EXTRA)
  
  /* SEQUENCE appears in the result of a `gen_...' function
     for a DEFINE_EXPAND that wants to make several insns.
***************
*** 331,1186 ****
     `emit_insn' takes the SEQUENCE apart and makes separate insns.  */
  DEF_RTL_EXPR(SEQUENCE, "sequence", "E", RTX_EXTRA)
  
- /* Refers to the address of its argument.  This is only used in alias.c.  */
- DEF_RTL_EXPR(ADDRESS, "address", "e", RTX_MATCH)
- 
  /* ----------------------------------------------------------------------
!    Constructions for CPU pipeline description described by NDFAs.
!    These do not appear in actual rtl code in the compiler.
     ---------------------------------------------------------------------- */
  
! /* (define_cpu_unit string [string]) describes cpu functional
!    units (separated by comma).
! 
!    1st operand: Names of cpu functional units.
!    2nd operand: Name of automaton (see comments for DEFINE_AUTOMATON).
  
!    All define_reservations, define_cpu_units, and
!    define_query_cpu_units should have unique names which may not be
!    "nothing".  */
! DEF_RTL_EXPR(DEFINE_CPU_UNIT, "define_cpu_unit", "sS", RTX_EXTRA)
  
! /* (define_query_cpu_unit string [string]) describes cpu functional
!    units analogously to define_cpu_unit.  The reservation of such
!    units can be queried for automaton state.  */
! DEF_RTL_EXPR(DEFINE_QUERY_CPU_UNIT, "define_query_cpu_unit", "sS", RTX_EXTRA)
  
! /* (exclusion_set string string) means that each CPU functional unit
!    in the first string can not be reserved simultaneously with any
!    unit whose name is in the second string and vise versa.  CPU units
!    in the string are separated by commas.  For example, it is useful
!    for description CPU with fully pipelined floating point functional
!    unit which can execute simultaneously only single floating point
!    insns or only double floating point insns.  All CPU functional
!    units in a set should belong to the same automaton.  */
! DEF_RTL_EXPR(EXCLUSION_SET, "exclusion_set", "ss", RTX_EXTRA)
  
! /* (presence_set string string) means that each CPU functional unit in
!    the first string can not be reserved unless at least one of pattern
!    of units whose names are in the second string is reserved.  This is
!    an asymmetric relation.  CPU units or unit patterns in the strings
!    are separated by commas.  Pattern is one unit name or unit names
!    separated by white-spaces.
!  
!    For example, it is useful for description that slot1 is reserved
!    after slot0 reservation for a VLIW processor.  We could describe it
!    by the following construction
  
!       (presence_set "slot1" "slot0")
  
!    Or slot1 is reserved only after slot0 and unit b0 reservation.  In
!    this case we could write
  
!       (presence_set "slot1" "slot0 b0")
  
!    All CPU functional units in a set should belong to the same
!    automaton.  */
! DEF_RTL_EXPR(PRESENCE_SET, "presence_set", "ss", RTX_EXTRA)
  
! /* (final_presence_set string string) is analogous to `presence_set'.
!    The difference between them is when checking is done.  When an
!    instruction is issued in given automaton state reflecting all
!    current and planned unit reservations, the automaton state is
!    changed.  The first state is a source state, the second one is a
!    result state.  Checking for `presence_set' is done on the source
!    state reservation, checking for `final_presence_set' is done on the
!    result reservation.  This construction is useful to describe a
!    reservation which is actually two subsequent reservations.  For
!    example, if we use 
  
!       (presence_set "slot1" "slot0")
  
!    the following insn will be never issued (because slot1 requires
!    slot0 which is absent in the source state).
  
!       (define_reservation "insn_and_nop" "slot0 + slot1")
  
!    but it can be issued if we use analogous `final_presence_set'.  */
! DEF_RTL_EXPR(FINAL_PRESENCE_SET, "final_presence_set", "ss", RTX_EXTRA)
  
! /* (absence_set string string) means that each CPU functional unit in
!    the first string can be reserved only if each pattern of units
!    whose names are in the second string is not reserved.  This is an
!    asymmetric relation (actually exclusion set is analogous to this
!    one but it is symmetric).  CPU units or unit patterns in the string
!    are separated by commas.  Pattern is one unit name or unit names
!    separated by white-spaces.
  
!    For example, it is useful for description that slot0 can not be
!    reserved after slot1 or slot2 reservation for a VLIW processor.  We
!    could describe it by the following construction
  
!       (absence_set "slot2" "slot0, slot1")
  
!    Or slot2 can not be reserved if slot0 and unit b0 are reserved or
!    slot1 and unit b1 are reserved .  In this case we could write
  
!       (absence_set "slot2" "slot0 b0, slot1 b1")
  
!    All CPU functional units in a set should to belong the same
!    automaton.  */
! DEF_RTL_EXPR(ABSENCE_SET, "absence_set", "ss", RTX_EXTRA)
  
! /* (final_absence_set string string) is analogous to `absence_set' but
!    checking is done on the result (state) reservation.  See comments
!    for `final_presence_set'.  */
! DEF_RTL_EXPR(FINAL_ABSENCE_SET, "final_absence_set", "ss", RTX_EXTRA)
  
! /* (define_bypass number out_insn_names in_insn_names) names bypass
!    with given latency (the first number) from insns given by the first
!    string (see define_insn_reservation) into insns given by the second
!    string.  Insn names in the strings are separated by commas.  The
!    third operand is optional name of function which is additional
!    guard for the bypass.  The function will get the two insns as
!    parameters.  If the function returns zero the bypass will be
!    ignored for this case.  Additional guard is necessary to recognize
!    complicated bypasses, e.g. when consumer is load address.  */
! DEF_RTL_EXPR(DEFINE_BYPASS, "define_bypass", "issS", RTX_EXTRA)
  
! /* (define_automaton string) describes names of automata generated and
!    used for pipeline hazards recognition.  The names are separated by
!    comma.  Actually it is possibly to generate the single automaton
!    but unfortunately it can be very large.  If we use more one
!    automata, the summary size of the automata usually is less than the
!    single one.  The automaton name is used in define_cpu_unit and
!    define_query_cpu_unit.  All automata should have unique names.  */
! DEF_RTL_EXPR(DEFINE_AUTOMATON, "define_automaton", "s", RTX_EXTRA)
  
! /* (automata_option string) describes option for generation of
!    automata.  Currently there are the following options:
  
!    o "no-minimization" which makes no minimization of automata.  This
!      is only worth to do when we are debugging the description and
!      need to look more accurately at reservations of states.
  
!    o "time" which means printing additional time statistics about
!       generation of automata.
!   
!    o "v" which means generation of file describing the result
!      automata.  The file has suffix `.dfa' and can be used for the
!      description verification and debugging.
  
!    o "w" which means generation of warning instead of error for
!      non-critical errors.
  
!    o "ndfa" which makes nondeterministic finite state automata.
  
!    o "progress" which means output of a progress bar showing how many
!      states were generated so far for automaton being processed.  */
! DEF_RTL_EXPR(AUTOMATA_OPTION, "automata_option", "s", RTX_EXTRA)
  
! /* (define_reservation string string) names reservation (the first
!    string) of cpu functional units (the 2nd string).  Sometimes unit
!    reservations for different insns contain common parts.  In such
!    case, you can describe common part and use its name (the 1st
!    parameter) in regular expression in define_insn_reservation.  All
!    define_reservations, define_cpu_units, and define_query_cpu_units
!    should have unique names which may not be "nothing".  */
! DEF_RTL_EXPR(DEFINE_RESERVATION, "define_reservation", "ss", RTX_EXTRA)
  
! /* (define_insn_reservation name default_latency condition regexpr)
!    describes reservation of cpu functional units (the 3nd operand) for
!    instruction which is selected by the condition (the 2nd parameter).
!    The first parameter is used for output of debugging information.
!    The reservations are described by a regular expression according
!    the following syntax:
  
!        regexp = regexp "," oneof
!               | oneof
  
!        oneof = oneof "|" allof
!              | allof
  
!        allof = allof "+" repeat
!              | repeat
!  
!        repeat = element "*" number
!               | element
  
!        element = cpu_function_unit_name
!                | reservation_name
!                | result_name
!                | "nothing"
!                | "(" regexp ")"
  
!        1. "," is used for describing start of the next cycle in
!        reservation.
  
!        2. "|" is used for describing the reservation described by the
!        first regular expression *or* the reservation described by the
!        second regular expression *or* etc.
  
!        3. "+" is used for describing the reservation described by the
!        first regular expression *and* the reservation described by the
!        second regular expression *and* etc.
  
!        4. "*" is used for convenience and simply means sequence in
!        which the regular expression are repeated NUMBER times with
!        cycle advancing (see ",").
  
!        5. cpu functional unit name which means its reservation.
  
!        6. reservation name -- see define_reservation.
  
!        7. string "nothing" means no units reservation.  */
  
! DEF_RTL_EXPR(DEFINE_INSN_RESERVATION, "define_insn_reservation", "sies", RTX_EXTRA)
  
  /* ----------------------------------------------------------------------
!    Expressions used for insn attributes.  These also do not appear in
!    actual rtl code in the compiler.
     ---------------------------------------------------------------------- */
  
! /* Definition of an insn attribute.
!    1st operand: name of the attribute
!    2nd operand: comma-separated list of possible attribute values
!    3rd operand: expression for the default value of the attribute.  */
! DEF_RTL_EXPR(DEFINE_ATTR, "define_attr", "sse", RTX_EXTRA)
  
! /* Marker for the name of an attribute.  */
! DEF_RTL_EXPR(ATTR, "attr", "s", RTX_EXTRA)
  
! /* For use in the last (optional) operand of DEFINE_INSN or DEFINE_PEEPHOLE and
!    in DEFINE_ASM_INSN to specify an attribute to assign to insns matching that
!    pattern.
  
!    (set_attr "name" "value") is equivalent to
!    (set (attr "name") (const_string "value"))  */
! DEF_RTL_EXPR(SET_ATTR, "set_attr", "ss", RTX_EXTRA)
  
! /* In the last operand of DEFINE_INSN and DEFINE_PEEPHOLE, this can be used to
!    specify that attribute values are to be assigned according to the
!    alternative matched.
  
!    The following three expressions are equivalent:
  
!    (set (attr "att") (cond [(eq_attrq "alternative" "1") (const_string "a1")
! 			    (eq_attrq "alternative" "2") (const_string "a2")]
! 			   (const_string "a3")))
!    (set_attr_alternative "att" [(const_string "a1") (const_string "a2")
! 				 (const_string "a3")])
!    (set_attr "att" "a1,a2,a3")
!  */
! DEF_RTL_EXPR(SET_ATTR_ALTERNATIVE, "set_attr_alternative", "sE", RTX_EXTRA)
  
! /* A conditional expression true if the value of the specified attribute of
!    the current insn equals the specified value.  The first operand is the
!    attribute name and the second is the comparison value.  */
! DEF_RTL_EXPR(EQ_ATTR, "eq_attr", "ss", RTX_EXTRA)
  
! /* A special case of the above representing a set of alternatives.  The first
!    operand is bitmap of the set, the second one is the default value.  */
! DEF_RTL_EXPR(EQ_ATTR_ALT, "eq_attr_alt", "ii", RTX_EXTRA)
  
! /* A conditional expression which is true if the specified flag is
!    true for the insn being scheduled in reorg.
  
!    genattr.c defines the following flags which can be tested by
!    (attr_flag "foo") expressions in eligible_for_delay.
  
!    forward, backward, very_likely, likely, very_unlikely, and unlikely.  */
  
! DEF_RTL_EXPR (ATTR_FLAG, "attr_flag", "s", RTX_EXTRA)
  
! /* ----------------------------------------------------------------------
!    Expression types used for things in the instruction chain.
  
!    All formats must start with "iuu" to handle the chain.
!    Each insn expression holds an rtl instruction and its semantics
!    during back-end processing.
!    See macros's in "rtl.h" for the meaning of each rtx->u.fld[].
  
!    ---------------------------------------------------------------------- */
  
! /* An instruction that cannot jump.  */
! DEF_RTL_EXPR(INSN, "insn", "iuuBieiee", RTX_INSN)
  
! /* An instruction that can possibly jump.
!    Fields ( rtx->u.fld[] ) have exact same meaning as INSN's.  */
! DEF_RTL_EXPR(JUMP_INSN, "jump_insn", "iuuBieiee0", RTX_INSN)
  
! /* An instruction that can possibly call a subroutine
!    but which will not change which instruction comes next
!    in the current function.
!    Field ( rtx->u.fld[9] ) is CALL_INSN_FUNCTION_USAGE.
!    All other fields ( rtx->u.fld[] ) have exact same meaning as INSN's.  */
! DEF_RTL_EXPR(CALL_INSN, "call_insn", "iuuBieieee", RTX_INSN)
  
! /* A marker that indicates that control will not flow through.  */
! DEF_RTL_EXPR(BARRIER, "barrier", "iuu000000", RTX_EXTRA)
  
! /* Holds a label that is followed by instructions.
!    Operand:
!    4: is used in jump.c for the use-count of the label.
!    5: is used in flow.c to point to the chain of label_ref's to this label.
!    6: is a number that is unique in the entire compilation.
!    7: is the user-given name of the label, if any.  */
! DEF_RTL_EXPR(CODE_LABEL, "code_label", "iuuB00is", RTX_EXTRA)
  
! #ifdef USE_MAPPED_LOCATION
! /* Say where in the code a source line starts, for symbol table's sake.
!    Operand:
!    4: unused if line number > 0, note-specific data otherwise.
!    5: line number if > 0, enum note_insn otherwise.
!    6: CODE_LABEL_NUMBER if line number == NOTE_INSN_DELETED_LABEL.  */
! #else
! /* Say where in the code a source line starts, for symbol table's sake.
!    Operand:
!    4: filename, if line number > 0, note-specific data otherwise.
!    5: line number if > 0, enum note_insn otherwise.
!    6: unique number if line number == note_insn_deleted_label.  */
! #endif
! DEF_RTL_EXPR(NOTE, "note", "iuuB0ni", RTX_EXTRA)
  
! /* ----------------------------------------------------------------------
!    Top level constituents of INSN, JUMP_INSN and CALL_INSN.
!    ---------------------------------------------------------------------- */
!    
! /* Conditionally execute code.
!    Operand 0 is the condition that if true, the code is executed.
!    Operand 1 is the code to be executed (typically a SET). 
  
!    Semantics are that there are no side effects if the condition
!    is false.  This pattern is created automatically by the if_convert
!    pass run after reload or by target-specific splitters.  */
! DEF_RTL_EXPR(COND_EXEC, "cond_exec", "ee", RTX_EXTRA)
  
! /* Several operations to be done in parallel (perhaps under COND_EXEC).  */
! DEF_RTL_EXPR(PARALLEL, "parallel", "E", RTX_EXTRA)
  
! /* A string that is passed through to the assembler as input.
!      One can obviously pass comments through by using the
!      assembler comment syntax.
!      These occur in an insn all by themselves as the PATTERN.
!      They also appear inside an ASM_OPERANDS
!      as a convenient way to hold a string.  */
! DEF_RTL_EXPR(ASM_INPUT, "asm_input", "s", RTX_EXTRA)
  
! #ifdef USE_MAPPED_LOCATION
! /* An assembler instruction with operands.
!    1st operand is the instruction template.
!    2nd operand is the constraint for the output.
!    3rd operand is the number of the output this expression refers to.
!      When an insn stores more than one value, a separate ASM_OPERANDS
!      is made for each output; this integer distinguishes them.
!    4th is a vector of values of input operands.
!    5th is a vector of modes and constraints for the input operands.
!      Each element is an ASM_INPUT containing a constraint string
!      and whose mode indicates the mode of the input operand.
!    6th is the source line number.  */
! DEF_RTL_EXPR(ASM_OPERANDS, "asm_operands", "ssiEEi", RTX_EXTRA)
! #else
! /* An assembler instruction with operands.
!    1st operand is the instruction template.
!    2nd operand is the constraint for the output.
!    3rd operand is the number of the output this expression refers to.
!      When an insn stores more than one value, a separate ASM_OPERANDS
!      is made for each output; this integer distinguishes them.
!    4th is a vector of values of input operands.
!    5th is a vector of modes and constraints for the input operands.
!      Each element is an ASM_INPUT containing a constraint string
!      and whose mode indicates the mode of the input operand.
!    6th is the name of the containing source file.
!    7th is the source line number.  */
! DEF_RTL_EXPR(ASM_OPERANDS, "asm_operands", "ssiEEsi", RTX_EXTRA)
! #endif
  
! /* A machine-specific operation.
!    1st operand is a vector of operands being used by the operation so that
!      any needed reloads can be done.
!    2nd operand is a unique value saying which of a number of machine-specific
!      operations is to be performed.
!    (Note that the vector must be the first operand because of the way that
!    genrecog.c record positions within an insn.)
!    This can occur all by itself in a PATTERN, as a component of a PARALLEL,
!    or inside an expression.  */
! DEF_RTL_EXPR(UNSPEC, "unspec", "Ei", RTX_EXTRA)
  
! /* Similar, but a volatile operation and one which may trap.  */
! DEF_RTL_EXPR(UNSPEC_VOLATILE, "unspec_volatile", "Ei", RTX_EXTRA)
  
! /* Vector of addresses, stored as full words.  */
! /* Each element is a LABEL_REF to a CODE_LABEL whose address we want.  */
! DEF_RTL_EXPR(ADDR_VEC, "addr_vec", "E", RTX_EXTRA)
  
! /* Vector of address differences X0 - BASE, X1 - BASE, ...
!    First operand is BASE; the vector contains the X's.
!    The machine mode of this rtx says how much space to leave
!    for each difference and is adjusted by branch shortening if
!    CASE_VECTOR_SHORTEN_MODE is defined.
!    The third and fourth operands store the target labels with the
!    minimum and maximum addresses respectively.
!    The fifth operand stores flags for use by branch shortening.
!   Set at the start of shorten_branches:
!    min_align: the minimum alignment for any of the target labels.
!    base_after_vec: true iff BASE is after the ADDR_DIFF_VEC.
!    min_after_vec: true iff minimum addr target label is after the ADDR_DIFF_VEC.
!    max_after_vec: true iff maximum addr target label is after the ADDR_DIFF_VEC.
!    min_after_base: true iff minimum address target label is after BASE.
!    max_after_base: true iff maximum address target label is after BASE.
!   Set by the actual branch shortening process:
!    offset_unsigned: true iff offsets have to be treated as unsigned.
!    scale: scaling that is necessary to make offsets fit into the mode.
  
!    The third, fourth and fifth operands are only valid when
!    CASE_VECTOR_SHORTEN_MODE is defined, and only in an optimizing
!    compilations.  */
       
! DEF_RTL_EXPR(ADDR_DIFF_VEC, "addr_diff_vec", "eEee0", RTX_EXTRA)
  
! /* Memory prefetch, with attributes supported on some targets.
!    Operand 1 is the address of the memory to fetch.
!    Operand 2 is 1 for a write access, 0 otherwise.
!    Operand 3 is the level of temporal locality; 0 means there is no
!    temporal locality and 1, 2, and 3 are for increasing levels of temporal
!    locality.
  
!    The attributes specified by operands 2 and 3 are ignored for targets
!    whose prefetch instructions do not support them.  */
! DEF_RTL_EXPR(PREFETCH, "prefetch", "eee", RTX_EXTRA)
  
  /* ----------------------------------------------------------------------
!    At the top level of an instruction (perhaps under PARALLEL).
     ---------------------------------------------------------------------- */
  
! /* Assignment.
!    Operand 1 is the location (REG, MEM, PC, CC0 or whatever) assigned to.
!    Operand 2 is the value stored there.
!    ALL assignment must use SET.
!    Instructions that do multiple assignments must use multiple SET,
!    under PARALLEL.  */
! DEF_RTL_EXPR(SET, "set", "ee", RTX_EXTRA)
  
! /* Indicate something is used in a way that we don't want to explain.
!    For example, subroutine calls will use the register
!    in which the static chain is passed.  */
! DEF_RTL_EXPR(USE, "use", "e", RTX_EXTRA)
  
! /* Indicate something is clobbered in a way that we don't want to explain.
!    For example, subroutine calls will clobber some physical registers
!    (the ones that are by convention not saved).  */
! DEF_RTL_EXPR(CLOBBER, "clobber", "e", RTX_EXTRA)
  
! /* Call a subroutine.
!    Operand 1 is the address to call.
!    Operand 2 is the number of arguments.  */
  
! DEF_RTL_EXPR(CALL, "call", "ee", RTX_EXTRA)
  
! /* Return from a subroutine.  */
  
! DEF_RTL_EXPR(RETURN, "return", "", RTX_EXTRA)
  
! /* Conditional trap.
!    Operand 1 is the condition.
!    Operand 2 is the trap code.
!    For an unconditional trap, make the condition (const_int 1).  */
! DEF_RTL_EXPR(TRAP_IF, "trap_if", "ee", RTX_EXTRA)
  
! /* Placeholder for _Unwind_Resume before we know if a function call
!    or a branch is needed.  Operand 1 is the exception region from
!    which control is flowing.  */
! DEF_RTL_EXPR(RESX, "resx", "i", RTX_EXTRA)
  
! /* ----------------------------------------------------------------------
!    Primitive values for use in expressions.
!    ---------------------------------------------------------------------- */
  
! /* numeric integer constant */
! DEF_RTL_EXPR(CONST_INT, "const_int", "w", RTX_CONST_OBJ)
  
! /* numeric floating point constant.
!    Operands hold the value.  They are all 'w' and there may be from 2 to 6;
!    see real.h.  */
! DEF_RTL_EXPR(CONST_DOUBLE, "const_double", CONST_DOUBLE_FORMAT, RTX_CONST_OBJ)
  
! /* Describes a vector constant.  */
! DEF_RTL_EXPR(CONST_VECTOR, "const_vector", "E", RTX_EXTRA)
  
! /* String constant.  Used only for attributes right now.  */
! DEF_RTL_EXPR(CONST_STRING, "const_string", "s", RTX_OBJ)
  
! /* This is used to encapsulate an expression whose value is constant
!    (such as the sum of a SYMBOL_REF and a CONST_INT) so that it will be
!    recognized as a constant operand rather than by arithmetic instructions.  */
  
! DEF_RTL_EXPR(CONST, "const", "e", RTX_CONST_OBJ)
  
! /* program counter.  Ordinary jumps are represented
!    by a SET whose first operand is (PC).  */
! DEF_RTL_EXPR(PC, "pc", "", RTX_OBJ)
  
! /* Used in the cselib routines to describe a value.  */
! DEF_RTL_EXPR(VALUE, "value", "0", RTX_OBJ)
  
! /* A register.  The "operand" is the register number, accessed with
!    the REGNO macro.  If this number is less than FIRST_PSEUDO_REGISTER
!    than a hardware register is being referred to.  The second operand
!    holds the original register number - this will be different for a
!    pseudo register that got turned into a hard register.
!    This rtx needs to have as many (or more) fields as a MEM, since we
!    can change REG rtx's into MEMs during reload.  */
! DEF_RTL_EXPR(REG, "reg", "i00", RTX_OBJ)
  
! /* A scratch register.  This represents a register used only within a
!    single insn.  It will be turned into a REG during register allocation
!    or reload unless the constraint indicates that the register won't be
!    needed, in which case it can remain a SCRATCH.  This code is
!    marked as having one operand so it can be turned into a REG.  */
! DEF_RTL_EXPR(SCRATCH, "scratch", "0", RTX_OBJ)
  
! /* One word of a multi-word value.
!    The first operand is the complete value; the second says which word.
!    The WORDS_BIG_ENDIAN flag controls whether word number 0
!    (as numbered in a SUBREG) is the most or least significant word.
  
!    This is also used to refer to a value in a different machine mode.
!    For example, it can be used to refer to a SImode value as if it were
!    Qimode, or vice versa.  Then the word number is always 0.  */
! DEF_RTL_EXPR(SUBREG, "subreg", "ei", RTX_EXTRA)
  
! /* This one-argument rtx is used for move instructions
!    that are guaranteed to alter only the low part of a destination.
!    Thus, (SET (SUBREG:HI (REG...)) (MEM:HI ...))
!    has an unspecified effect on the high part of REG,
!    but (SET (STRICT_LOW_PART (SUBREG:HI (REG...))) (MEM:HI ...))
!    is guaranteed to alter only the bits of REG that are in HImode.
  
!    The actual instruction used is probably the same in both cases,
!    but the register constraints may be tighter when STRICT_LOW_PART
!    is in use.  */
  
! DEF_RTL_EXPR(STRICT_LOW_PART, "strict_low_part", "e", RTX_EXTRA)
  
! /* (CONCAT a b) represents the virtual concatenation of a and b
!    to make a value that has as many bits as a and b put together.
!    This is used for complex values.  Normally it appears only
!    in DECL_RTLs and during RTL generation, but not in the insn chain.  */
! DEF_RTL_EXPR(CONCAT, "concat", "ee", RTX_OBJ)
  
! /* A memory location; operand is the address.  The second operand is the
!    alias set to which this MEM belongs.  We use `0' instead of `w' for this
!    field so that the field need not be specified in machine descriptions.  */
! DEF_RTL_EXPR(MEM, "mem", "e0", RTX_OBJ)
  
! /* Reference to an assembler label in the code for this function.
!    The operand is a CODE_LABEL found in the insn chain.
!    The unprinted fields 1 and 2 are used in flow.c for the
!    LABEL_NEXTREF and CONTAINING_INSN.  */
! DEF_RTL_EXPR(LABEL_REF, "label_ref", "u00", RTX_CONST_OBJ)
  
! /* Reference to a named label: 
!    Operand 0: label name
!    Operand 1: flags (see SYMBOL_FLAG_* in rtl.h)
!    Operand 2: tree from which this symbol is derived, or null.
!    This is either a DECL node, or some kind of constant.  */
! DEF_RTL_EXPR(SYMBOL_REF, "symbol_ref", "s00", RTX_CONST_OBJ)
  
! /* The condition code register is represented, in our imagination,
!    as a register holding a value that can be compared to zero.
!    In fact, the machine has already compared them and recorded the
!    results; but instructions that look at the condition code
!    pretend to be looking at the entire value and comparing it.  */
! DEF_RTL_EXPR(CC0, "cc0", "", RTX_OBJ)
  
! /* ----------------------------------------------------------------------
!    Expressions for operators in an rtl pattern
!    ---------------------------------------------------------------------- */
  
! /* if_then_else.  This is used in representing ordinary
!    conditional jump instructions.
!      Operand:
!      0:  condition
!      1:  then expr
!      2:  else expr */
! DEF_RTL_EXPR(IF_THEN_ELSE, "if_then_else", "eee", RTX_TERNARY)
  
! /* General conditional. The first operand is a vector composed of pairs of
!    expressions.  The first element of each pair is evaluated, in turn.
!    The value of the conditional is the second expression of the first pair
!    whose first expression evaluates nonzero.  If none of the expressions is
!    true, the second operand will be used as the value of the conditional.
  
!    This should be replaced with use of IF_THEN_ELSE.  */
! DEF_RTL_EXPR(COND, "cond", "Ee", RTX_EXTRA)
  
! /* Comparison, produces a condition code result.  */
! DEF_RTL_EXPR(COMPARE, "compare", "ee", RTX_BIN_ARITH)
  
! /* plus */
! DEF_RTL_EXPR(PLUS, "plus", "ee", RTX_COMM_ARITH)
  
! /* Operand 0 minus operand 1.  */
! DEF_RTL_EXPR(MINUS, "minus", "ee", RTX_BIN_ARITH)
  
! /* Minus operand 0.  */
! DEF_RTL_EXPR(NEG, "neg", "e", RTX_UNARY)
  
! DEF_RTL_EXPR(MULT, "mult", "ee", RTX_COMM_ARITH)
  
! /* Operand 0 divided by operand 1.  */
! DEF_RTL_EXPR(DIV, "div", "ee", RTX_BIN_ARITH)
! /* Remainder of operand 0 divided by operand 1.  */
! DEF_RTL_EXPR(MOD, "mod", "ee", RTX_BIN_ARITH)
  
! /* Unsigned divide and remainder.  */
! DEF_RTL_EXPR(UDIV, "udiv", "ee", RTX_BIN_ARITH)
! DEF_RTL_EXPR(UMOD, "umod", "ee", RTX_BIN_ARITH)
  
! /* Bitwise operations.  */
! DEF_RTL_EXPR(AND, "and", "ee", RTX_COMM_ARITH)
  
! DEF_RTL_EXPR(IOR, "ior", "ee", RTX_COMM_ARITH)
  
! DEF_RTL_EXPR(XOR, "xor", "ee", RTX_COMM_ARITH)
  
! DEF_RTL_EXPR(NOT, "not", "e", RTX_UNARY)
  
! /* Operand:
!      0:  value to be shifted.
!      1:  number of bits.  */
! DEF_RTL_EXPR(ASHIFT, "ashift", "ee", RTX_BIN_ARITH) /* shift left */
! DEF_RTL_EXPR(ROTATE, "rotate", "ee", RTX_BIN_ARITH) /* rotate left */
! DEF_RTL_EXPR(ASHIFTRT, "ashiftrt", "ee", RTX_BIN_ARITH) /* arithmetic shift right */
! DEF_RTL_EXPR(LSHIFTRT, "lshiftrt", "ee", RTX_BIN_ARITH) /* logical shift right */
! DEF_RTL_EXPR(ROTATERT, "rotatert", "ee", RTX_BIN_ARITH) /* rotate right */
  
! /* Minimum and maximum values of two operands.  We need both signed and
!    unsigned forms.  (We cannot use MIN for SMIN because it conflicts
!    with a macro of the same name.) */
  
! DEF_RTL_EXPR(SMIN, "smin", "ee", RTX_COMM_ARITH)
! DEF_RTL_EXPR(SMAX, "smax", "ee", RTX_COMM_ARITH)
! DEF_RTL_EXPR(UMIN, "umin", "ee", RTX_COMM_ARITH)
! DEF_RTL_EXPR(UMAX, "umax", "ee", RTX_COMM_ARITH)
  
! /* These unary operations are used to represent incrementation
!    and decrementation as they occur in memory addresses.
!    The amount of increment or decrement are not represented
!    because they can be understood from the machine-mode of the
!    containing MEM.  These operations exist in only two cases:
!    1. pushes onto the stack.
!    2. created automatically by the life_analysis pass in flow.c.  */
! DEF_RTL_EXPR(PRE_DEC, "pre_dec", "e", RTX_AUTOINC)
! DEF_RTL_EXPR(PRE_INC, "pre_inc", "e", RTX_AUTOINC)
! DEF_RTL_EXPR(POST_DEC, "post_dec", "e", RTX_AUTOINC)
! DEF_RTL_EXPR(POST_INC, "post_inc", "e", RTX_AUTOINC)
  
! /* These binary operations are used to represent generic address
!    side-effects in memory addresses, except for simple incrementation
!    or decrementation which use the above operations.  They are
!    created automatically by the life_analysis pass in flow.c.
!    The first operand is a REG which is used as the address.
!    The second operand is an expression that is assigned to the
!    register, either before (PRE_MODIFY) or after (POST_MODIFY)
!    evaluating the address.
!    Currently, the compiler can only handle second operands of the
!    form (plus (reg) (reg)) and (plus (reg) (const_int)), where
!    the first operand of the PLUS has to be the same register as
!    the first operand of the *_MODIFY.  */
! DEF_RTL_EXPR(PRE_MODIFY, "pre_modify", "ee", RTX_AUTOINC)
! DEF_RTL_EXPR(POST_MODIFY, "post_modify", "ee", RTX_AUTOINC)
  
! /* Comparison operations.  The ordered comparisons exist in two
!    flavors, signed and unsigned.  */
! DEF_RTL_EXPR(NE, "ne", "ee", RTX_COMM_COMPARE)
! DEF_RTL_EXPR(EQ, "eq", "ee", RTX_COMM_COMPARE)
! DEF_RTL_EXPR(GE, "ge", "ee", RTX_COMPARE)
! DEF_RTL_EXPR(GT, "gt", "ee", RTX_COMPARE)
! DEF_RTL_EXPR(LE, "le", "ee", RTX_COMPARE)
! DEF_RTL_EXPR(LT, "lt", "ee", RTX_COMPARE)
! DEF_RTL_EXPR(GEU, "geu", "ee", RTX_COMPARE)
! DEF_RTL_EXPR(GTU, "gtu", "ee", RTX_COMPARE)
! DEF_RTL_EXPR(LEU, "leu", "ee", RTX_COMPARE)
! DEF_RTL_EXPR(LTU, "ltu", "ee", RTX_COMPARE)
  
! /* Additional floating point unordered comparison flavors.  */
! DEF_RTL_EXPR(UNORDERED, "unordered", "ee", RTX_COMM_COMPARE)
! DEF_RTL_EXPR(ORDERED, "ordered", "ee", RTX_COMM_COMPARE)
  
! /* These are equivalent to unordered or ...  */
! DEF_RTL_EXPR(UNEQ, "uneq", "ee", RTX_COMM_COMPARE)
! DEF_RTL_EXPR(UNGE, "unge", "ee", RTX_COMPARE)
! DEF_RTL_EXPR(UNGT, "ungt", "ee", RTX_COMPARE)
! DEF_RTL_EXPR(UNLE, "unle", "ee", RTX_COMPARE)
! DEF_RTL_EXPR(UNLT, "unlt", "ee", RTX_COMPARE)
  
! /* This is an ordered NE, ie !UNEQ, ie false for NaN.  */
! DEF_RTL_EXPR(LTGT, "ltgt", "ee", RTX_COMM_COMPARE)
  
! /* Represents the result of sign-extending the sole operand.
!    The machine modes of the operand and of the SIGN_EXTEND expression
!    determine how much sign-extension is going on.  */
! DEF_RTL_EXPR(SIGN_EXTEND, "sign_extend", "e", RTX_UNARY)
  
! /* Similar for zero-extension (such as unsigned short to int).  */
! DEF_RTL_EXPR(ZERO_EXTEND, "zero_extend", "e", RTX_UNARY)
  
! /* Similar but here the operand has a wider mode.  */
! DEF_RTL_EXPR(TRUNCATE, "truncate", "e", RTX_UNARY)
  
! /* Similar for extending floating-point values (such as SFmode to DFmode).  */
! DEF_RTL_EXPR(FLOAT_EXTEND, "float_extend", "e", RTX_UNARY)
! DEF_RTL_EXPR(FLOAT_TRUNCATE, "float_truncate", "e", RTX_UNARY)
  
! /* Conversion of fixed point operand to floating point value.  */
! DEF_RTL_EXPR(FLOAT, "float", "e", RTX_UNARY)
  
! /* With fixed-point machine mode:
!    Conversion of floating point operand to fixed point value.
!    Value is defined only when the operand's value is an integer.
!    With floating-point machine mode (and operand with same mode):
!    Operand is rounded toward zero to produce an integer value
!    represented in floating point.  */
! DEF_RTL_EXPR(FIX, "fix", "e", RTX_UNARY)
  
! /* Conversion of unsigned fixed point operand to floating point value.  */
! DEF_RTL_EXPR(UNSIGNED_FLOAT, "unsigned_float", "e", RTX_UNARY)
  
! /* With fixed-point machine mode:
!    Conversion of floating point operand to *unsigned* fixed point value.
!    Value is defined only when the operand's value is an integer.  */
! DEF_RTL_EXPR(UNSIGNED_FIX, "unsigned_fix", "e", RTX_UNARY)
  
! /* Absolute value */
! DEF_RTL_EXPR(ABS, "abs", "e", RTX_UNARY)
  
! /* Square root */
! DEF_RTL_EXPR(SQRT, "sqrt", "e", RTX_UNARY)
  
! /* Find first bit that is set.
!    Value is 1 + number of trailing zeros in the arg.,
!    or 0 if arg is 0.  */
! DEF_RTL_EXPR(FFS, "ffs", "e", RTX_UNARY)
  
! /* Count leading zeros.  */
! DEF_RTL_EXPR(CLZ, "clz", "e", RTX_UNARY)
  
! /* Count trailing zeros.  */
! DEF_RTL_EXPR(CTZ, "ctz", "e", RTX_UNARY)
  
! /* Population count (number of 1 bits).  */
! DEF_RTL_EXPR(POPCOUNT, "popcount", "e", RTX_UNARY)
  
! /* Population parity (number of 1 bits modulo 2).  */
! DEF_RTL_EXPR(PARITY, "parity", "e", RTX_UNARY)
  
! /* Reference to a signed bit-field of specified size and position.
!    Operand 0 is the memory unit (usually SImode or QImode) which
!    contains the field's first bit.  Operand 1 is the width, in bits.
!    Operand 2 is the number of bits in the memory unit before the
!    first bit of this field.
!    If BITS_BIG_ENDIAN is defined, the first bit is the msb and
!    operand 2 counts from the msb of the memory unit.
!    Otherwise, the first bit is the lsb and operand 2 counts from
!    the lsb of the memory unit.  */
! DEF_RTL_EXPR(SIGN_EXTRACT, "sign_extract", "eee", RTX_BITFIELD_OPS)
  
! /* Similar for unsigned bit-field.  */
! DEF_RTL_EXPR(ZERO_EXTRACT, "zero_extract", "eee", RTX_BITFIELD_OPS)
  
! /* For RISC machines.  These save memory when splitting insns.  */
  
! /* HIGH are the high-order bits of a constant expression.  */
! DEF_RTL_EXPR(HIGH, "high", "e", RTX_CONST_OBJ)
  
! /* LO_SUM is the sum of a register and the low-order bits
!    of a constant expression.  */
! DEF_RTL_EXPR(LO_SUM, "lo_sum", "ee", RTX_OBJ)
  
! /* Header for range information.  Operand 0 is the NOTE_INSN_RANGE_BEG insn.
!    Operand 1 is the NOTE_INSN_RANGE_END insn.  Operand 2 is a vector of all of
!    the registers that can be substituted within this range.  Operand 3 is the
!    number of calls in the range.  Operand 4 is the number of insns in the
!    range.  Operand 5 is the unique range number for this range.  Operand 6 is
!    the basic block # of the start of the live range.  Operand 7 is the basic
!    block # of the end of the live range.  Operand 8 is the loop depth.  Operand
!    9 is a bitmap of the registers live at the start of the range.  Operand 10
!    is a bitmap of the registers live at the end of the range.  Operand 11 is
!    marker number for the start of the range.  Operand 12 is the marker number
!    for the end of the range.  */
! DEF_RTL_EXPR(RANGE_INFO, "range_info", "uuEiiiiiibbii", RTX_EXTRA)
! 
! /* Registers that can be substituted within the range.  Operand 0 is the
!    original pseudo register number.  Operand 1 will be filled in with the
!    pseudo register the value is copied for the duration of the range.  Operand
!    2 is the number of references within the range to the register.  Operand 3
!    is the number of sets or clobbers of the register in the range.  Operand 4
!    is the number of deaths the register has.  Operand 5 is the copy flags that
!    give the status of whether a copy is needed from the original register to
!    the new register at the beginning of the range, or whether a copy from the
!    new register back to the original at the end of the range.  Operand 6 is the
!    live length.  Operand 7 is the number of calls that this register is live
!    across.  Operand 8 is the symbol node of the variable if the register is a
!    user variable.  Operand 9 is the block node that the variable is declared
!    in if the register is a user variable.  */
! DEF_RTL_EXPR(RANGE_REG, "range_reg", "iiiiiiiitt", RTX_EXTRA)
! 
! /* Information about a local variable's ranges.  Operand 0 is an EXPR_LIST of
!    the different ranges a variable is in where it is copied to a different
!    pseudo register.  Operand 1 is the block that the variable is declared in.
!    Operand 2 is the number of distinct ranges.  */
! DEF_RTL_EXPR(RANGE_VAR, "range_var", "eti", RTX_EXTRA)
! 
! /* Information about the registers that are live at the current point.  Operand
!    0 is the live bitmap.  Operand 1 is the original block number.  */
! DEF_RTL_EXPR(RANGE_LIVE, "range_live", "bi", RTX_EXTRA)
  
! /* Describes a merge operation between two vector values.
!    Operands 0 and 1 are the vectors to be merged, operand 2 is a bitmask
!    that specifies where the parts of the result are taken from.  Set bits
!    indicate operand 0, clear bits indicate operand 1.  The parts are defined
!    by the mode of the vectors.  */
! DEF_RTL_EXPR(VEC_MERGE, "vec_merge", "eee", RTX_TERNARY)
  
! /* Describes an operation that selects parts of a vector.
!    Operands 0 is the source vector, operand 1 is a PARALLEL that contains
!    a CONST_INT for each of the subparts of the result vector, giving the
!    number of the source subpart that should be stored into it.  */
! DEF_RTL_EXPR(VEC_SELECT, "vec_select", "ee", RTX_BIN_ARITH)
  
! /* Describes a vector concat operation.  Operands 0 and 1 are the source
!    vectors, the result is a vector that is as long as operands 0 and 1
!    combined and is the concatenation of the two source vectors.  */
! DEF_RTL_EXPR(VEC_CONCAT, "vec_concat", "ee", RTX_BIN_ARITH)
  
! /* Describes an operation that converts a small vector into a larger one by
!    duplicating the input values.  The output vector mode must have the same
!    submodes as the input vector mode, and the number of output parts must be
!    an integer multiple of the number of input parts.  */
! DEF_RTL_EXPR(VEC_DUPLICATE, "vec_duplicate", "e", RTX_UNARY)
!      
! /* Addition with signed saturation */
! DEF_RTL_EXPR(SS_PLUS, "ss_plus", "ee", RTX_COMM_ARITH)
  
! /* Addition with unsigned saturation */
! DEF_RTL_EXPR(US_PLUS, "us_plus", "ee", RTX_COMM_ARITH)
  
! /* Operand 0 minus operand 1, with signed saturation.  */
! DEF_RTL_EXPR(SS_MINUS, "ss_minus", "ee", RTX_BIN_ARITH)
  
! /* Operand 0 minus operand 1, with unsigned saturation.  */
! DEF_RTL_EXPR(US_MINUS, "us_minus", "ee", RTX_BIN_ARITH)
  
! /* Signed saturating truncate.  */
! DEF_RTL_EXPR(SS_TRUNCATE, "ss_truncate", "e", RTX_UNARY)
  
! /* Unsigned saturating truncate.  */
! DEF_RTL_EXPR(US_TRUNCATE, "us_truncate", "e", RTX_UNARY)
  
! /* Information about the variable and its location.  */
! DEF_RTL_EXPR(VAR_LOCATION, "var_location", "te", RTX_EXTRA)
  
  /*
  Local variables:
  mode:c
--- 159,1155 ----
     `emit_insn' takes the SEQUENCE apart and makes separate insns.  */
  DEF_RTL_EXPR(SEQUENCE, "sequence", "E", RTX_EXTRA)
  
  /* ----------------------------------------------------------------------
!    Top level constituents of INSN, JUMP_INSN and CALL_INSN.
     ---------------------------------------------------------------------- */
+    
+ /* Conditionally execute code.
+    Operand 0 is the condition that if true, the code is executed.
+    Operand 1 is the code to be executed (typically a SET). 
  
!    Semantics are that there are no side effects if the condition
!    is false.  This pattern is created automatically by the if_convert
!    pass run after reload or by target-specific splitters.  */
! DEF_RTL_EXPR(COND_EXEC, "cond_exec", "ee", RTX_EXTRA)
  
! /* Several operations to be done in parallel (perhaps under COND_EXEC).  */
! DEF_RTL_EXPR(PARALLEL, "parallel", "E", RTX_EXTRA)
  
! /* A string that is passed through to the assembler as input.
!      One can obviously pass comments through by using the
!      assembler comment syntax.
!      These occur in an insn all by themselves as the PATTERN.
!      They also appear inside an ASM_OPERANDS
!      as a convenient way to hold a string.  */
! DEF_RTL_EXPR(ASM_INPUT, "asm_input", "s", RTX_EXTRA)
  
! #ifdef USE_MAPPED_LOCATION
! /* An assembler instruction with operands.
!    1st operand is the instruction template.
!    2nd operand is the constraint for the output.
!    3rd operand is the number of the output this expression refers to.
!      When an insn stores more than one value, a separate ASM_OPERANDS
!      is made for each output; this integer distinguishes them.
!    4th is a vector of values of input operands.
!    5th is a vector of modes and constraints for the input operands.
!      Each element is an ASM_INPUT containing a constraint string
!      and whose mode indicates the mode of the input operand.
!    6th is the source line number.  */
! DEF_RTL_EXPR(ASM_OPERANDS, "asm_operands", "ssiEEi", RTX_EXTRA)
! #else
! /* An assembler instruction with operands.
!    1st operand is the instruction template.
!    2nd operand is the constraint for the output.
!    3rd operand is the number of the output this expression refers to.
!      When an insn stores more than one value, a separate ASM_OPERANDS
!      is made for each output; this integer distinguishes them.
!    4th is a vector of values of input operands.
!    5th is a vector of modes and constraints for the input operands.
!      Each element is an ASM_INPUT containing a constraint string
!      and whose mode indicates the mode of the input operand.
!    6th is the name of the containing source file.
!    7th is the source line number.  */
! DEF_RTL_EXPR(ASM_OPERANDS, "asm_operands", "ssiEEsi", RTX_EXTRA)
! #endif
  
! /* A machine-specific operation.
!    1st operand is a vector of operands being used by the operation so that
!      any needed reloads can be done.
!    2nd operand is a unique value saying which of a number of machine-specific
!      operations is to be performed.
!    (Note that the vector must be the first operand because of the way that
!    genrecog.c record positions within an insn.)
!    This can occur all by itself in a PATTERN, as a component of a PARALLEL,
!    or inside an expression.  */
! DEF_RTL_EXPR(UNSPEC, "unspec", "Ei", RTX_EXTRA)
  
! /* Similar, but a volatile operation and one which may trap.  */
! DEF_RTL_EXPR(UNSPEC_VOLATILE, "unspec_volatile", "Ei", RTX_EXTRA)
  
! /* Vector of addresses, stored as full words.  */
! /* Each element is a LABEL_REF to a CODE_LABEL whose address we want.  */
! DEF_RTL_EXPR(ADDR_VEC, "addr_vec", "E", RTX_EXTRA)
  
! /* Vector of address differences X0 - BASE, X1 - BASE, ...
!    First operand is BASE; the vector contains the X's.
!    The machine mode of this rtx says how much space to leave
!    for each difference and is adjusted by branch shortening if
!    CASE_VECTOR_SHORTEN_MODE is defined.
!    The third and fourth operands store the target labels with the
!    minimum and maximum addresses respectively.
!    The fifth operand stores flags for use by branch shortening.
!   Set at the start of shorten_branches:
!    min_align: the minimum alignment for any of the target labels.
!    base_after_vec: true iff BASE is after the ADDR_DIFF_VEC.
!    min_after_vec: true iff minimum addr target label is after the ADDR_DIFF_VEC.
!    max_after_vec: true iff maximum addr target label is after the ADDR_DIFF_VEC.
!    min_after_base: true iff minimum address target label is after BASE.
!    max_after_base: true iff maximum address target label is after BASE.
!   Set by the actual branch shortening process:
!    offset_unsigned: true iff offsets have to be treated as unsigned.
!    scale: scaling that is necessary to make offsets fit into the mode.
  
!    The third, fourth and fifth operands are only valid when
!    CASE_VECTOR_SHORTEN_MODE is defined, and only in an optimizing
!    compilations.  */
!      
! DEF_RTL_EXPR(ADDR_DIFF_VEC, "addr_diff_vec", "eEee0", RTX_EXTRA)
  
! /* Memory prefetch, with attributes supported on some targets.
!    Operand 1 is the address of the memory to fetch.
!    Operand 2 is 1 for a write access, 0 otherwise.
!    Operand 3 is the level of temporal locality; 0 means there is no
!    temporal locality and 1, 2, and 3 are for increasing levels of temporal
!    locality.
  
!    The attributes specified by operands 2 and 3 are ignored for targets
!    whose prefetch instructions do not support them.  */
! DEF_RTL_EXPR(PREFETCH, "prefetch", "eee", RTX_EXTRA)
  
! /* ----------------------------------------------------------------------
!    At the top level of an instruction (perhaps under PARALLEL).
!    ---------------------------------------------------------------------- */
  
! /* Assignment.
!    Operand 1 is the location (REG, MEM, PC, CC0 or whatever) assigned to.
!    Operand 2 is the value stored there.
!    ALL assignment must use SET.
!    Instructions that do multiple assignments must use multiple SET,
!    under PARALLEL.  */
! DEF_RTL_EXPR(SET, "set", "ee", RTX_EXTRA)
  
! /* Indicate something is used in a way that we don't want to explain.
!    For example, subroutine calls will use the register
!    in which the static chain is passed.  */
! DEF_RTL_EXPR(USE, "use", "e", RTX_EXTRA)
  
! /* Indicate something is clobbered in a way that we don't want to explain.
!    For example, subroutine calls will clobber some physical registers
!    (the ones that are by convention not saved).  */
! DEF_RTL_EXPR(CLOBBER, "clobber", "e", RTX_EXTRA)
  
! /* Call a subroutine.
!    Operand 1 is the address to call.
!    Operand 2 is the number of arguments.  */
  
! DEF_RTL_EXPR(CALL, "call", "ee", RTX_EXTRA)
  
! /* Return from a subroutine.  */
  
! DEF_RTL_EXPR(RETURN, "return", "", RTX_EXTRA)
  
! /* Conditional trap.
!    Operand 1 is the condition.
!    Operand 2 is the trap code.
!    For an unconditional trap, make the condition (const_int 1).  */
! DEF_RTL_EXPR(TRAP_IF, "trap_if", "ee", RTX_EXTRA)
  
! /* Placeholder for _Unwind_Resume before we know if a function call
!    or a branch is needed.  Operand 1 is the exception region from
!    which control is flowing.  */
! DEF_RTL_EXPR(RESX, "resx", "i", RTX_EXTRA)
  
! /* ----------------------------------------------------------------------
!    Primitive values for use in expressions.
!    ---------------------------------------------------------------------- */
  
! /* numeric integer constant */
! DEF_RTL_EXPR(CONST_INT, "const_int", "w", RTX_CONST_OBJ)
  
! /* numeric floating point constant.
!    Operands hold the value.  They are all 'w' and there may be from 2 to 6;
!    see real.h.  */
! DEF_RTL_EXPR(CONST_DOUBLE, "const_double", CONST_DOUBLE_FORMAT, RTX_CONST_OBJ)
  
! /* Describes a vector constant.  FIXME: Should be RTX_CONST_OBJ.  */
! DEF_RTL_EXPR(CONST_VECTOR, "const_vector", "E", RTX_EXTRA)
  
! /* String constant.  Used only in two places: attribute definitions
!    and dwarf2out.c's location descriptors.  DO NOT add more uses.  */
! DEF_RTL_EXPR(CONST_STRING, "const_string", "s", RTX_OBJ)
  
! /* This is used to encapsulate an expression whose value is constant
!    (such as the sum of a SYMBOL_REF and a CONST_INT) so that it will be
!    recognized as a constant operand rather than by arithmetic instructions.  */
  
! DEF_RTL_EXPR(CONST, "const", "e", RTX_CONST_OBJ)
  
! /* program counter.  Ordinary jumps are represented
!    by a SET whose first operand is (PC).  */
! DEF_RTL_EXPR(PC, "pc", "", RTX_OBJ)
  
! /* Used in the cselib routines to describe a value.  */
! DEF_RTL_EXPR(VALUE, "value", "0", RTX_OBJ)
  
! /* A register.  The "operand" is the register number, accessed with
!    the REGNO macro.  If this number is less than FIRST_PSEUDO_REGISTER
!    than a hardware register is being referred to.  The second operand
!    holds the original register number - this will be different for a
!    pseudo register that got turned into a hard register.
!    This rtx needs to have as many (or more) fields as a MEM, since we
!    can change REG rtx's into MEMs during reload.  */
! DEF_RTL_EXPR(REG, "reg", "i00", RTX_OBJ)
  
! /* A scratch register.  This represents a register used only within a
!    single insn.  It will be turned into a REG during register allocation
!    or reload unless the constraint indicates that the register won't be
!    needed, in which case it can remain a SCRATCH.  This code is
!    marked as having one operand so it can be turned into a REG.  */
! DEF_RTL_EXPR(SCRATCH, "scratch", "0", RTX_OBJ)
  
! /* One word of a multi-word value.
!    The first operand is the complete value; the second says which word.
!    The WORDS_BIG_ENDIAN flag controls whether word number 0
!    (as numbered in a SUBREG) is the most or least significant word.
  
!    This is also used to refer to a value in a different machine mode.
!    For example, it can be used to refer to a SImode value as if it were
!    Qimode, or vice versa.  Then the word number is always 0.  */
! DEF_RTL_EXPR(SUBREG, "subreg", "ei", RTX_EXTRA)
  
! /* This one-argument rtx is used for move instructions
!    that are guaranteed to alter only the low part of a destination.
!    Thus, (SET (SUBREG:HI (REG...)) (MEM:HI ...))
!    has an unspecified effect on the high part of REG,
!    but (SET (STRICT_LOW_PART (SUBREG:HI (REG...))) (MEM:HI ...))
!    is guaranteed to alter only the bits of REG that are in HImode.
  
!    The actual instruction used is probably the same in both cases,
!    but the register constraints may be tighter when STRICT_LOW_PART
!    is in use.  */
  
! DEF_RTL_EXPR(STRICT_LOW_PART, "strict_low_part", "e", RTX_EXTRA)
  
! /* (CONCAT a b) represents the virtual concatenation of a and b
!    to make a value that has as many bits as a and b put together.
!    This is used for complex values.  Normally it appears only
!    in DECL_RTLs and during RTL generation, but not in the insn chain.  */
! DEF_RTL_EXPR(CONCAT, "concat", "ee", RTX_OBJ)
  
! /* A memory location; operand is the address.  The second operand is the
!    alias set to which this MEM belongs.  We use `0' instead of `w' for this
!    field so that the field need not be specified in machine descriptions.  */
! DEF_RTL_EXPR(MEM, "mem", "e0", RTX_OBJ)
  
! /* Refers to the address of its argument.  This is only used in alias.c.  */
! DEF_RTL_EXPR(ADDRESS, "address", "e", RTX_EXTRA)
  
! /* Reference to an assembler label in the code for this function.
!    The operand is a CODE_LABEL found in the insn chain.
!    The unprinted fields 1 and 2 are used in flow.c for the
!    LABEL_NEXTREF and CONTAINING_INSN.  */
! DEF_RTL_EXPR(LABEL_REF, "label_ref", "u00", RTX_CONST_OBJ)
  
! /* Reference to a named label: 
!    Operand 0: label name
!    Operand 1: flags (see SYMBOL_FLAG_* in rtl.h)
!    Operand 2: tree from which this symbol is derived, or null.
!    This is either a DECL node, or some kind of constant.  */
! DEF_RTL_EXPR(SYMBOL_REF, "symbol_ref", "s00", RTX_CONST_OBJ)
  
! /* The condition code register is represented, in our imagination,
!    as a register holding a value that can be compared to zero.
!    In fact, the machine has already compared them and recorded the
!    results; but instructions that look at the condition code
!    pretend to be looking at the entire value and comparing it.  */
! DEF_RTL_EXPR(CC0, "cc0", "", RTX_OBJ)
  
  /* ----------------------------------------------------------------------
!    Expressions for operators in an rtl pattern
     ---------------------------------------------------------------------- */
  
! /* if_then_else.  This is used in representing ordinary
!    conditional jump instructions.
!      Operand:
!      0:  condition
!      1:  then expr
!      2:  else expr */
! DEF_RTL_EXPR(IF_THEN_ELSE, "if_then_else", "eee", RTX_TERNARY)
  
! /* Comparison, produces a condition code result.  */
! DEF_RTL_EXPR(COMPARE, "compare", "ee", RTX_BIN_ARITH)
  
! /* plus */
! DEF_RTL_EXPR(PLUS, "plus", "ee", RTX_COMM_ARITH)
  
! /* Operand 0 minus operand 1.  */
! DEF_RTL_EXPR(MINUS, "minus", "ee", RTX_BIN_ARITH)
  
! /* Minus operand 0.  */
! DEF_RTL_EXPR(NEG, "neg", "e", RTX_UNARY)
  
! DEF_RTL_EXPR(MULT, "mult", "ee", RTX_COMM_ARITH)
  
! /* Operand 0 divided by operand 1.  */
! DEF_RTL_EXPR(DIV, "div", "ee", RTX_BIN_ARITH)
! /* Remainder of operand 0 divided by operand 1.  */
! DEF_RTL_EXPR(MOD, "mod", "ee", RTX_BIN_ARITH)
  
! /* Unsigned divide and remainder.  */
! DEF_RTL_EXPR(UDIV, "udiv", "ee", RTX_BIN_ARITH)
! DEF_RTL_EXPR(UMOD, "umod", "ee", RTX_BIN_ARITH)
  
! /* Bitwise operations.  */
! DEF_RTL_EXPR(AND, "and", "ee", RTX_COMM_ARITH)
  
! DEF_RTL_EXPR(IOR, "ior", "ee", RTX_COMM_ARITH)
  
! DEF_RTL_EXPR(XOR, "xor", "ee", RTX_COMM_ARITH)
  
! DEF_RTL_EXPR(NOT, "not", "e", RTX_UNARY)
  
! /* Operand:
!      0:  value to be shifted.
!      1:  number of bits.  */
! DEF_RTL_EXPR(ASHIFT, "ashift", "ee", RTX_BIN_ARITH) /* shift left */
! DEF_RTL_EXPR(ROTATE, "rotate", "ee", RTX_BIN_ARITH) /* rotate left */
! DEF_RTL_EXPR(ASHIFTRT, "ashiftrt", "ee", RTX_BIN_ARITH) /* arithmetic shift right */
! DEF_RTL_EXPR(LSHIFTRT, "lshiftrt", "ee", RTX_BIN_ARITH) /* logical shift right */
! DEF_RTL_EXPR(ROTATERT, "rotatert", "ee", RTX_BIN_ARITH) /* rotate right */
  
! /* Minimum and maximum values of two operands.  We need both signed and
!    unsigned forms.  (We cannot use MIN for SMIN because it conflicts
!    with a macro of the same name.) */
  
! DEF_RTL_EXPR(SMIN, "smin", "ee", RTX_COMM_ARITH)
! DEF_RTL_EXPR(SMAX, "smax", "ee", RTX_COMM_ARITH)
! DEF_RTL_EXPR(UMIN, "umin", "ee", RTX_COMM_ARITH)
! DEF_RTL_EXPR(UMAX, "umax", "ee", RTX_COMM_ARITH)
  
! /* These unary operations are used to represent incrementation
!    and decrementation as they occur in memory addresses.
!    The amount of increment or decrement are not represented
!    because they can be understood from the machine-mode of the
!    containing MEM.  These operations exist in only two cases:
!    1. pushes onto the stack.
!    2. created automatically by the life_analysis pass in flow.c.  */
! DEF_RTL_EXPR(PRE_DEC, "pre_dec", "e", RTX_AUTOINC)
! DEF_RTL_EXPR(PRE_INC, "pre_inc", "e", RTX_AUTOINC)
! DEF_RTL_EXPR(POST_DEC, "post_dec", "e", RTX_AUTOINC)
! DEF_RTL_EXPR(POST_INC, "post_inc", "e", RTX_AUTOINC)
  
! /* These binary operations are used to represent generic address
!    side-effects in memory addresses, except for simple incrementation
!    or decrementation which use the above operations.  They are
!    created automatically by the life_analysis pass in flow.c.
!    The first operand is a REG which is used as the address.
!    The second operand is an expression that is assigned to the
!    register, either before (PRE_MODIFY) or after (POST_MODIFY)
!    evaluating the address.
!    Currently, the compiler can only handle second operands of the
!    form (plus (reg) (reg)) and (plus (reg) (const_int)), where
!    the first operand of the PLUS has to be the same register as
!    the first operand of the *_MODIFY.  */
! DEF_RTL_EXPR(PRE_MODIFY, "pre_modify", "ee", RTX_AUTOINC)
! DEF_RTL_EXPR(POST_MODIFY, "post_modify", "ee", RTX_AUTOINC)
  
! /* Comparison operations.  The ordered comparisons exist in two
!    flavors, signed and unsigned.  */
! DEF_RTL_EXPR(NE, "ne", "ee", RTX_COMM_COMPARE)
! DEF_RTL_EXPR(EQ, "eq", "ee", RTX_COMM_COMPARE)
! DEF_RTL_EXPR(GE, "ge", "ee", RTX_COMPARE)
! DEF_RTL_EXPR(GT, "gt", "ee", RTX_COMPARE)
! DEF_RTL_EXPR(LE, "le", "ee", RTX_COMPARE)
! DEF_RTL_EXPR(LT, "lt", "ee", RTX_COMPARE)
! DEF_RTL_EXPR(GEU, "geu", "ee", RTX_COMPARE)
! DEF_RTL_EXPR(GTU, "gtu", "ee", RTX_COMPARE)
! DEF_RTL_EXPR(LEU, "leu", "ee", RTX_COMPARE)
! DEF_RTL_EXPR(LTU, "ltu", "ee", RTX_COMPARE)
  
! /* Additional floating point unordered comparison flavors.  */
! DEF_RTL_EXPR(UNORDERED, "unordered", "ee", RTX_COMM_COMPARE)
! DEF_RTL_EXPR(ORDERED, "ordered", "ee", RTX_COMM_COMPARE)
  
! /* These are equivalent to unordered or ...  */
! DEF_RTL_EXPR(UNEQ, "uneq", "ee", RTX_COMM_COMPARE)
! DEF_RTL_EXPR(UNGE, "unge", "ee", RTX_COMPARE)
! DEF_RTL_EXPR(UNGT, "ungt", "ee", RTX_COMPARE)
! DEF_RTL_EXPR(UNLE, "unle", "ee", RTX_COMPARE)
! DEF_RTL_EXPR(UNLT, "unlt", "ee", RTX_COMPARE)
  
! /* This is an ordered NE, ie !UNEQ, ie false for NaN.  */
! DEF_RTL_EXPR(LTGT, "ltgt", "ee", RTX_COMM_COMPARE)
  
! /* Represents the result of sign-extending the sole operand.
!    The machine modes of the operand and of the SIGN_EXTEND expression
!    determine how much sign-extension is going on.  */
! DEF_RTL_EXPR(SIGN_EXTEND, "sign_extend", "e", RTX_UNARY)
  
! /* Similar for zero-extension (such as unsigned short to int).  */
! DEF_RTL_EXPR(ZERO_EXTEND, "zero_extend", "e", RTX_UNARY)
  
! /* Similar but here the operand has a wider mode.  */
! DEF_RTL_EXPR(TRUNCATE, "truncate", "e", RTX_UNARY)
  
! /* Similar for extending floating-point values (such as SFmode to DFmode).  */
! DEF_RTL_EXPR(FLOAT_EXTEND, "float_extend", "e", RTX_UNARY)
! DEF_RTL_EXPR(FLOAT_TRUNCATE, "float_truncate", "e", RTX_UNARY)
  
! /* Conversion of fixed point operand to floating point value.  */
! DEF_RTL_EXPR(FLOAT, "float", "e", RTX_UNARY)
  
! /* With fixed-point machine mode:
!    Conversion of floating point operand to fixed point value.
!    Value is defined only when the operand's value is an integer.
!    With floating-point machine mode (and operand with same mode):
!    Operand is rounded toward zero to produce an integer value
!    represented in floating point.  */
! DEF_RTL_EXPR(FIX, "fix", "e", RTX_UNARY)
  
! /* Conversion of unsigned fixed point operand to floating point value.  */
! DEF_RTL_EXPR(UNSIGNED_FLOAT, "unsigned_float", "e", RTX_UNARY)
  
! /* With fixed-point machine mode:
!    Conversion of floating point operand to *unsigned* fixed point value.
!    Value is defined only when the operand's value is an integer.  */
! DEF_RTL_EXPR(UNSIGNED_FIX, "unsigned_fix", "e", RTX_UNARY)
  
! /* Absolute value */
! DEF_RTL_EXPR(ABS, "abs", "e", RTX_UNARY)
  
! /* Square root */
! DEF_RTL_EXPR(SQRT, "sqrt", "e", RTX_UNARY)
  
! /* Find first bit that is set.
!    Value is 1 + number of trailing zeros in the arg.,
!    or 0 if arg is 0.  */
! DEF_RTL_EXPR(FFS, "ffs", "e", RTX_UNARY)
! 
! /* Count leading zeros.  */
! DEF_RTL_EXPR(CLZ, "clz", "e", RTX_UNARY)
! 
! /* Count trailing zeros.  */
! DEF_RTL_EXPR(CTZ, "ctz", "e", RTX_UNARY)
! 
! /* Population count (number of 1 bits).  */
! DEF_RTL_EXPR(POPCOUNT, "popcount", "e", RTX_UNARY)
! 
! /* Population parity (number of 1 bits modulo 2).  */
! DEF_RTL_EXPR(PARITY, "parity", "e", RTX_UNARY)
! 
! /* Reference to a signed bit-field of specified size and position.
!    Operand 0 is the memory unit (usually SImode or QImode) which
!    contains the field's first bit.  Operand 1 is the width, in bits.
!    Operand 2 is the number of bits in the memory unit before the
!    first bit of this field.
!    If BITS_BIG_ENDIAN is defined, the first bit is the msb and
!    operand 2 counts from the msb of the memory unit.
!    Otherwise, the first bit is the lsb and operand 2 counts from
!    the lsb of the memory unit.  */
! DEF_RTL_EXPR(SIGN_EXTRACT, "sign_extract", "eee", RTX_BITFIELD_OPS)
! 
! /* Similar for unsigned bit-field.  */
! DEF_RTL_EXPR(ZERO_EXTRACT, "zero_extract", "eee", RTX_BITFIELD_OPS)
! 
! /* For RISC machines.  These save memory when splitting insns.  */
! 
! /* HIGH are the high-order bits of a constant expression.  */
! DEF_RTL_EXPR(HIGH, "high", "e", RTX_CONST_OBJ)
! 
! /* LO_SUM is the sum of a register and the low-order bits
!    of a constant expression.  */
! DEF_RTL_EXPR(LO_SUM, "lo_sum", "ee", RTX_OBJ)
! 
! /* Describes a merge operation between two vector values.
!    Operands 0 and 1 are the vectors to be merged, operand 2 is a bitmask
!    that specifies where the parts of the result are taken from.  Set bits
!    indicate operand 0, clear bits indicate operand 1.  The parts are defined
!    by the mode of the vectors.  */
! DEF_RTL_EXPR(VEC_MERGE, "vec_merge", "eee", RTX_TERNARY)
! 
! /* Describes an operation that selects parts of a vector.
!    Operands 0 is the source vector, operand 1 is a PARALLEL that contains
!    a CONST_INT for each of the subparts of the result vector, giving the
!    number of the source subpart that should be stored into it.  */
! DEF_RTL_EXPR(VEC_SELECT, "vec_select", "ee", RTX_BIN_ARITH)
! 
! /* Describes a vector concat operation.  Operands 0 and 1 are the source
!    vectors, the result is a vector that is as long as operands 0 and 1
!    combined and is the concatenation of the two source vectors.  */
! DEF_RTL_EXPR(VEC_CONCAT, "vec_concat", "ee", RTX_BIN_ARITH)
! 
! /* Describes an operation that converts a small vector into a larger one by
!    duplicating the input values.  The output vector mode must have the same
!    submodes as the input vector mode, and the number of output parts must be
!    an integer multiple of the number of input parts.  */
! DEF_RTL_EXPR(VEC_DUPLICATE, "vec_duplicate", "e", RTX_UNARY)
       
! /* Addition with signed saturation */
! DEF_RTL_EXPR(SS_PLUS, "ss_plus", "ee", RTX_COMM_ARITH)
  
! /* Addition with unsigned saturation */
! DEF_RTL_EXPR(US_PLUS, "us_plus", "ee", RTX_COMM_ARITH)
  
! /* Operand 0 minus operand 1, with signed saturation.  */
! DEF_RTL_EXPR(SS_MINUS, "ss_minus", "ee", RTX_BIN_ARITH)
  
+ /* Operand 0 minus operand 1, with unsigned saturation.  */
+ DEF_RTL_EXPR(US_MINUS, "us_minus", "ee", RTX_BIN_ARITH)
+ 
+ /* Signed saturating truncate.  */
+ DEF_RTL_EXPR(SS_TRUNCATE, "ss_truncate", "e", RTX_UNARY)
+ 
+ /* Unsigned saturating truncate.  */
+ DEF_RTL_EXPR(US_TRUNCATE, "us_truncate", "e", RTX_UNARY)
+ 
+ #ifdef GENERATOR_FILE
  /* ----------------------------------------------------------------------
!    Expression types for machine descriptions.
!    These do not appear in actual rtl code in the compiler.
!    All such expressions must be at the end of this file so that
!    the code numbers assigned to rtl used in the compiler are consistent
!    between the compiler and the generator programs.
     ---------------------------------------------------------------------- */
  
! /* include a file */
  
! DEF_RTL_EXPR(INCLUDE, "include", "s", RTX_EXTRA)
  
! /* Appears only in machine descriptions.
!    Means use the function named by the second arg (the string)
!    as a predicate; if matched, store the structure that was matched
!    in the operand table at index specified by the first arg (the integer).
!    If the second arg is the null string, the structure is just stored.
  
!    A third string argument indicates to the register allocator restrictions
!    on where the operand can be allocated.
  
!    If the target needs no restriction on any instruction this field should
!    be the null string.
  
!    The string is prepended by:
!    '=' to indicate the operand is only written to.
!    '+' to indicate the operand is both read and written to.
  
!    Each character in the string represents an allocable class for an operand.
!    'g' indicates the operand can be any valid class.
!    'i' indicates the operand can be immediate (in the instruction) data.
!    'r' indicates the operand can be in a register.
!    'm' indicates the operand can be in memory.
!    'o' a subset of the 'm' class.  Those memory addressing modes that
!        can be offset at compile time (have a constant added to them).
  
!    Other characters indicate target dependent operand classes and
!    are described in each target's machine description.
  
!    For instructions with more than one operand, sets of classes can be
!    separated by a comma to indicate the appropriate multi-operand constraints.
!    There must be a 1 to 1 correspondence between these sets of classes in
!    all operands for an instruction.
!    */
! DEF_RTL_EXPR(MATCH_OPERAND, "match_operand", "iss", RTX_MATCH)
  
! /* Appears only in machine descriptions.
!    Means match a SCRATCH or a register.  When used to generate rtl, a
!    SCRATCH is generated.  As for MATCH_OPERAND, the mode specifies
!    the desired mode and the first argument is the operand number.
!    The second argument is the constraint.  */
! DEF_RTL_EXPR(MATCH_SCRATCH, "match_scratch", "is", RTX_MATCH)
  
! /* Appears only in machine descriptions.
!    Means match only something equal to what is stored in the operand table
!    at the index specified by the argument.  */
! DEF_RTL_EXPR(MATCH_DUP, "match_dup", "i", RTX_MATCH)
  
! /* Appears only in machine descriptions.
!    Means apply a predicate, AND match recursively the operands of the rtx.
!    Operand 0 is the operand-number, as in match_operand.
!    Operand 1 is a predicate to apply (as a string, a function name).
!    Operand 2 is a vector of expressions, each of which must match
!    one subexpression of the rtx this construct is matching.  */
! DEF_RTL_EXPR(MATCH_OPERATOR, "match_operator", "isE", RTX_MATCH)
  
! /* Appears only in machine descriptions.
!    Means to match a PARALLEL of arbitrary length.  The predicate is applied
!    to the PARALLEL and the initial expressions in the PARALLEL are matched.
!    Operand 0 is the operand-number, as in match_operand.
!    Operand 1 is a predicate to apply to the PARALLEL.
!    Operand 2 is a vector of expressions, each of which must match the 
!    corresponding element in the PARALLEL.  */
! DEF_RTL_EXPR(MATCH_PARALLEL, "match_parallel", "isE", RTX_MATCH)
  
! /* Appears only in machine descriptions.
!    Means match only something equal to what is stored in the operand table
!    at the index specified by the argument.  For MATCH_OPERATOR.  */
! DEF_RTL_EXPR(MATCH_OP_DUP, "match_op_dup", "iE", RTX_MATCH)
  
! /* Appears only in machine descriptions.
!    Means match only something equal to what is stored in the operand table
!    at the index specified by the argument.  For MATCH_PARALLEL.  */
! DEF_RTL_EXPR(MATCH_PAR_DUP, "match_par_dup", "iE", RTX_MATCH)
  
! /* Appears only in define_predicate/define_special predicate
!    expressions in a machine description.  Evaluates true only if the
!    operand has an RTX code from the set given by the argument (a
!    comma-separated list).  */
! DEF_RTL_EXPR(MATCH_CODE, "match_code", "s", RTX_MATCH)
  
! /* Appears only in define_predicate/define_special_predicate expressions
!    in a machine description.  The argument is a C expression to be injected
!    at this point in the predicate formula.  */
! DEF_RTL_EXPR(MATCH_TEST, "match_test", "s", RTX_MATCH)
  
! /* Appears only in machine descriptions.
!    Defines the pattern for one kind of instruction.
!    Operand:
!    0: names this instruction.
!       If the name is the null string, the instruction is in the
!       machine description just to be recognized, and will never be emitted by
!       the tree to rtl expander.
!    1: is the pattern.
!    2: is a string which is a C expression
!       giving an additional condition for recognizing this pattern.
!       A null string means no extra condition.
!    3: is the action to execute if this pattern is matched.
!       If this assembler code template starts with a * then it is a fragment of
!       C code to run to decide on a template to use.  Otherwise, it is the
!       template to use.
!    4: optionally, a vector of attributes for this insn.
!      */
! DEF_RTL_EXPR(DEFINE_INSN, "define_insn", "sEsTV", RTX_EXTRA)
  
! /* Definition of a peephole optimization.
!    1st operand: vector of insn patterns to match
!    2nd operand: C expression that must be true
!    3rd operand: template or C code to produce assembler output.
!    4: optionally, a vector of attributes for this insn.
!      */
! DEF_RTL_EXPR(DEFINE_PEEPHOLE, "define_peephole", "EsTV", RTX_EXTRA)
! 
! /* Definition of a split operation.
!    1st operand: insn pattern to match
!    2nd operand: C expression that must be true
!    3rd operand: vector of insn patterns to place into a SEQUENCE
!    4th operand: optionally, some C code to execute before generating the
! 	insns.  This might, for example, create some RTX's and store them in
! 	elements of `recog_data.operand' for use by the vector of
! 	insn-patterns.
! 	(`operands' is an alias here for `recog_data.operand').  */
! DEF_RTL_EXPR(DEFINE_SPLIT, "define_split", "EsES", RTX_EXTRA)
! 
! /* Definition of an insn and associated split.
!    This is the concatenation, with a few modifications, of a define_insn
!    and a define_split which share the same pattern.
!    Operand:
!    0: names this instruction.
!       If the name is the null string, the instruction is in the
!       machine description just to be recognized, and will never be emitted by
!       the tree to rtl expander.
!    1: is the pattern.
!    2: is a string which is a C expression
!       giving an additional condition for recognizing this pattern.
!       A null string means no extra condition.
!    3: is the action to execute if this pattern is matched.
!       If this assembler code template starts with a * then it is a fragment of
!       C code to run to decide on a template to use.  Otherwise, it is the
!       template to use.
!    4: C expression that must be true for split.  This may start with "&&"
!       in which case the split condition is the logical and of the insn 
!       condition and what follows the "&&" of this operand.
!    5: vector of insn patterns to place into a SEQUENCE
!    6: optionally, some C code to execute before generating the
! 	insns.  This might, for example, create some RTX's and store them in
! 	elements of `recog_data.operand' for use by the vector of
! 	insn-patterns.
! 	(`operands' is an alias here for `recog_data.operand').  
!    7: optionally, a vector of attributes for this insn.  */
! DEF_RTL_EXPR(DEFINE_INSN_AND_SPLIT, "define_insn_and_split", "sEsTsESV", RTX_EXTRA)
  
! /* Definition of an RTL peephole operation.
!    Follows the same arguments as define_split.  */
! DEF_RTL_EXPR(DEFINE_PEEPHOLE2, "define_peephole2", "EsES", RTX_EXTRA)
  
! /* Define how to generate multiple insns for a standard insn name.
!    1st operand: the insn name.
!    2nd operand: vector of insn-patterns.
! 	Use match_operand to substitute an element of `recog_data.operand'.
!    3rd operand: C expression that must be true for this to be available.
! 	This may not test any operands.
!    4th operand: Extra C code to execute before generating the insns.
! 	This might, for example, create some RTX's and store them in
! 	elements of `recog_data.operand' for use by the vector of
! 	insn-patterns.
! 	(`operands' is an alias here for `recog_data.operand').  */
! DEF_RTL_EXPR(DEFINE_EXPAND, "define_expand", "sEss", RTX_EXTRA)
!    
! /* Define a requirement for delay slots.
!    1st operand: Condition involving insn attributes that, if true,
! 	        indicates that the insn requires the number of delay slots
! 		shown.
!    2nd operand: Vector whose length is the three times the number of delay
! 		slots required.
! 	        Each entry gives three conditions, each involving attributes.
! 		The first must be true for an insn to occupy that delay slot
! 		location.  The second is true for all insns that can be
! 		annulled if the branch is true and the third is true for all
! 		insns that can be annulled if the branch is false. 
  
!    Multiple DEFINE_DELAYs may be present.  They indicate differing
!    requirements for delay slots.  */
! DEF_RTL_EXPR(DEFINE_DELAY, "define_delay", "eE", RTX_EXTRA)
  
! /* Define attribute computation for `asm' instructions.  */
! DEF_RTL_EXPR(DEFINE_ASM_ATTRIBUTES, "define_asm_attributes", "V", RTX_EXTRA)
  
! /* Definition of a conditional execution meta operation.  Automatically
!    generates new instances of DEFINE_INSN, selected by having attribute
!    "predicable" true.  The new pattern will contain a COND_EXEC and the
!    predicate at top-level.
  
!    Operand:
!    0: The predicate pattern.  The top-level form should match a
!       relational operator.  Operands should have only one alternative.
!    1: A C expression giving an additional condition for recognizing
!       the generated pattern.
!    2: A template or C code to produce assembler output.  */
! DEF_RTL_EXPR(DEFINE_COND_EXEC, "define_cond_exec", "Ess", RTX_EXTRA)
  
! /* Definition of an operand predicate.  The difference between
!    DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE is that genrecog will
!    not warn about a match_operand with no mode if it has a predicate
!    defined with DEFINE_SPECIAL_PREDICATE.
  
!    Operand:
!    0: The name of the predicate.
!    1: A boolean expression which computes whether or not the predicate
!       matches.  This expression can use IOR, AND, NOT, MATCH_OPERAND,
!       MATCH_CODE, and MATCH_TEST.  It must be specific enough that genrecog
!       can calculate the set of RTX codes that can possibly match.
!    2: A C function body which must return true for the predicate to match.
!       Optional.  Use this when the test is too complicated to fit into a
!       match_test expression.  */
! DEF_RTL_EXPR(DEFINE_PREDICATE, "define_predicate", "ses", RTX_EXTRA)
! DEF_RTL_EXPR(DEFINE_SPECIAL_PREDICATE, "define_special_predicate", "ses", RTX_EXTRA)
  
! /* ----------------------------------------------------------------------
!    Constructions for CPU pipeline description described by NDFAs.
!    These do not appear in actual rtl code in the compiler.
!    ---------------------------------------------------------------------- */
  
! /* (define_cpu_unit string [string]) describes cpu functional
!    units (separated by comma).
  
!    1st operand: Names of cpu functional units.
!    2nd operand: Name of automaton (see comments for DEFINE_AUTOMATON).
  
!    All define_reservations, define_cpu_units, and
!    define_query_cpu_units should have unique names which may not be
!    "nothing".  */
! DEF_RTL_EXPR(DEFINE_CPU_UNIT, "define_cpu_unit", "sS", RTX_EXTRA)
  
! /* (define_query_cpu_unit string [string]) describes cpu functional
!    units analogously to define_cpu_unit.  The reservation of such
!    units can be queried for automaton state.  */
! DEF_RTL_EXPR(DEFINE_QUERY_CPU_UNIT, "define_query_cpu_unit", "sS", RTX_EXTRA)
  
! /* (exclusion_set string string) means that each CPU functional unit
!    in the first string can not be reserved simultaneously with any
!    unit whose name is in the second string and vise versa.  CPU units
!    in the string are separated by commas.  For example, it is useful
!    for description CPU with fully pipelined floating point functional
!    unit which can execute simultaneously only single floating point
!    insns or only double floating point insns.  All CPU functional
!    units in a set should belong to the same automaton.  */
! DEF_RTL_EXPR(EXCLUSION_SET, "exclusion_set", "ss", RTX_EXTRA)
  
! /* (presence_set string string) means that each CPU functional unit in
!    the first string can not be reserved unless at least one of pattern
!    of units whose names are in the second string is reserved.  This is
!    an asymmetric relation.  CPU units or unit patterns in the strings
!    are separated by commas.  Pattern is one unit name or unit names
!    separated by white-spaces.
!  
!    For example, it is useful for description that slot1 is reserved
!    after slot0 reservation for a VLIW processor.  We could describe it
!    by the following construction
  
!       (presence_set "slot1" "slot0")
  
!    Or slot1 is reserved only after slot0 and unit b0 reservation.  In
!    this case we could write
  
!       (presence_set "slot1" "slot0 b0")
  
!    All CPU functional units in a set should belong to the same
!    automaton.  */
! DEF_RTL_EXPR(PRESENCE_SET, "presence_set", "ss", RTX_EXTRA)
  
! /* (final_presence_set string string) is analogous to `presence_set'.
!    The difference between them is when checking is done.  When an
!    instruction is issued in given automaton state reflecting all
!    current and planned unit reservations, the automaton state is
!    changed.  The first state is a source state, the second one is a
!    result state.  Checking for `presence_set' is done on the source
!    state reservation, checking for `final_presence_set' is done on the
!    result reservation.  This construction is useful to describe a
!    reservation which is actually two subsequent reservations.  For
!    example, if we use 
  
!       (presence_set "slot1" "slot0")
  
!    the following insn will be never issued (because slot1 requires
!    slot0 which is absent in the source state).
  
!       (define_reservation "insn_and_nop" "slot0 + slot1")
  
!    but it can be issued if we use analogous `final_presence_set'.  */
! DEF_RTL_EXPR(FINAL_PRESENCE_SET, "final_presence_set", "ss", RTX_EXTRA)
  
! /* (absence_set string string) means that each CPU functional unit in
!    the first string can be reserved only if each pattern of units
!    whose names are in the second string is not reserved.  This is an
!    asymmetric relation (actually exclusion set is analogous to this
!    one but it is symmetric).  CPU units or unit patterns in the string
!    are separated by commas.  Pattern is one unit name or unit names
!    separated by white-spaces.
  
!    For example, it is useful for description that slot0 can not be
!    reserved after slot1 or slot2 reservation for a VLIW processor.  We
!    could describe it by the following construction
  
!       (absence_set "slot2" "slot0, slot1")
  
!    Or slot2 can not be reserved if slot0 and unit b0 are reserved or
!    slot1 and unit b1 are reserved .  In this case we could write
  
!       (absence_set "slot2" "slot0 b0, slot1 b1")
  
!    All CPU functional units in a set should to belong the same
!    automaton.  */
! DEF_RTL_EXPR(ABSENCE_SET, "absence_set", "ss", RTX_EXTRA)
! 
! /* (final_absence_set string string) is analogous to `absence_set' but
!    checking is done on the result (state) reservation.  See comments
!    for `final_presence_set'.  */
! DEF_RTL_EXPR(FINAL_ABSENCE_SET, "final_absence_set", "ss", RTX_EXTRA)
! 
! /* (define_bypass number out_insn_names in_insn_names) names bypass
!    with given latency (the first number) from insns given by the first
!    string (see define_insn_reservation) into insns given by the second
!    string.  Insn names in the strings are separated by commas.  The
!    third operand is optional name of function which is additional
!    guard for the bypass.  The function will get the two insns as
!    parameters.  If the function returns zero the bypass will be
!    ignored for this case.  Additional guard is necessary to recognize
!    complicated bypasses, e.g. when consumer is load address.  */
! DEF_RTL_EXPR(DEFINE_BYPASS, "define_bypass", "issS", RTX_EXTRA)
  
! /* (define_automaton string) describes names of automata generated and
!    used for pipeline hazards recognition.  The names are separated by
!    comma.  Actually it is possibly to generate the single automaton
!    but unfortunately it can be very large.  If we use more one
!    automata, the summary size of the automata usually is less than the
!    single one.  The automaton name is used in define_cpu_unit and
!    define_query_cpu_unit.  All automata should have unique names.  */
! DEF_RTL_EXPR(DEFINE_AUTOMATON, "define_automaton", "s", RTX_EXTRA)
  
! /* (automata_option string) describes option for generation of
!    automata.  Currently there are the following options:
  
!    o "no-minimization" which makes no minimization of automata.  This
!      is only worth to do when we are debugging the description and
!      need to look more accurately at reservations of states.
  
!    o "time" which means printing additional time statistics about
!       generation of automata.
!   
!    o "v" which means generation of file describing the result
!      automata.  The file has suffix `.dfa' and can be used for the
!      description verification and debugging.
  
!    o "w" which means generation of warning instead of error for
!      non-critical errors.
  
!    o "ndfa" which makes nondeterministic finite state automata.
  
!    o "progress" which means output of a progress bar showing how many
!      states were generated so far for automaton being processed.  */
! DEF_RTL_EXPR(AUTOMATA_OPTION, "automata_option", "s", RTX_EXTRA)
  
! /* (define_reservation string string) names reservation (the first
!    string) of cpu functional units (the 2nd string).  Sometimes unit
!    reservations for different insns contain common parts.  In such
!    case, you can describe common part and use its name (the 1st
!    parameter) in regular expression in define_insn_reservation.  All
!    define_reservations, define_cpu_units, and define_query_cpu_units
!    should have unique names which may not be "nothing".  */
! DEF_RTL_EXPR(DEFINE_RESERVATION, "define_reservation", "ss", RTX_EXTRA)
  
! /* (define_insn_reservation name default_latency condition regexpr)
!    describes reservation of cpu functional units (the 3nd operand) for
!    instruction which is selected by the condition (the 2nd parameter).
!    The first parameter is used for output of debugging information.
!    The reservations are described by a regular expression according
!    the following syntax:
  
!        regexp = regexp "," oneof
!               | oneof
  
!        oneof = oneof "|" allof
!              | allof
  
!        allof = allof "+" repeat
!              | repeat
!  
!        repeat = element "*" number
!               | element
  
!        element = cpu_function_unit_name
!                | reservation_name
!                | result_name
!                | "nothing"
!                | "(" regexp ")"
  
!        1. "," is used for describing start of the next cycle in
!        reservation.
  
!        2. "|" is used for describing the reservation described by the
!        first regular expression *or* the reservation described by the
!        second regular expression *or* etc.
  
!        3. "+" is used for describing the reservation described by the
!        first regular expression *and* the reservation described by the
!        second regular expression *and* etc.
  
!        4. "*" is used for convenience and simply means sequence in
!        which the regular expression are repeated NUMBER times with
!        cycle advancing (see ",").
  
!        5. cpu functional unit name which means its reservation.
  
!        6. reservation name -- see define_reservation.
  
!        7. string "nothing" means no units reservation.  */
  
! DEF_RTL_EXPR(DEFINE_INSN_RESERVATION, "define_insn_reservation", "sies", RTX_EXTRA)
  
! /* ----------------------------------------------------------------------
!    Expressions used for insn attributes.  These also do not appear in
!    actual rtl code in the compiler.
!    ---------------------------------------------------------------------- */
  
! /* Definition of an insn attribute.
!    1st operand: name of the attribute
!    2nd operand: comma-separated list of possible attribute values
!    3rd operand: expression for the default value of the attribute.  */
! DEF_RTL_EXPR(DEFINE_ATTR, "define_attr", "sse", RTX_EXTRA)
  
! /* Marker for the name of an attribute.  */
! DEF_RTL_EXPR(ATTR, "attr", "s", RTX_EXTRA)
  
! /* For use in the last (optional) operand of DEFINE_INSN or DEFINE_PEEPHOLE and
!    in DEFINE_ASM_INSN to specify an attribute to assign to insns matching that
!    pattern.
  
!    (set_attr "name" "value") is equivalent to
!    (set (attr "name") (const_string "value"))  */
! DEF_RTL_EXPR(SET_ATTR, "set_attr", "ss", RTX_EXTRA)
  
! /* In the last operand of DEFINE_INSN and DEFINE_PEEPHOLE, this can be used to
!    specify that attribute values are to be assigned according to the
!    alternative matched.
  
!    The following three expressions are equivalent:
  
!    (set (attr "att") (cond [(eq_attrq "alternative" "1") (const_string "a1")
! 			    (eq_attrq "alternative" "2") (const_string "a2")]
! 			   (const_string "a3")))
!    (set_attr_alternative "att" [(const_string "a1") (const_string "a2")
! 				 (const_string "a3")])
!    (set_attr "att" "a1,a2,a3")
!  */
! DEF_RTL_EXPR(SET_ATTR_ALTERNATIVE, "set_attr_alternative", "sE", RTX_EXTRA)
  
! /* A conditional expression true if the value of the specified attribute of
!    the current insn equals the specified value.  The first operand is the
!    attribute name and the second is the comparison value.  */
! DEF_RTL_EXPR(EQ_ATTR, "eq_attr", "ss", RTX_EXTRA)
  
! /* A special case of the above representing a set of alternatives.  The first
!    operand is bitmap of the set, the second one is the default value.  */
! DEF_RTL_EXPR(EQ_ATTR_ALT, "eq_attr_alt", "ii", RTX_EXTRA)
  
! /* A conditional expression which is true if the specified flag is
!    true for the insn being scheduled in reorg.
  
!    genattr.c defines the following flags which can be tested by
!    (attr_flag "foo") expressions in eligible_for_delay.
  
!    forward, backward, very_likely, likely, very_unlikely, and unlikely.  */
  
! DEF_RTL_EXPR (ATTR_FLAG, "attr_flag", "s", RTX_EXTRA)
  
! /* General conditional. The first operand is a vector composed of pairs of
!    expressions.  The first element of each pair is evaluated, in turn.
!    The value of the conditional is the second expression of the first pair
!    whose first expression evaluates nonzero.  If none of the expressions is
!    true, the second operand will be used as the value of the conditional.
! 
!    [This should be replaced with use of IF_THEN_ELSE.
!     ??? still true in light of being used exclusively by genattrtab?]  */
! DEF_RTL_EXPR(COND, "cond", "Ee", RTX_EXTRA)
  
+ #endif
  /*
  Local variables:
  mode:c


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]