OSDN Git Service

2002-03-05 Tom Tromey <tromey@redhat.com>
[pf3gnuchains/gcc-fork.git] / gcc / config / stormy16 / stormy16.h
1 /* Xstormy16 cpu description.
2    Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002
3    Free Software Foundation, Inc.
4    Contributed by Red Hat, Inc.
5
6 This file is part of GNU CC.
7
8 GNU CC is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2, or (at your option)
11 any later version.
12
13 GNU CC is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with GNU CC; see the file COPYING.  If not, write to
20 the Free Software Foundation, 59 Temple Place - Suite 330,
21 Boston, MA 02111-1307, USA.  */
22
23 \f
24 /* Driver configuration */
25
26 /* Defined in svr4.h.  */
27 /* #define SWITCH_TAKES_ARG(CHAR) */
28
29 /* Defined in svr4.h.  */
30 /* #define WORD_SWITCH_TAKES_ARG(NAME) */
31
32 /* Defined in svr4.h.  */
33 #undef ASM_SPEC
34 #define ASM_SPEC ""
35
36 /* Defined in svr4.h.  */
37 /* #define ASM_FINAL_SPEC "" */
38
39 /* Defined in svr4.h.  */
40 /* #define LINK_SPEC "" */
41
42 /* For xstormy16:
43    - If -msim is specified, everything is built and linked as for the sim.
44    - If -T is specified, that linker script is used, and it should provide
45      appropriate libraries.
46    - If neither is specified, everything is built as for the sim, but no
47      I/O support is assumed.
48
49 */
50 #undef LIB_SPEC
51 #define LIB_SPEC "-( -lc %{msim:-lsim}%{!msim:%{!T*:-lnosys}} -)"
52
53 /* Defined in svr4.h.  */
54 #undef STARTFILE_SPEC
55 #define STARTFILE_SPEC "crt0.o%s crti.o%s crtbegin.o%s"
56
57 /* Defined in svr4.h.  */
58 #undef ENDFILE_SPEC
59 #define ENDFILE_SPEC "crtend.o%s crtn.o%s"
60
61 /* Defined in svr4.h for host compilers.  */
62 /* #define MD_EXEC_PREFIX "" */
63
64 /* Defined in svr4.h for host compilers.  */
65 /* #define MD_STARTFILE_PREFIX "" */
66
67 \f
68 /* Run-time target specifications */
69
70 #define CPP_PREDEFINES "-Dxstormy16 -Amachine=xstormy16"
71
72 /* This declaration should be present.  */
73 extern int target_flags;
74
75 #define TARGET_SWITCHES                                 \
76   {{ "sim", 0, "Provide libraries for the simulator" }, \
77    { "", 0, "" }}
78
79 #define TARGET_VERSION fprintf (stderr, " (xstormy16 cpu core)");
80
81 #define CAN_DEBUG_WITHOUT_FP
82
83 \f
84 /* Storage Layout */
85
86 #define BITS_BIG_ENDIAN 1
87
88 #define BYTES_BIG_ENDIAN 0
89
90 #define WORDS_BIG_ENDIAN 0
91
92 #define UNITS_PER_WORD 2
93
94 #define PROMOTE_MODE(MODE,UNSIGNEDP,TYPE)                               \
95 do {                                                                    \
96   if (GET_MODE_CLASS (MODE) == MODE_INT                                 \
97       && GET_MODE_SIZE (MODE) < 2)                                      \
98     (MODE) = HImode;                                                    \
99 } while (0)
100
101 #define PROMOTE_FUNCTION_ARGS 1
102
103 #define PROMOTE_FUNCTION_RETURN 1
104
105 #define PARM_BOUNDARY 16
106
107 #define STACK_BOUNDARY 16
108
109 #define FUNCTION_BOUNDARY 16
110
111 #define BIGGEST_ALIGNMENT 16
112
113 /* Defined in svr4.h.  */
114 /* #define MAX_OFILE_ALIGNMENT */
115
116 #define DATA_ALIGNMENT(TYPE, ALIGN)             \
117   (TREE_CODE (TYPE) == ARRAY_TYPE               \
118    && TYPE_MODE (TREE_TYPE (TYPE)) == QImode    \
119    && (ALIGN) < BITS_PER_WORD ? BITS_PER_WORD : (ALIGN))
120
121 #define CONSTANT_ALIGNMENT(EXP, ALIGN)  \
122   (TREE_CODE (EXP) == STRING_CST        \
123    && (ALIGN) < BITS_PER_WORD ? BITS_PER_WORD : (ALIGN))
124
125 #define STRICT_ALIGNMENT 1
126
127 /* Defined in svr4.h.  */
128 #define PCC_BITFIELD_TYPE_MATTERS 1
129 \f
130 /* Layout of Source Language Data Types */
131
132 #define INT_TYPE_SIZE 16
133
134 #define SHORT_TYPE_SIZE 16
135
136 #define LONG_TYPE_SIZE 32
137
138 #define LONG_LONG_TYPE_SIZE 64
139
140 #define FLOAT_TYPE_SIZE 32
141
142 #define DOUBLE_TYPE_SIZE 64
143
144 #define LONG_DOUBLE_TYPE_SIZE 64
145
146 #define DEFAULT_SIGNED_CHAR 0
147
148 /* Defined in svr4.h.  */
149 #define SIZE_TYPE "unsigned int"
150
151 /* Defined in svr4.h.  */
152 #define PTRDIFF_TYPE "int"
153
154 /* Defined in svr4.h, to "long int".  */
155 /* #define WCHAR_TYPE "long int" */
156
157 /* Defined in svr4.h.  */
158 #undef WCHAR_TYPE_SIZE
159 #define WCHAR_TYPE_SIZE 32
160
161 /* Define this macro if the type of Objective-C selectors should be `int'.
162
163    If this macro is not defined, then selectors should have the type `struct
164    objc_selector *'.  */
165 /* #define OBJC_INT_SELECTORS */
166
167 \f
168 /* Register Basics */
169
170 /* Number of hardware registers known to the compiler.  They receive numbers 0
171    through `FIRST_PSEUDO_REGISTER-1'; thus, the first pseudo register's number
172    really is assigned the number `FIRST_PSEUDO_REGISTER'.  */
173 #define FIRST_PSEUDO_REGISTER 19
174
175 /* An initializer that says which registers are used for fixed purposes all
176    throughout the compiled code and are therefore not available for general
177    allocation.  These would include the stack pointer, the frame pointer
178    (except on machines where that can be used as a general register when no
179    frame pointer is needed), the program counter on machines where that is
180    considered one of the addressable registers, and any other numbered register
181    with a standard use.
182
183    This information is expressed as a sequence of numbers, separated by commas
184    and surrounded by braces.  The Nth number is 1 if register N is fixed, 0
185    otherwise.
186
187    The table initialized from this macro, and the table initialized by the
188    following one, may be overridden at run time either automatically, by the
189    actions of the macro `CONDITIONAL_REGISTER_USAGE', or by the user with the
190    command options `-ffixed-REG', `-fcall-used-REG' and `-fcall-saved-REG'.  */
191 #define FIXED_REGISTERS \
192   { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1 }
193
194 /* Like `FIXED_REGISTERS' but has 1 for each register that is clobbered (in
195    general) by function calls as well as for fixed registers.  This macro
196    therefore identifies the registers that are not available for general
197    allocation of values that must live across function calls.
198
199    If a register has 0 in `CALL_USED_REGISTERS', the compiler automatically
200    saves it on function entry and restores it on function exit, if the register
201    is used within the function.  */
202 #define CALL_USED_REGISTERS \
203   { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1 }
204
205 /* Zero or more C statements that may conditionally modify two variables
206    `fixed_regs' and `call_used_regs' (both of type `char []') after they have
207    been initialized from the two preceding macros.
208
209    This is necessary in case the fixed or call-clobbered registers depend on
210    target flags.
211
212    You need not define this macro if it has no work to do.
213
214    If the usage of an entire class of registers depends on the target flags,
215    you may indicate this to GCC by using this macro to modify `fixed_regs' and
216    `call_used_regs' to 1 for each of the registers in the classes which should
217    not be used by GCC.  Also define the macro `REG_CLASS_FROM_LETTER' to return
218    `NO_REGS' if it is called with a letter for a class that shouldn't be used.
219
220    (However, if this class is not included in `GENERAL_REGS' and all of the
221    insn patterns whose constraints permit this class are controlled by target
222    switches, then GCC will automatically avoid using these registers when the
223    target switches are opposed to them.)  */
224 /* #define CONDITIONAL_REGISTER_USAGE */
225
226 /* If this macro is defined and has a nonzero value, it means that `setjmp' and
227    related functions fail to save the registers, or that `longjmp' fails to
228    restore them.  To compensate, the compiler avoids putting variables in
229    registers in functions that use `setjmp'.  */
230 /* #define NON_SAVING_SETJMP */
231
232 /* Define this macro if the target machine has register windows.  This C
233    expression returns the register number as seen by the called function
234    corresponding to the register number OUT as seen by the calling function.
235    Return OUT if register number OUT is not an outbound register.  */
236 /* #define INCOMING_REGNO(OUT) */
237
238 /* Define this macro if the target machine has register windows.  This C
239    expression returns the register number as seen by the calling function
240    corresponding to the register number IN as seen by the called function.
241    Return IN if register number IN is not an inbound register.  */
242 /* #define OUTGOING_REGNO(IN) */
243
244 \f
245 /* Order of allocation of registers */
246
247 /* If defined, an initializer for a vector of integers, containing the numbers
248    of hard registers in the order in which GNU CC should prefer to use them
249    (from most preferred to least).
250
251    If this macro is not defined, registers are used lowest numbered first (all
252    else being equal).
253
254    One use of this macro is on machines where the highest numbered registers
255    must always be saved and the save-multiple-registers instruction supports
256    only sequences of consecutive registers.  On such machines, define
257    `REG_ALLOC_ORDER' to be an initializer that lists the highest numbered
258    allocatable register first.  */
259 #define REG_ALLOC_ORDER { 7, 6, 5, 4, 3, 2, 1, 0, 9, 8, 10, 11, 12, 13, 14, 15, 16 }
260
261 /* A C statement (sans semicolon) to choose the order in which to allocate hard
262    registers for pseudo-registers local to a basic block.
263
264    Store the desired register order in the array `reg_alloc_order'.  Element 0
265    should be the register to allocate first; element 1, the next register; and
266    so on.
267
268    The macro body should not assume anything about the contents of
269    `reg_alloc_order' before execution of the macro.
270
271    On most machines, it is not necessary to define this macro.  */
272 /* #define ORDER_REGS_FOR_LOCAL_ALLOC */
273
274 \f
275 /* How Values Fit in Registers */
276
277 /* A C expression for the number of consecutive hard registers, starting at
278    register number REGNO, required to hold a value of mode MODE.
279
280    On a machine where all registers are exactly one word, a suitable definition
281    of this macro is
282
283         #define HARD_REGNO_NREGS(REGNO, MODE)            \
284            ((GET_MODE_SIZE (MODE) + UNITS_PER_WORD - 1)  \
285             / UNITS_PER_WORD))  */
286 #define HARD_REGNO_NREGS(REGNO, MODE)                           \
287   ((GET_MODE_SIZE (MODE) + UNITS_PER_WORD - 1) / UNITS_PER_WORD)
288
289 /* A C expression that is nonzero if it is permissible to store a value of mode
290    MODE in hard register number REGNO (or in several registers starting with
291    that one).  For a machine where all registers are equivalent, a suitable
292    definition is
293
294         #define HARD_REGNO_MODE_OK(REGNO, MODE) 1
295
296    It is not necessary for this macro to check for the numbers of fixed
297    registers, because the allocation mechanism considers them to be always
298    occupied.
299
300    On some machines, double-precision values must be kept in even/odd register
301    pairs.  The way to implement that is to define this macro to reject odd
302    register numbers for such modes.
303
304    The minimum requirement for a mode to be OK in a register is that the
305    `movMODE' instruction pattern support moves between the register and any
306    other hard register for which the mode is OK; and that moving a value into
307    the register and back out not alter it.
308
309    Since the same instruction used to move `SImode' will work for all narrower
310    integer modes, it is not necessary on any machine for `HARD_REGNO_MODE_OK'
311    to distinguish between these modes, provided you define patterns `movhi',
312    etc., to take advantage of this.  This is useful because of the interaction
313    between `HARD_REGNO_MODE_OK' and `MODES_TIEABLE_P'; it is very desirable for
314    all integer modes to be tieable.
315
316    Many machines have special registers for floating point arithmetic.  Often
317    people assume that floating point machine modes are allowed only in floating
318    point registers.  This is not true.  Any registers that can hold integers
319    can safely *hold* a floating point machine mode, whether or not floating
320    arithmetic can be done on it in those registers.  Integer move instructions
321    can be used to move the values.
322
323    On some machines, though, the converse is true: fixed-point machine modes
324    may not go in floating registers.  This is true if the floating registers
325    normalize any value stored in them, because storing a non-floating value
326    there would garble it.  In this case, `HARD_REGNO_MODE_OK' should reject
327    fixed-point machine modes in floating registers.  But if the floating
328    registers do not automatically normalize, if you can store any bit pattern
329    in one and retrieve it unchanged without a trap, then any machine mode may
330    go in a floating register, so you can define this macro to say so.
331
332    The primary significance of special floating registers is rather that they
333    are the registers acceptable in floating point arithmetic instructions.
334    However, this is of no concern to `HARD_REGNO_MODE_OK'.  You handle it by
335    writing the proper constraints for those instructions.
336
337    On some machines, the floating registers are especially slow to access, so
338    that it is better to store a value in a stack frame than in such a register
339    if floating point arithmetic is not being done.  As long as the floating
340    registers are not in class `GENERAL_REGS', they will not be used unless some
341    pattern's constraint asks for one.  */
342 #define HARD_REGNO_MODE_OK(REGNO, MODE) ((REGNO) != 16 || (MODE) == BImode)
343
344 /* A C expression that is nonzero if it is desirable to choose register
345    allocation so as to avoid move instructions between a value of mode MODE1
346    and a value of mode MODE2.
347
348    If `HARD_REGNO_MODE_OK (R, MODE1)' and `HARD_REGNO_MODE_OK (R, MODE2)' are
349    ever different for any R, then `MODES_TIEABLE_P (MODE1, MODE2)' must be
350    zero.  */
351 #define MODES_TIEABLE_P(MODE1, MODE2) ((MODE1) != BImode && (MODE2) != BImode)
352
353 /* Define this macro if the compiler should avoid copies to/from CCmode
354    registers.  You should only define this macro if support fo copying to/from
355    CCmode is incomplete.  */
356 /* #define AVOID_CCMODE_COPIES */
357
358 \f
359 /* Handling Leaf Functions */
360
361 /* A C initializer for a vector, indexed by hard register number, which
362    contains 1 for a register that is allowable in a candidate for leaf function
363    treatment.
364
365    If leaf function treatment involves renumbering the registers, then the
366    registers marked here should be the ones before renumbering--those that GNU
367    CC would ordinarily allocate.  The registers which will actually be used in
368    the assembler code, after renumbering, should not be marked with 1 in this
369    vector.
370
371    Define this macro only if the target machine offers a way to optimize the
372    treatment of leaf functions.  */
373 /* #define LEAF_REGISTERS */
374
375 /* A C expression whose value is the register number to which REGNO should be
376    renumbered, when a function is treated as a leaf function.
377
378    If REGNO is a register number which should not appear in a leaf function
379    before renumbering, then the expression should yield -1, which will cause
380    the compiler to abort.
381
382    Define this macro only if the target machine offers a way to optimize the
383    treatment of leaf functions, and registers need to be renumbered to do this.  */
384 /* #define LEAF_REG_REMAP(REGNO) */
385
386 \f
387 /* Register Classes */
388
389 /* An enumeral type that must be defined with all the register class names as
390    enumeral values.  `NO_REGS' must be first.  `ALL_REGS' must be the last
391    register class, followed by one more enumeral value, `LIM_REG_CLASSES',
392    which is not a register class but rather tells how many classes there are.
393
394    Each register class has a number, which is the value of casting the class
395    name to type `int'.  The number serves as an index in many of the tables
396    described below.  */
397 enum reg_class
398 {
399   NO_REGS,
400   R0_REGS,
401   R1_REGS,
402   TWO_REGS,
403   R2_REGS,
404   EIGHT_REGS,
405   R8_REGS,
406   ICALL_REGS,
407   GENERAL_REGS,
408   CARRY_REGS,
409   ALL_REGS,
410   LIM_REG_CLASSES
411 };
412
413 /* The number of distinct register classes, defined as follows:
414
415         #define N_REG_CLASSES (int) LIM_REG_CLASSES  */
416 #define N_REG_CLASSES ((int) LIM_REG_CLASSES)
417
418 /* An initializer containing the names of the register classes as C string
419    constants.  These names are used in writing some of the debugging dumps.  */
420 #define REG_CLASS_NAMES                         \
421 {                                               \
422   "NO_REGS",                                    \
423   "R0_REGS",                                    \
424   "R1_REGS",                                    \
425   "TWO_REGS",                                   \
426   "R2_REGS",                                    \
427   "EIGHT_REGS",                                 \
428   "R8_REGS",                                    \
429   "ICALL_REGS",                                 \
430   "GENERAL_REGS",                               \
431   "CARRY_REGS",                                 \
432   "ALL_REGS"                                    \
433 }
434
435 /* An initializer containing the contents of the register classes, as integers
436    which are bit masks.  The Nth integer specifies the contents of class N.
437    The way the integer MASK is interpreted is that register R is in the class
438    if `MASK & (1 << R)' is 1.
439
440    When the machine has more than 32 registers, an integer does not suffice.
441    Then the integers are replaced by sub-initializers, braced groupings
442    containing several integers.  Each sub-initializer must be suitable as an
443    initializer for the type `HARD_REG_SET' which is defined in
444    `hard-reg-set.h'.  */
445 #define REG_CLASS_CONTENTS                      \
446 {                                               \
447   { 0x00000 },                                  \
448   { 0x00001 },                                  \
449   { 0x00002 },                                  \
450   { 0x00003 },                                  \
451   { 0x00004 },                                  \
452   { 0x000FF },                                  \
453   { 0x00100 },                                  \
454   { 0x00300 },                                  \
455   { 0x6FFFF },                                  \
456   { 0x10000 },                                  \
457   { (1 << FIRST_PSEUDO_REGISTER) - 1 }          \
458 }
459
460 /* A C expression whose value is a register class containing hard register
461    REGNO.  In general there is more than one such class; choose a class which
462    is "minimal", meaning that no smaller class also contains the register.  */
463 #define REGNO_REG_CLASS(REGNO)                  \
464   ((REGNO) == 0   ? R0_REGS                     \
465    : (REGNO) == 1 ? R1_REGS                     \
466    : (REGNO) == 2 ? R2_REGS                     \
467    : (REGNO) < 8  ? EIGHT_REGS                  \
468    : (REGNO) == 8 ? R8_REGS                     \
469    : (REGNO) == 16 ? CARRY_REGS                 \
470    : (REGNO) <= 18 ? GENERAL_REGS               \
471    : ALL_REGS)
472
473 /* A macro whose definition is the name of the class to which a valid base
474    register must belong.  A base register is one used in an address which is
475    the register value plus a displacement.  */
476 #define BASE_REG_CLASS GENERAL_REGS
477
478 /* A macro whose definition is the name of the class to which a valid index
479    register must belong.  An index register is one used in an address where its
480    value is either multiplied by a scale factor or added to another register
481    (as well as added to a displacement).  */
482 #define INDEX_REG_CLASS GENERAL_REGS
483
484 /* A C expression which defines the machine-dependent operand constraint
485    letters for register classes.  If CHAR is such a letter, the value should be
486    the register class corresponding to it.  Otherwise, the value should be
487    `NO_REGS'.  The register letter `r', corresponding to class `GENERAL_REGS',
488    will not be passed to this macro; you do not need to handle it.
489
490    The following letters are unavailable, due to being used as
491    constraints:
492         '0'..'9'
493         '<', '>'
494         'E', 'F', 'G', 'H'
495         'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P'
496         'Q', 'R', 'S', 'T', 'U'
497         'V', 'X'
498         'g', 'i', 'm', 'n', 'o', 'p', 'r', 's' */
499
500 #define REG_CLASS_FROM_LETTER(CHAR)             \
501  (  (CHAR) == 'a' ? R0_REGS                     \
502   : (CHAR) == 'b' ? R1_REGS                     \
503   : (CHAR) == 'c' ? R2_REGS                     \
504   : (CHAR) == 'd' ? R8_REGS                     \
505   : (CHAR) == 'e' ? EIGHT_REGS                  \
506   : (CHAR) == 't' ? TWO_REGS                    \
507   : (CHAR) == 'y' ? CARRY_REGS                  \
508   : (CHAR) == 'z' ? ICALL_REGS                  \
509   : NO_REGS)
510
511 /* A C expression which is nonzero if register number NUM is suitable for use
512    as a base register in operand addresses.  It may be either a suitable hard
513    register or a pseudo register that has been allocated such a hard register.  */
514 #define REGNO_OK_FOR_BASE_P(NUM) 1
515
516 /* A C expression which is nonzero if register number NUM is suitable for use
517    as an index register in operand addresses.  It may be either a suitable hard
518    register or a pseudo register that has been allocated such a hard register.
519
520    The difference between an index register and a base register is that the
521    index register may be scaled.  If an address involves the sum of two
522    registers, neither one of them scaled, then either one may be labeled the
523    "base" and the other the "index"; but whichever labeling is used must fit
524    the machine's constraints of which registers may serve in each capacity.
525    The compiler will try both labelings, looking for one that is valid, and
526    will reload one or both registers only if neither labeling works.  */
527 #define REGNO_OK_FOR_INDEX_P(NUM) REGNO_OK_FOR_BASE_P (NUM)
528
529 /* A C expression that places additional restrictions on the register class to
530    use when it is necessary to copy value X into a register in class CLASS.
531    The value is a register class; perhaps CLASS, or perhaps another, smaller
532    class.  On many machines, the following definition is safe:
533
534         #define PREFERRED_RELOAD_CLASS(X,CLASS) CLASS
535
536    Sometimes returning a more restrictive class makes better code.  For
537    example, on the 68000, when X is an integer constant that is in range for a
538    `moveq' instruction, the value of this macro is always `DATA_REGS' as long
539    as CLASS includes the data registers.  Requiring a data register guarantees
540    that a `moveq' will be used.
541
542    If X is a `const_double', by returning `NO_REGS' you can force X into a
543    memory constant.  This is useful on certain machines where immediate
544    floating values cannot be loaded into certain kinds of registers.
545
546    This declaration must be present.  */
547 #define PREFERRED_RELOAD_CLASS(X, CLASS) \
548   xstormy16_preferred_reload_class (X, CLASS)
549
550 /* Like `PREFERRED_RELOAD_CLASS', but for output reloads instead of input
551    reloads.  If you don't define this macro, the default is to use CLASS,
552    unchanged.  */
553 #define PREFERRED_OUTPUT_RELOAD_CLASS(X, CLASS) \
554   xstormy16_preferred_reload_class (X, CLASS)
555
556 /* A C expression that places additional restrictions on the register class to
557    use when it is necessary to be able to hold a value of mode MODE in a reload
558    register for which class CLASS would ordinarily be used.
559
560    Unlike `PREFERRED_RELOAD_CLASS', this macro should be used when there are
561    certain modes that simply can't go in certain reload classes.
562
563    The value is a register class; perhaps CLASS, or perhaps another, smaller
564    class.
565
566    Don't define this macro unless the target machine has limitations which
567    require the macro to do something nontrivial.  */
568 /* #define LIMIT_RELOAD_CLASS(MODE, CLASS) */
569
570 /* Many machines have some registers that cannot be copied directly to or from
571    memory or even from other types of registers.  An example is the `MQ'
572    register, which on most machines, can only be copied to or from general
573    registers, but not memory.  Some machines allow copying all registers to and
574    from memory, but require a scratch register for stores to some memory
575    locations (e.g., those with symbolic address on the RT, and those with
576    certain symbolic address on the SPARC when compiling PIC).  In some cases,
577    both an intermediate and a scratch register are required.
578
579    You should define these macros to indicate to the reload phase that it may
580    need to allocate at least one register for a reload in addition to the
581    register to contain the data.  Specifically, if copying X to a register
582    CLASS in MODE requires an intermediate register, you should define
583    `SECONDARY_INPUT_RELOAD_CLASS' to return the largest register class all of
584    whose registers can be used as intermediate registers or scratch registers.
585
586    If copying a register CLASS in MODE to X requires an intermediate or scratch
587    register, `SECONDARY_OUTPUT_RELOAD_CLASS' should be defined to return the
588    largest register class required.  If the requirements for input and output
589    reloads are the same, the macro `SECONDARY_RELOAD_CLASS' should be used
590    instead of defining both macros identically.
591
592    The values returned by these macros are often `GENERAL_REGS'.  Return
593    `NO_REGS' if no spare register is needed; i.e., if X can be directly copied
594    to or from a register of CLASS in MODE without requiring a scratch register.
595    Do not define this macro if it would always return `NO_REGS'.
596
597    If a scratch register is required (either with or without an intermediate
598    register), you should define patterns for `reload_inM' or `reload_outM', as
599    required..  These patterns, which will normally be implemented with a
600    `define_expand', should be similar to the `movM' patterns, except that
601    operand 2 is the scratch register.
602
603    Define constraints for the reload register and scratch register that contain
604    a single register class.  If the original reload register (whose class is
605    CLASS) can meet the constraint given in the pattern, the value returned by
606    these macros is used for the class of the scratch register.  Otherwise, two
607    additional reload registers are required.  Their classes are obtained from
608    the constraints in the insn pattern.
609
610    X might be a pseudo-register or a `subreg' of a pseudo-register, which could
611    either be in a hard register or in memory.  Use `true_regnum' to find out;
612    it will return -1 if the pseudo is in memory and the hard register number if
613    it is in a register.
614
615    These macros should not be used in the case where a particular class of
616    registers can only be copied to memory and not to another class of
617    registers.  In that case, secondary reload registers are not needed and
618    would not be helpful.  Instead, a stack location must be used to perform the
619    copy and the `movM' pattern should use memory as an intermediate storage.
620    This case often occurs between floating-point and general registers.  */
621
622 /* This chip has the interesting property that only the first eight
623    registers can be moved to/from memory.  */
624 #define SECONDARY_RELOAD_CLASS(CLASS, MODE, X)                  \
625   xstormy16_secondary_reload_class (CLASS, MODE, X)
626
627 /* #define SECONDARY_INPUT_RELOAD_CLASS(CLASS, MODE, X) */
628 /* #define SECONDARY_OUTPUT_RELOAD_CLASS(CLASS, MODE, X) */
629
630 /* Certain machines have the property that some registers cannot be copied to
631    some other registers without using memory.  Define this macro on those
632    machines to be a C expression that is nonzero if objects of mode M in
633    registers of CLASS1 can only be copied to registers of class CLASS2 by
634    storing a register of CLASS1 into memory and loading that memory location
635    into a register of CLASS2.
636
637    Do not define this macro if its value would always be zero.  */
638 /* #define SECONDARY_MEMORY_NEEDED(CLASS1, CLASS2, M) */
639
640 /* Normally when `SECONDARY_MEMORY_NEEDED' is defined, the compiler allocates a
641    stack slot for a memory location needed for register copies.  If this macro
642    is defined, the compiler instead uses the memory location defined by this
643    macro.
644
645    Do not define this macro if you do not define
646    `SECONDARY_MEMORY_NEEDED'.  */
647 /* #define SECONDARY_MEMORY_NEEDED_RTX(MODE) */
648
649 /* When the compiler needs a secondary memory location to copy between two
650    registers of mode MODE, it normally allocates sufficient memory to hold a
651    quantity of `BITS_PER_WORD' bits and performs the store and load operations
652    in a mode that many bits wide and whose class is the same as that of MODE.
653
654    This is right thing to do on most machines because it ensures that all bits
655    of the register are copied and prevents accesses to the registers in a
656    narrower mode, which some machines prohibit for floating-point registers.
657
658    However, this default behavior is not correct on some machines, such as the
659    DEC Alpha, that store short integers in floating-point registers differently
660    than in integer registers.  On those machines, the default widening will not
661    work correctly and you must define this macro to suppress that widening in
662    some cases.  See the file `alpha.h' for details.
663
664    Do not define this macro if you do not define `SECONDARY_MEMORY_NEEDED' or
665    if widening MODE to a mode that is `BITS_PER_WORD' bits wide is correct for
666    your machine.  */
667 /* #define SECONDARY_MEMORY_NEEDED_MODE(MODE) */
668
669 /* Normally the compiler avoids choosing registers that have been explicitly
670    mentioned in the rtl as spill registers (these registers are normally those
671    used to pass parameters and return values).  However, some machines have so
672    few registers of certain classes that there would not be enough registers to
673    use as spill registers if this were done.
674
675    Define `SMALL_REGISTER_CLASSES' to be an expression with a nonzero value on
676    these machines.  When this macro has a nonzero value, the compiler allows
677    registers explicitly used in the rtl to be used as spill registers but
678    avoids extending the lifetime of these registers.
679
680    It is always safe to define this macro with a nonzero value, but if you
681    unnecessarily define it, you will reduce the amount of optimizations that
682    can be performed in some cases.  If you do not define this macro with a
683    nonzero value when it is required, the compiler will run out of spill
684    registers and print a fatal error message.  For most machines, you should
685    not define this macro at all.  */
686 /* #define SMALL_REGISTER_CLASSES */
687
688 /* A C expression whose value is nonzero if pseudos that have been assigned to
689    registers of class CLASS would likely be spilled because registers of CLASS
690    are needed for spill registers.
691
692    The default value of this macro returns 1 if CLASS has exactly one register
693    and zero otherwise.  On most machines, this default should be used.  Only
694    define this macro to some other expression if pseudo allocated by
695    `local-alloc.c' end up in memory because their hard registers were needed
696    for spill registers.  If this macro returns nonzero for those classes, those
697    pseudos will only be allocated by `global.c', which knows how to reallocate
698    the pseudo to another register.  If there would not be another register
699    available for reallocation, you should not change the definition of this
700    macro since the only effect of such a definition would be to slow down
701    register allocation.  */
702 /* #define CLASS_LIKELY_SPILLED_P(CLASS) */
703
704 /* A C expression for the maximum number of consecutive registers of
705    class CLASS needed to hold a value of mode MODE.
706
707    This is closely related to the macro `HARD_REGNO_NREGS'.  In fact, the value
708    of the macro `CLASS_MAX_NREGS (CLASS, MODE)' should be the maximum value of
709    `HARD_REGNO_NREGS (REGNO, MODE)' for all REGNO values in the class CLASS.
710
711    This macro helps control the handling of multiple-word values in
712    the reload pass.
713
714    This declaration is required.  */
715 #define CLASS_MAX_NREGS(CLASS, MODE) \
716   ((GET_MODE_SIZE (MODE) + UNITS_PER_WORD - 1) / UNITS_PER_WORD)
717
718 /* If defined, a C expression for a class that contains registers which the
719    compiler must always access in a mode that is the same size as the mode in
720    which it loaded the register.
721
722    For the example, loading 32-bit integer or floating-point objects into
723    floating-point registers on the Alpha extends them to 64-bits.  Therefore
724    loading a 64-bit object and then storing it as a 32-bit object does not
725    store the low-order 32-bits, as would be the case for a normal register.
726    Therefore, `alpha.h' defines this macro as `FLOAT_REGS'.  */
727 /* #define CLASS_CANNOT_CHANGE_SIZE */
728
729 /* A C expression that defines the machine-dependent operand constraint letters
730    (`I', `J', `K', .. 'P') that specify particular ranges of integer values.
731    If C is one of those letters, the expression should check that VALUE, an
732    integer, is in the appropriate range and return 1 if so, 0 otherwise.  If C
733    is not one of those letters, the value should be 0 regardless of VALUE.  */
734 #define CONST_OK_FOR_LETTER_P(VALUE, C)                 \
735   (  (C) == 'I' ? (VALUE) >= 0 && (VALUE) <= 3          \
736    : (C) == 'J' ? exact_log2 (VALUE) != -1              \
737    : (C) == 'K' ? exact_log2 (~(VALUE)) != -1           \
738    : (C) == 'L' ? (VALUE) >= 0 && (VALUE) <= 255        \
739    : (C) == 'M' ? (VALUE) >= -255 && (VALUE) <= 0       \
740    : (C) == 'N' ? (VALUE) >= -3 && (VALUE) <= 0         \
741    : (C) == 'O' ? (VALUE) >= 1 && (VALUE) <= 4          \
742    : (C) == 'P' ? (VALUE) >= -4 && (VALUE) <= -1        \
743    : 0 )
744
745 /* A C expression that defines the machine-dependent operand constraint letters
746    (`G', `H') that specify particular ranges of `const_double' values.
747
748    If C is one of those letters, the expression should check that VALUE, an RTX
749    of code `const_double', is in the appropriate range and return 1 if so, 0
750    otherwise.  If C is not one of those letters, the value should be 0
751    regardless of VALUE.
752
753    `const_double' is used for all floating-point constants and for `DImode'
754    fixed-point constants.  A given letter can accept either or both kinds of
755    values.  It can use `GET_MODE' to distinguish between these kinds.  */
756 #define CONST_DOUBLE_OK_FOR_LETTER_P(VALUE, C) 0
757
758 /* A C expression that defines the optional machine-dependent constraint
759    letters (`Q', `R', `S', `T', `U') that can be used to segregate specific
760    types of operands, usually memory references, for the target machine.
761    Normally this macro will not be defined.  If it is required for a particular
762    target machine, it should return 1 if VALUE corresponds to the operand type
763    represented by the constraint letter C.  If C is not defined as an extra
764    constraint, the value returned should be 0 regardless of VALUE.
765
766    For example, on the ROMP, load instructions cannot have their output in r0
767    if the memory reference contains a symbolic address.  Constraint letter `Q'
768    is defined as representing a memory address that does *not* contain a
769    symbolic address.  An alternative is specified with a `Q' constraint on the
770    input and `r' on the output.  The next alternative specifies `m' on the
771    input and a register class that does not include r0 on the output.  */
772 #define EXTRA_CONSTRAINT(VALUE, C) \
773   xstormy16_extra_constraint_p (VALUE, C)
774
775 \f
776 /* Basic Stack Layout */
777
778 /* Define this macro if pushing a word onto the stack moves the stack pointer
779    to a smaller address.
780
781    When we say, "define this macro if ...," it means that the compiler checks
782    this macro only with `#ifdef' so the precise definition used does not
783    matter.  */
784 /* #define STACK_GROWS_DOWNWARD */
785
786 /* We want to use post-increment instructions to push things on the stack,
787    because we don't have any pre-increment ones.  */
788 #define STACK_PUSH_CODE POST_INC
789
790 /* Define this macro if the addresses of local variable slots are at negative
791    offsets from the frame pointer.  */
792 /* #define FRAME_GROWS_DOWNWARD */
793
794 /* Define this macro if successive arguments to a function occupy decreasing
795    addresses on the stack.  */
796 #define ARGS_GROW_DOWNWARD 1
797
798 /* Offset from the frame pointer to the first local variable slot to be
799    allocated.
800
801    If `FRAME_GROWS_DOWNWARD', find the next slot's offset by
802    subtracting the first slot's length from `STARTING_FRAME_OFFSET'.
803    Otherwise, it is found by adding the length of the first slot to
804    the value `STARTING_FRAME_OFFSET'.  */
805 #define STARTING_FRAME_OFFSET 0
806
807 /* Offset from the stack pointer register to the first location at which
808    outgoing arguments are placed.  If not specified, the default value of zero
809    is used.  This is the proper value for most machines.
810
811    If `ARGS_GROW_DOWNWARD', this is the offset to the location above the first
812    location at which outgoing arguments are placed.  */
813 /* #define STACK_POINTER_OFFSET */
814
815 /* Offset from the argument pointer register to the first argument's address.
816    On some machines it may depend on the data type of the function.
817
818    If `ARGS_GROW_DOWNWARD', this is the offset to the location above the first
819    argument's address.  */
820 #define FIRST_PARM_OFFSET(FUNDECL) 0
821
822 /* Offset from the stack pointer register to an item dynamically allocated on
823    the stack, e.g., by `alloca'.
824
825    The default value for this macro is `STACK_POINTER_OFFSET' plus the length
826    of the outgoing arguments.  The default is correct for most machines.  See
827    `function.c' for details.  */
828 /* #define STACK_DYNAMIC_OFFSET(FUNDECL) */
829
830 /* A C expression whose value is RTL representing the address in a stack frame
831    where the pointer to the caller's frame is stored.  Assume that FRAMEADDR is
832    an RTL expression for the address of the stack frame itself.
833
834    If you don't define this macro, the default is to return the value of
835    FRAMEADDR--that is, the stack frame address is also the address of the stack
836    word that points to the previous frame.  */
837 /* #define DYNAMIC_CHAIN_ADDRESS(FRAMEADDR) */
838
839 /* If defined, a C expression that produces the machine-specific code to setup
840    the stack so that arbitrary frames can be accessed.  For example, on the
841    SPARC, we must flush all of the register windows to the stack before we can
842    access arbitrary stack frames.  This macro will seldom need to be defined.  */
843 /* #define SETUP_FRAME_ADDRESSES() */
844
845 /* A C expression whose value is RTL representing the value of the return
846    address for the frame COUNT steps up from the current frame, after the
847    prologue.  FRAMEADDR is the frame pointer of the COUNT frame, or the frame
848    pointer of the COUNT - 1 frame if `RETURN_ADDR_IN_PREVIOUS_FRAME' is
849    defined.
850
851    The value of the expression must always be the correct address when COUNT is
852    zero, but may be `NULL_RTX' if there is not way to determine the return
853    address of other frames.  */
854 #define RETURN_ADDR_RTX(COUNT, FRAMEADDR)       \
855   ((COUNT) == 0                                 \
856    ? gen_rtx_MEM (Pmode, arg_pointer_rtx)       \
857    : NULL_RTX)
858
859 /* Define this if the return address of a particular stack frame is
860    accessed from the frame pointer of the previous stack frame.  */
861 /* #define RETURN_ADDR_IN_PREVIOUS_FRAME */
862
863 /* A C expression whose value is RTL representing the location of the incoming
864    return address at the beginning of any function, before the prologue.  This
865    RTL is either a `REG', indicating that the return value is saved in `REG',
866    or a `MEM' representing a location in the stack.
867
868    You only need to define this macro if you want to support call frame
869    debugging information like that provided by DWARF 2.  */
870 #define INCOMING_RETURN_ADDR_RTX  \
871    gen_rtx_MEM (SImode, gen_rtx_PLUS (Pmode, stack_pointer_rtx, GEN_INT (-4)))
872
873 /* A C expression whose value is an integer giving the offset, in bytes, from
874    the value of the stack pointer register to the top of the stack frame at the
875    beginning of any function, before the prologue.  The top of the frame is
876    defined to be the value of the stack pointer in the previous frame, just
877    before the call instruction.
878
879    You only need to define this macro if you want to support call frame
880    debugging information like that provided by DWARF 2.  */
881 #define INCOMING_FRAME_SP_OFFSET (xstormy16_interrupt_function_p () ? 6 : 4)
882
883 \f
884 /* Stack Checking.  */
885
886 /* A nonzero value if stack checking is done by the configuration files in a
887    machine-dependent manner.  You should define this macro if stack checking is
888    require by the ABI of your machine or if you would like to have to stack
889    checking in some more efficient way than GNU CC's portable approach.  The
890    default value of this macro is zero.  */
891 /* #define STACK_CHECK_BUILTIN */
892
893 /* An integer representing the interval at which GNU CC must generate stack
894    probe instructions.  You will normally define this macro to be no larger
895    than the size of the "guard pages" at the end of a stack area.  The default
896    value of 4096 is suitable for most systems.  */
897 /* #define STACK_CHECK_PROBE_INTERVAL */
898
899 /* A integer which is nonzero if GNU CC should perform the stack probe as a
900    load instruction and zero if GNU CC should use a store instruction.  The
901    default is zero, which is the most efficient choice on most systems.  */
902 /* #define STACK_CHECK_PROBE_LOAD */
903
904 /* The number of bytes of stack needed to recover from a stack overflow, for
905    languages where such a recovery is supported.  The default value of 75 words
906    should be adequate for most machines.  */
907 /* #define STACK_CHECK_PROTECT */
908
909 /* The maximum size of a stack frame, in bytes.  GNU CC will generate probe
910    instructions in non-leaf functions to ensure at least this many bytes of
911    stack are available.  If a stack frame is larger than this size, stack
912    checking will not be reliable and GNU CC will issue a warning.  The default
913    is chosen so that GNU CC only generates one instruction on most systems.
914    You should normally not change the default value of this macro.  */
915 /* #define STACK_CHECK_MAX_FRAME_SIZE */
916
917 /* GNU CC uses this value to generate the above warning message.  It represents
918    the amount of fixed frame used by a function, not including space for any
919    callee-saved registers, temporaries and user variables.  You need only
920    specify an upper bound for this amount and will normally use the default of
921    four words.  */
922 /* #define STACK_CHECK_FIXED_FRAME_SIZE */
923
924 /* The maximum size, in bytes, of an object that GNU CC will place in the fixed
925    area of the stack frame when the user specifies `-fstack-check'.  GNU CC
926    computed the default from the values of the above macros and you will
927    normally not need to override that default.  */
928 /* #define STACK_CHECK_MAX_VAR_SIZE */
929
930 \f
931 /* Register That Address the Stack Frame.  */
932
933 /* The register number of the stack pointer register, which must also be a
934    fixed register according to `FIXED_REGISTERS'.  On most machines, the
935    hardware determines which register this is.  */
936 #define STACK_POINTER_REGNUM 15
937
938 /* The register number of the frame pointer register, which is used to access
939    automatic variables in the stack frame.  On some machines, the hardware
940    determines which register this is.  On other machines, you can choose any
941    register you wish for this purpose.  */
942 #define FRAME_POINTER_REGNUM 17
943
944 /* On some machines the offset between the frame pointer and starting offset of
945    the automatic variables is not known until after register allocation has
946    been done (for example, because the saved registers are between these two
947    locations).  On those machines, define `FRAME_POINTER_REGNUM' the number of
948    a special, fixed register to be used internally until the offset is known,
949    and define `HARD_FRAME_POINTER_REGNUM' to be actual the hard register number
950    used for the frame pointer.
951
952    You should define this macro only in the very rare circumstances when it is
953    not possible to calculate the offset between the frame pointer and the
954    automatic variables until after register allocation has been completed.
955    When this macro is defined, you must also indicate in your definition of
956    `ELIMINABLE_REGS' how to eliminate `FRAME_POINTER_REGNUM' into either
957    `HARD_FRAME_POINTER_REGNUM' or `STACK_POINTER_REGNUM'.
958
959    Do not define this macro if it would be the same as `FRAME_POINTER_REGNUM'.  */
960 #define HARD_FRAME_POINTER_REGNUM 13
961
962 /* The register number of the arg pointer register, which is used to access the
963    function's argument list.  On some machines, this is the same as the frame
964    pointer register.  On some machines, the hardware determines which register
965    this is.  On other machines, you can choose any register you wish for this
966    purpose.  If this is not the same register as the frame pointer register,
967    then you must mark it as a fixed register according to `FIXED_REGISTERS', or
968    arrange to be able to eliminate it.  */
969 #define ARG_POINTER_REGNUM 18
970
971 /* The register number of the return address pointer register, which is used to
972    access the current function's return address from the stack.  On some
973    machines, the return address is not at a fixed offset from the frame pointer
974    or stack pointer or argument pointer.  This register can be defined to point
975    to the return address on the stack, and then be converted by
976    `ELIMINABLE_REGS' into either the frame pointer or stack pointer.
977
978    Do not define this macro unless there is no other way to get the return
979    address from the stack.  */
980 /* #define RETURN_ADDRESS_POINTER_REGNUM */
981
982 /* Register numbers used for passing a function's static chain pointer.  If
983    register windows are used, the register number as seen by the called
984    function is `STATIC_CHAIN_INCOMING_REGNUM', while the register number as
985    seen by the calling function is `STATIC_CHAIN_REGNUM'.  If these registers
986    are the same, `STATIC_CHAIN_INCOMING_REGNUM' need not be defined.
987
988    The static chain register need not be a fixed register.
989
990    If the static chain is passed in memory, these macros should not be defined;
991    instead, the next two macros should be defined.  */
992 #define STATIC_CHAIN_REGNUM 1
993 /* #define STATIC_CHAIN_INCOMING_REGNUM */
994
995 /* If the static chain is passed in memory, these macros provide rtx giving
996    `mem' expressions that denote where they are stored.  `STATIC_CHAIN' and
997    `STATIC_CHAIN_INCOMING' give the locations as seen by the calling and called
998    functions, respectively.  Often the former will be at an offset from the
999    stack pointer and the latter at an offset from the frame pointer.
1000
1001    The variables `stack_pointer_rtx', `frame_pointer_rtx', and
1002    `arg_pointer_rtx' will have been initialized prior to the use of these
1003    macros and should be used to refer to those items.
1004
1005    If the static chain is passed in a register, the two previous
1006    macros should be defined instead.  */
1007 /* #define STATIC_CHAIN */
1008 /* #define STATIC_CHAIN_INCOMING */
1009
1010 \f
1011 /* Eliminating the Frame Pointer and the Arg Pointer */
1012
1013 /* A C expression which is nonzero if a function must have and use a frame
1014    pointer.  This expression is evaluated in the reload pass.  If its value is
1015    nonzero the function will have a frame pointer.
1016
1017    The expression can in principle examine the current function and decide
1018    according to the facts, but on most machines the constant 0 or the constant
1019    1 suffices.  Use 0 when the machine allows code to be generated with no
1020    frame pointer, and doing so saves some time or space.  Use 1 when there is
1021    no possible advantage to avoiding a frame pointer.
1022
1023    In certain cases, the compiler does not know how to produce valid code
1024    without a frame pointer.  The compiler recognizes those cases and
1025    automatically gives the function a frame pointer regardless of what
1026    `FRAME_POINTER_REQUIRED' says.  You don't need to worry about them.
1027
1028    In a function that does not require a frame pointer, the frame pointer
1029    register can be allocated for ordinary usage, unless you mark it as a fixed
1030    register.  See `FIXED_REGISTERS' for more information.  */
1031 #define FRAME_POINTER_REQUIRED 0
1032
1033 /* A C statement to store in the variable DEPTH_VAR the difference between the
1034    frame pointer and the stack pointer values immediately after the function
1035    prologue.  The value would be computed from information such as the result
1036    of `get_frame_size ()' and the tables of registers `regs_ever_live' and
1037    `call_used_regs'.
1038
1039    If `ELIMINABLE_REGS' is defined, this macro will be not be used and need not
1040    be defined.  Otherwise, it must be defined even if `FRAME_POINTER_REQUIRED'
1041    is defined to always be true; in that case, you may set DEPTH_VAR to
1042    anything.  */
1043 /* #define INITIAL_FRAME_POINTER_OFFSET(DEPTH_VAR) */
1044
1045 /* If defined, this macro specifies a table of register pairs used to eliminate
1046    unneeded registers that point into the stack frame.  If it is not defined,
1047    the only elimination attempted by the compiler is to replace references to
1048    the frame pointer with references to the stack pointer.
1049
1050    The definition of this macro is a list of structure initializations, each of
1051    which specifies an original and replacement register.
1052 */
1053
1054 #define ELIMINABLE_REGS                                 \
1055 {                                                       \
1056   {FRAME_POINTER_REGNUM, STACK_POINTER_REGNUM},         \
1057   {FRAME_POINTER_REGNUM, HARD_FRAME_POINTER_REGNUM},    \
1058   {ARG_POINTER_REGNUM,   STACK_POINTER_REGNUM},         \
1059   {ARG_POINTER_REGNUM,   HARD_FRAME_POINTER_REGNUM},    \
1060 }
1061
1062 /* A C expression that returns nonzero if the compiler is allowed to try to
1063    replace register number FROM with register number TO.  This macro need only
1064    be defined if `ELIMINABLE_REGS' is defined, and will usually be the constant
1065    1, since most of the cases preventing register elimination are things that
1066    the compiler already knows about.  */
1067
1068 #define CAN_ELIMINATE(FROM, TO)                                         \
1069  ((FROM) == ARG_POINTER_REGNUM && (TO) == STACK_POINTER_REGNUM          \
1070   ? ! frame_pointer_needed                                              \
1071   : 1)
1072
1073 /* This macro is similar to `INITIAL_FRAME_POINTER_OFFSET'.  It specifies the
1074    initial difference between the specified pair of registers.  This macro must
1075    be defined if `ELIMINABLE_REGS' is defined.  */
1076 #define INITIAL_ELIMINATION_OFFSET(FROM, TO, OFFSET) \
1077   (OFFSET) = xstormy16_initial_elimination_offset (FROM, TO)
1078
1079 \f
1080 /* Passing Function Arguments on the Stack */
1081
1082 /* Define this macro if an argument declared in a prototype as an integral type
1083    smaller than `int' should actually be passed as an `int'.  In addition to
1084    avoiding errors in certain cases of mismatch, it also makes for better code
1085    on certain machines.  */
1086 #define PROMOTE_PROTOTYPES 1
1087
1088 /* A C expression that is the number of bytes actually pushed onto the stack
1089    when an instruction attempts to push NPUSHED bytes.
1090
1091    If the target machine does not have a push instruction, do not define this
1092    macro.  That directs GNU CC to use an alternate strategy: to allocate the
1093    entire argument block and then store the arguments into it.
1094
1095    On some machines, the definition
1096
1097         #define PUSH_ROUNDING(BYTES) (BYTES)
1098
1099    will suffice.  But on other machines, instructions that appear to push one
1100    byte actually push two bytes in an attempt to maintain alignment.  Then the
1101    definition should be
1102
1103         #define PUSH_ROUNDING(BYTES) (((BYTES) + 1) & ~1)  */
1104 #define PUSH_ROUNDING(BYTES) (((BYTES) + 1) & ~1)
1105
1106 /* If defined, the maximum amount of space required for outgoing arguments will
1107    be computed and placed into the variable
1108    `current_function_outgoing_args_size'.  No space will be pushed onto the
1109    stack for each call; instead, the function prologue should increase the
1110    stack frame size by this amount.
1111
1112    Defining both `PUSH_ROUNDING' and `ACCUMULATE_OUTGOING_ARGS' is not
1113    proper.  */
1114 /* #define ACCUMULATE_OUTGOING_ARGS */
1115
1116 /* Define this macro if functions should assume that stack space has been
1117    allocated for arguments even when their values are passed in registers.
1118
1119    The value of this macro is the size, in bytes, of the area reserved for
1120    arguments passed in registers for the function represented by FNDECL.
1121
1122    This space can be allocated by the caller, or be a part of the
1123    machine-dependent stack frame: `OUTGOING_REG_PARM_STACK_SPACE' says
1124    which.  */
1125 /* #define REG_PARM_STACK_SPACE(FNDECL) */
1126
1127 /* Define these macros in addition to the one above if functions might allocate
1128    stack space for arguments even when their values are passed in registers.
1129    These should be used when the stack space allocated for arguments in
1130    registers is not a simple constant independent of the function declaration.
1131
1132    The value of the first macro is the size, in bytes, of the area that we
1133    should initially assume would be reserved for arguments passed in registers.
1134
1135    The value of the second macro is the actual size, in bytes, of the area that
1136    will be reserved for arguments passed in registers.  This takes two
1137    arguments: an integer representing the number of bytes of fixed sized
1138    arguments on the stack, and a tree representing the number of bytes of
1139    variable sized arguments on the stack.
1140
1141    When these macros are defined, `REG_PARM_STACK_SPACE' will only be called
1142    for libcall functions, the current function, or for a function being called
1143    when it is known that such stack space must be allocated.  In each case this
1144    value can be easily computed.
1145
1146    When deciding whether a called function needs such stack space, and how much
1147    space to reserve, GNU CC uses these two macros instead of
1148    `REG_PARM_STACK_SPACE'.  */
1149 /* #define MAYBE_REG_PARM_STACK_SPACE */
1150 /* #define FINAL_REG_PARM_STACK_SPACE(CONST_SIZE, VAR_SIZE) */
1151
1152 /* Define this if it is the responsibility of the caller to allocate the area
1153    reserved for arguments passed in registers.
1154
1155    If `ACCUMULATE_OUTGOING_ARGS' is defined, this macro controls whether the
1156    space for these arguments counts in the value of
1157    `current_function_outgoing_args_size'.  */
1158 /* #define OUTGOING_REG_PARM_STACK_SPACE */
1159
1160 /* Define this macro if `REG_PARM_STACK_SPACE' is defined, but the stack
1161    parameters don't skip the area specified by it.
1162
1163    Normally, when a parameter is not passed in registers, it is placed on the
1164    stack beyond the `REG_PARM_STACK_SPACE' area.  Defining this macro
1165    suppresses this behavior and causes the parameter to be passed on the stack
1166    in its natural location.  */
1167 /* #define STACK_PARMS_IN_REG_PARM_AREA */
1168
1169 /* A C expression that should indicate the number of bytes of its own arguments
1170    that a function pops on returning, or 0 if the function pops no arguments
1171    and the caller must therefore pop them all after the function returns.
1172
1173    FUNDECL is a C variable whose value is a tree node that describes the
1174    function in question.  Normally it is a node of type `FUNCTION_DECL' that
1175    describes the declaration of the function.  From this it is possible to
1176    obtain the DECL_ATTRIBUTES of the function.
1177
1178    FUNTYPE is a C variable whose value is a tree node that describes the
1179    function in question.  Normally it is a node of type `FUNCTION_TYPE' that
1180    describes the data type of the function.  From this it is possible to obtain
1181    the data types of the value and arguments (if known).
1182
1183    When a call to a library function is being considered, FUNTYPE will contain
1184    an identifier node for the library function.  Thus, if you need to
1185    distinguish among various library functions, you can do so by their names.
1186    Note that "library function" in this context means a function used to
1187    perform arithmetic, whose name is known specially in the compiler and was
1188    not mentioned in the C code being compiled.
1189
1190    STACK-SIZE is the number of bytes of arguments passed on the stack.  If a
1191    variable number of bytes is passed, it is zero, and argument popping will
1192    always be the responsibility of the calling function.
1193
1194    On the VAX, all functions always pop their arguments, so the definition of
1195    this macro is STACK-SIZE.  On the 68000, using the standard calling
1196    convention, no functions pop their arguments, so the value of the macro is
1197    always 0 in this case.  But an alternative calling convention is available
1198    in which functions that take a fixed number of arguments pop them but other
1199    functions (such as `printf') pop nothing (the caller pops all).  When this
1200    convention is in use, FUNTYPE is examined to determine whether a function
1201    takes a fixed number of arguments.  */
1202 #define RETURN_POPS_ARGS(FUNDECL, FUNTYPE, STACK_SIZE) 0
1203
1204 \f
1205 /* Function Arguments in Registers */
1206
1207 #define NUM_ARGUMENT_REGISTERS 6
1208 #define FIRST_ARGUMENT_REGISTER 2
1209
1210 #define XSTORMY16_WORD_SIZE(TYPE, MODE)                         \
1211   ((((TYPE) ? int_size_in_bytes (TYPE) : GET_MODE_SIZE (MODE))  \
1212     + 1)                                                        \
1213    / 2)
1214
1215 /* A C expression that controls whether a function argument is passed in a
1216    register, and which register.
1217
1218    The arguments are CUM, of type CUMULATIVE_ARGS, which summarizes
1219    (in a way defined by INIT_CUMULATIVE_ARGS and FUNCTION_ARG_ADVANCE)
1220    all of the previous arguments so far passed in registers; MODE, the
1221    machine mode of the argument; TYPE, the data type of the argument
1222    as a tree node or 0 if that is not known (which happens for C
1223    support library functions); and NAMED, which is 1 for an ordinary
1224    argument and 0 for nameless arguments that correspond to `...' in
1225    the called function's prototype.
1226
1227    The value of the expression should either be a `reg' RTX for the hard
1228    register in which to pass the argument, or zero to pass the argument on the
1229    stack.
1230
1231    For machines like the VAX and 68000, where normally all arguments are
1232    pushed, zero suffices as a definition.
1233
1234    The usual way to make the ANSI library `stdarg.h' work on a machine where
1235    some arguments are usually passed in registers, is to cause nameless
1236    arguments to be passed on the stack instead.  This is done by making
1237    `FUNCTION_ARG' return 0 whenever NAMED is 0.
1238
1239    You may use the macro `MUST_PASS_IN_STACK (MODE, TYPE)' in the definition of
1240    this macro to determine if this argument is of a type that must be passed in
1241    the stack.  If `REG_PARM_STACK_SPACE' is not defined and `FUNCTION_ARG'
1242    returns nonzero for such an argument, the compiler will abort.  If
1243    `REG_PARM_STACK_SPACE' is defined, the argument will be computed in the
1244    stack and then loaded into a register.  */
1245 #define FUNCTION_ARG(CUM, MODE, TYPE, NAMED)                              \
1246   ((MODE) == VOIDmode ? const0_rtx                                        \
1247    : (CUM) + XSTORMY16_WORD_SIZE (TYPE, MODE) > NUM_ARGUMENT_REGISTERS ? 0 \
1248    : gen_rtx_REG (MODE, (CUM) + 2))
1249
1250 /* Define this macro if the target machine has "register windows", so that the
1251    register in which a function sees an arguments is not necessarily the same
1252    as the one in which the caller passed the argument.
1253
1254    For such machines, `FUNCTION_ARG' computes the register in which the caller
1255    passes the value, and `FUNCTION_INCOMING_ARG' should be defined in a similar
1256    fashion to tell the function being called where the arguments will arrive.
1257
1258    If `FUNCTION_INCOMING_ARG' is not defined, `FUNCTION_ARG' serves both
1259    purposes.  */
1260 /* #define FUNCTION_INCOMING_ARG(CUM, MODE, TYPE, NAMED) */
1261
1262 /* A C expression for the number of words, at the beginning of an argument,
1263    must be put in registers.  The value must be zero for arguments that are
1264    passed entirely in registers or that are entirely pushed on the stack.
1265
1266    On some machines, certain arguments must be passed partially in registers
1267    and partially in memory.  On these machines, typically the first N words of
1268    arguments are passed in registers, and the rest on the stack.  If a
1269    multi-word argument (a `double' or a structure) crosses that boundary, its
1270    first few words must be passed in registers and the rest must be pushed.
1271    This macro tells the compiler when this occurs, and how many of the words
1272    should go in registers.
1273
1274    `FUNCTION_ARG' for these arguments should return the first register to be
1275    used by the caller for this argument; likewise `FUNCTION_INCOMING_ARG', for
1276    the called function.  */
1277 #define FUNCTION_ARG_PARTIAL_NREGS(CUM, MODE, TYPE, NAMED) 0
1278
1279 /* A C expression that indicates when an argument must be passed by reference.
1280    If nonzero for an argument, a copy of that argument is made in memory and a
1281    pointer to the argument is passed instead of the argument itself.  The
1282    pointer is passed in whatever way is appropriate for passing a pointer to
1283    that type.
1284
1285    On machines where `REG_PARM_STACK_SPACE' is not defined, a suitable
1286    definition of this macro might be
1287         #define FUNCTION_ARG_PASS_BY_REFERENCE(CUM, MODE, TYPE, NAMED)  \
1288           MUST_PASS_IN_STACK (MODE, TYPE)  */
1289 #define FUNCTION_ARG_PASS_BY_REFERENCE(CUM, MODE, TYPE, NAMED) 0
1290
1291 /* If defined, a C expression that indicates when it is more
1292    desirable to keep an argument passed by invisible reference as a
1293    reference, rather than copying it to a pseudo register.  */
1294 /* #define FUNCTION_ARG_KEEP_AS_REFERENCE(CUM, MODE, TYPE, NAMED) */
1295
1296 /* If defined, a C expression that indicates when it is the called function's
1297    responsibility to make a copy of arguments passed by invisible reference.
1298    Normally, the caller makes a copy and passes the address of the copy to the
1299    routine being called.  When FUNCTION_ARG_CALLEE_COPIES is defined and is
1300    nonzero, the caller does not make a copy.  Instead, it passes a pointer to
1301    the "live" value.  The called function must not modify this value.  If it
1302    can be determined that the value won't be modified, it need not make a copy;
1303    otherwise a copy must be made.  */
1304 /* #define FUNCTION_ARG_CALLEE_COPIES(CUM, MODE, TYPE, NAMED) */
1305
1306 /* A C type for declaring a variable that is used as the first argument of
1307    `FUNCTION_ARG' and other related values.  For some target machines, the type
1308    `int' suffices and can hold the number of bytes of argument so far.
1309
1310    There is no need to record in `CUMULATIVE_ARGS' anything about the arguments
1311    that have been passed on the stack.  The compiler has other variables to
1312    keep track of that.  For target machines on which all arguments are passed
1313    on the stack, there is no need to store anything in `CUMULATIVE_ARGS';
1314    however, the data structure must exist and should not be empty, so use
1315    `int'.  
1316
1317    For this platform, the value of CUMULATIVE_ARGS is the number of words
1318    of arguments that have been passed in registers so far.  */
1319 #define CUMULATIVE_ARGS int
1320
1321 /* A C statement (sans semicolon) for initializing the variable CUM for the
1322    state at the beginning of the argument list.  The variable has type
1323    `CUMULATIVE_ARGS'.  The value of FNTYPE is the tree node for the data type
1324    of the function which will receive the args, or 0 if the args are to a
1325    compiler support library function.  The value of INDIRECT is nonzero when
1326    processing an indirect call, for example a call through a function pointer.
1327    The value of INDIRECT is zero for a call to an explicitly named function, a
1328    library function call, or when `INIT_CUMULATIVE_ARGS' is used to find
1329    arguments for the function being compiled.
1330
1331    When processing a call to a compiler support library function, LIBNAME
1332    identifies which one.  It is a `symbol_ref' rtx which contains the name of
1333    the function, as a string.  LIBNAME is 0 when an ordinary C function call is
1334    being processed.  Thus, each time this macro is called, either LIBNAME or
1335    FNTYPE is nonzero, but never both of them at once.  */
1336 #define INIT_CUMULATIVE_ARGS(CUM, FNTYPE, LIBNAME, INDIRECT) (CUM) = 0
1337
1338 /* Like `INIT_CUMULATIVE_ARGS' but overrides it for the purposes of finding the
1339    arguments for the function being compiled.  If this macro is undefined,
1340    `INIT_CUMULATIVE_ARGS' is used instead.
1341
1342    The value passed for LIBNAME is always 0, since library routines with
1343    special calling conventions are never compiled with GNU CC.  The argument
1344    LIBNAME exists for symmetry with `INIT_CUMULATIVE_ARGS'.  */
1345 /* #define INIT_CUMULATIVE_INCOMING_ARGS(CUM, FNTYPE, LIBNAME) */
1346
1347 /* A C statement (sans semicolon) to update the summarizer variable CUM to
1348    advance past an argument in the argument list.  The values MODE, TYPE and
1349    NAMED describe that argument.  Once this is done, the variable CUM is
1350    suitable for analyzing the *following* argument with `FUNCTION_ARG', etc.
1351
1352    This macro need not do anything if the argument in question was passed on
1353    the stack.  The compiler knows how to track the amount of stack space used
1354    for arguments without any special help.  */
1355 #define FUNCTION_ARG_ADVANCE(CUM, MODE, TYPE, NAMED)                    \
1356   ((CUM) = xstormy16_function_arg_advance (CUM, MODE, TYPE, NAMED))
1357
1358 /* If defined, a C expression which determines whether, and in which direction,
1359    to pad out an argument with extra space.  The value should be of type `enum
1360    direction': either `upward' to pad above the argument, `downward' to pad
1361    below, or `none' to inhibit padding.
1362
1363    The *amount* of padding is always just enough to reach the next multiple of
1364    `FUNCTION_ARG_BOUNDARY'; this macro does not control it.
1365
1366    This macro has a default definition which is right for most systems.  For
1367    little-endian machines, the default is to pad upward.  For big-endian
1368    machines, the default is to pad downward for an argument of constant size
1369    shorter than an `int', and upward otherwise.  */
1370 /* #define FUNCTION_ARG_PADDING(MODE, TYPE) */
1371
1372 /* If defined, a C expression that gives the alignment boundary, in bits, of an
1373    argument with the specified mode and type.  If it is not defined,
1374    `PARM_BOUNDARY' is used for all arguments.  */
1375 /* #define FUNCTION_ARG_BOUNDARY(MODE, TYPE) */
1376
1377 /* A C expression that is nonzero if REGNO is the number of a hard register in
1378    which function arguments are sometimes passed.  This does *not* include
1379    implicit arguments such as the static chain and the structure-value address.
1380    On many machines, no registers can be used for this purpose since all
1381    function arguments are pushed on the stack.  */
1382 #define FUNCTION_ARG_REGNO_P(REGNO)                                     \
1383   ((REGNO) >= FIRST_ARGUMENT_REGISTER                                   \
1384    && (REGNO) < FIRST_ARGUMENT_REGISTER + NUM_ARGUMENT_REGISTERS)
1385
1386 \f
1387 /* How Scalar Function Values are Returned */
1388
1389 /* The number of the hard register that is used to return a scalar value from a
1390    function call.  */
1391 #define RETURN_VALUE_REGNUM     FIRST_ARGUMENT_REGISTER
1392      
1393 /* A C expression to create an RTX representing the place where a function
1394    returns a value of data type VALTYPE.  VALTYPE is a tree node representing a
1395    data type.  Write `TYPE_MODE (VALTYPE)' to get the machine mode used to
1396    represent that type.  On many machines, only the mode is relevant.
1397    (Actually, on most machines, scalar values are returned in the same place
1398    regardless of mode).
1399
1400    If `PROMOTE_FUNCTION_RETURN' is defined, you must apply the same promotion
1401    rules specified in `PROMOTE_MODE' if VALTYPE is a scalar type.
1402
1403    If the precise function being called is known, FUNC is a tree node
1404    (`FUNCTION_DECL') for it; otherwise, FUNC is a null pointer.  This makes it
1405    possible to use a different value-returning convention for specific
1406    functions when all their calls are known.
1407
1408    `FUNCTION_VALUE' is not used for return vales with aggregate data types,
1409    because these are returned in another way.  See `STRUCT_VALUE_REGNUM' and
1410    related macros, below.  */
1411 #define FUNCTION_VALUE(VALTYPE, FUNC) \
1412   xstormy16_function_value (VALTYPE, FUNC)
1413
1414
1415 /* Define this macro if the target machine has "register windows" so that the
1416    register in which a function returns its value is not the same as the one in
1417    which the caller sees the value.
1418
1419    For such machines, `FUNCTION_VALUE' computes the register in which the
1420    caller will see the value.  `FUNCTION_OUTGOING_VALUE' should be defined in a
1421    similar fashion to tell the function where to put the value.
1422
1423    If `FUNCTION_OUTGOING_VALUE' is not defined, `FUNCTION_VALUE' serves both
1424    purposes.
1425
1426    `FUNCTION_OUTGOING_VALUE' is not used for return vales with aggregate data
1427    types, because these are returned in another way.  See `STRUCT_VALUE_REGNUM'
1428    and related macros, below.  */
1429 /* #define FUNCTION_OUTGOING_VALUE(VALTYPE, FUNC) */
1430
1431 /* A C expression to create an RTX representing the place where a library
1432    function returns a value of mode MODE.
1433
1434    Note that "library function" in this context means a compiler support
1435    routine, used to perform arithmetic, whose name is known specially by the
1436    compiler and was not mentioned in the C code being compiled.
1437
1438    The definition of `LIBRARY_VALUE' need not be concerned aggregate data
1439    types, because none of the library functions returns such types.  */
1440 #define LIBCALL_VALUE(MODE) gen_rtx_REG (MODE, RETURN_VALUE_REGNUM)
1441
1442 /* A C expression that is nonzero if REGNO is the number of a hard register in
1443    which the values of called function may come back.
1444
1445    A register whose use for returning values is limited to serving as the
1446    second of a pair (for a value of type `double', say) need not be recognized
1447    by this macro.  So for most machines, this definition suffices:
1448
1449         #define FUNCTION_VALUE_REGNO_P(N) ((N) == RETURN)
1450
1451    If the machine has register windows, so that the caller and the called
1452    function use different registers for the return value, this macro should
1453    recognize only the caller's register numbers.  */
1454 #define FUNCTION_VALUE_REGNO_P(REGNO) ((REGNO) == RETURN_VALUE_REGNUM)
1455
1456 /* Define this macro if `untyped_call' and `untyped_return' need more space
1457    than is implied by `FUNCTION_VALUE_REGNO_P' for saving and restoring an
1458    arbitrary return value.  */
1459 /* #define APPLY_RESULT_SIZE */
1460
1461 \f
1462 /* How Large Values are Returned */
1463
1464 /* A C expression which can inhibit the returning of certain function values in
1465    registers, based on the type of value.  A nonzero value says to return the
1466    function value in memory, just as large structures are always returned.
1467    Here TYPE will be a C expression of type `tree', representing the data type
1468    of the value.
1469
1470    Note that values of mode `BLKmode' must be explicitly handled by this macro.
1471    Also, the option `-fpcc-struct-return' takes effect regardless of this
1472    macro.  On most systems, it is possible to leave the macro undefined; this
1473    causes a default definition to be used, whose value is the constant 1 for
1474    `BLKmode' values, and 0 otherwise.
1475
1476    Do not use this macro to indicate that structures and unions should always
1477    be returned in memory.  You should instead use `DEFAULT_PCC_STRUCT_RETURN'
1478    to indicate this.  */
1479 #define RETURN_IN_MEMORY(TYPE) \
1480   (int_size_in_bytes (TYPE) > UNITS_PER_WORD * NUM_ARGUMENT_REGISTERS)
1481
1482 /* Define this macro to be 1 if all structure and union return values must be
1483    in memory.  Since this results in slower code, this should be defined only
1484    if needed for compatibility with other compilers or with an ABI.  If you
1485    define this macro to be 0, then the conventions used for structure and union
1486    return values are decided by the `RETURN_IN_MEMORY' macro.
1487
1488    If not defined, this defaults to the value 1.  */
1489 /* #define DEFAULT_PCC_STRUCT_RETURN 0 */
1490
1491 /* If the structure value address is passed in a register, then
1492    `STRUCT_VALUE_REGNUM' should be the number of that register.  */
1493 /* #define STRUCT_VALUE_REGNUM */
1494
1495 /* If the structure value address is not passed in a register, define
1496    `STRUCT_VALUE' as an expression returning an RTX for the place where the
1497    address is passed.  If it returns 0, the address is passed as an "invisible"
1498    first argument.  */
1499 #define STRUCT_VALUE 0
1500
1501 /* On some architectures the place where the structure value address is found
1502    by the called function is not the same place that the caller put it.  This
1503    can be due to register windows, or it could be because the function prologue
1504    moves it to a different place.
1505
1506    If the incoming location of the structure value address is in a register,
1507    define this macro as the register number.  */
1508 /* #define STRUCT_VALUE_INCOMING_REGNUM */
1509
1510 /* If the incoming location is not a register, then you should define
1511    `STRUCT_VALUE_INCOMING' as an expression for an RTX for where the called
1512    function should find the value.  If it should find the value on the stack,
1513    define this to create a `mem' which refers to the frame pointer.  A
1514    definition of 0 means that the address is passed as an "invisible" first
1515    argument.  */
1516 /* #define STRUCT_VALUE_INCOMING */
1517
1518 /* Define this macro if the usual system convention on the target machine for
1519    returning structures and unions is for the called function to return the
1520    address of a static variable containing the value.
1521
1522    Do not define this if the usual system convention is for the caller to pass
1523    an address to the subroutine.
1524
1525    This macro has effect in `-fpcc-struct-return' mode, but it does nothing
1526    when you use `-freg-struct-return' mode.  */
1527 /* #define PCC_STATIC_STRUCT_RETURN */
1528
1529 \f
1530 /* Caller-Saves Register Allocation */
1531
1532 /* Define this macro if function calls on the target machine do not preserve
1533    any registers; in other words, if `CALL_USED_REGISTERS' has 1 for all
1534    registers.  This macro enables `-fcaller-saves' by default.  Eventually that
1535    option will be enabled by default on all machines and both the option and
1536    this macro will be eliminated.  */
1537 /* #define DEFAULT_CALLER_SAVES */
1538
1539 /* A C expression to determine whether it is worthwhile to consider placing a
1540    pseudo-register in a call-clobbered hard register and saving and restoring
1541    it around each function call.  The expression should be 1 when this is worth
1542    doing, and 0 otherwise.
1543
1544    If you don't define this macro, a default is used which is good on most
1545    machines: `4 * CALLS < REFS'.  */
1546 /* #define CALLER_SAVE_PROFITABLE(REFS, CALLS) */
1547
1548 \f
1549 /* Function Entry and Exit */
1550
1551 /* Define this macro as a C expression that is nonzero if the return
1552    instruction or the function epilogue ignores the value of the stack pointer;
1553    in other words, if it is safe to delete an instruction to adjust the stack
1554    pointer before a return from the function.
1555
1556    Note that this macro's value is relevant only for functions for which frame
1557    pointers are maintained.  It is never safe to delete a final stack
1558    adjustment in a function that has no frame pointer, and the compiler knows
1559    this regardless of `EXIT_IGNORE_STACK'.  */
1560 /* #define EXIT_IGNORE_STACK */
1561
1562 /* Define this macro as a C expression that is nonzero for registers
1563    are used by the epilogue or the `return' pattern.  The stack and
1564    frame pointer registers are already be assumed to be used as
1565    needed.  */
1566 #define EPILOGUE_USES(REGNO) \
1567   xstormy16_epilogue_uses (REGNO)
1568
1569 /* Define this macro if the function epilogue contains delay slots to which
1570    instructions from the rest of the function can be "moved".  The definition
1571    should be a C expression whose value is an integer representing the number
1572    of delay slots there.  */
1573 /* #define DELAY_SLOTS_FOR_EPILOGUE */
1574
1575 /* A C expression that returns 1 if INSN can be placed in delay slot number N
1576    of the epilogue.
1577
1578    The argument N is an integer which identifies the delay slot now being
1579    considered (since different slots may have different rules of eligibility).
1580    It is never negative and is always less than the number of epilogue delay
1581    slots (what `DELAY_SLOTS_FOR_EPILOGUE' returns).  If you reject a particular
1582    insn for a given delay slot, in principle, it may be reconsidered for a
1583    subsequent delay slot.  Also, other insns may (at least in principle) be
1584    considered for the so far unfilled delay slot.
1585
1586    The insns accepted to fill the epilogue delay slots are put in an
1587    RTL list made with `insn_list' objects, stored in the variable
1588    `current_function_epilogue_delay_list'.  The insn for the first
1589    delay slot comes first in the list.  Your definition of the macro
1590    `FUNCTION_EPILOGUE' should fill the delay slots by outputting the
1591    insns in this list, usually by calling `final_scan_insn'.
1592
1593    You need not define this macro if you did not define
1594    `DELAY_SLOTS_FOR_EPILOGUE'.  */
1595 /* #define ELIGIBLE_FOR_EPILOGUE_DELAY(INSN, N) */
1596 \f
1597 /* Generating Code for Profiling.  */
1598
1599 /* A C statement or compound statement to output to FILE some assembler code to
1600    call the profiling subroutine `mcount'.  Before calling, the assembler code
1601    must load the address of a counter variable into a register where `mcount'
1602    expects to find the address.  The name of this variable is `LP' followed by
1603    the number LABELNO, so you would generate the name using `LP%d' in a
1604    `fprintf'.
1605
1606    The details of how the address should be passed to `mcount' are determined
1607    by your operating system environment, not by GNU CC.  To figure them out,
1608    compile a small program for profiling using the system's installed C
1609    compiler and look at the assembler code that results.
1610
1611    This declaration must be present, but it can be an abort if profiling is
1612    not implemented.  */
1613      
1614 #define FUNCTION_PROFILER(FILE, LABELNO) abort ()
1615
1616 /* Define this macro if the code for function profiling should come before the
1617    function prologue.  Normally, the profiling code comes after.  */
1618 /* #define PROFILE_BEFORE_PROLOGUE */
1619
1620 \f
1621 /* If the target has particular reasons why a function cannot be inlined,
1622    it may define the TARGET_CANNOT_INLINE_P.  This macro takes one argument,
1623    the DECL describing the function.  The function should NULL if the function
1624    *can* be inlined.  Otherwise it should return a pointer to a string containing
1625    a message describing why the function could not be inlined.  The message will
1626    displayed if the '-Winline' command line switch has been given.  If the message
1627    contains a '%s' sequence, this will be replaced by the name of the function.  */
1628 /* #define TARGET_CANNOT_INLINE_P(FN_DECL) xstormy16_cannot_inline_p (FN_DECL) */
1629 \f
1630 /* Implementing the Varargs Macros.  */
1631
1632 /* If defined, is a C expression that produces the machine-specific code for a
1633    call to `__builtin_saveregs'.  This code will be moved to the very beginning
1634    of the function, before any parameter access are made.  The return value of
1635    this function should be an RTX that contains the value to use as the return
1636    of `__builtin_saveregs'.
1637
1638    If this macro is not defined, the compiler will output an ordinary call to
1639    the library function `__builtin_saveregs'.  */
1640 /* #define EXPAND_BUILTIN_SAVEREGS() */
1641
1642 /* This macro offers an alternative to using `__builtin_saveregs' and defining
1643    the macro `EXPAND_BUILTIN_SAVEREGS'.  Use it to store the anonymous register
1644    arguments into the stack so that all the arguments appear to have been
1645    passed consecutively on the stack.  Once this is done, you can use the
1646    standard implementation of varargs that works for machines that pass all
1647    their arguments on the stack.
1648
1649    The argument ARGS_SO_FAR is the `CUMULATIVE_ARGS' data structure, containing
1650    the values that obtain after processing of the named arguments.  The
1651    arguments MODE and TYPE describe the last named argument--its machine mode
1652    and its data type as a tree node.
1653
1654    The macro implementation should do two things: first, push onto the stack
1655    all the argument registers *not* used for the named arguments, and second,
1656    store the size of the data thus pushed into the `int'-valued variable whose
1657    name is supplied as the argument PRETEND_ARGS_SIZE.  The value that you
1658    store here will serve as additional offset for setting up the stack frame.
1659
1660    Because you must generate code to push the anonymous arguments at compile
1661    time without knowing their data types, `SETUP_INCOMING_VARARGS' is only
1662    useful on machines that have just a single category of argument register and
1663    use it uniformly for all data types.
1664
1665    If the argument SECOND_TIME is nonzero, it means that the arguments of the
1666    function are being analyzed for the second time.  This happens for an inline
1667    function, which is not actually compiled until the end of the source file.
1668    The macro `SETUP_INCOMING_VARARGS' should not generate any instructions in
1669    this case.  */
1670 #define SETUP_INCOMING_VARARGS(ARGS_SO_FAR, MODE, TYPE, PRETEND_ARGS_SIZE, SECOND_TIME) \
1671   if (! SECOND_TIME) \
1672     xstormy16_setup_incoming_varargs (ARGS_SO_FAR, MODE, TYPE, & PRETEND_ARGS_SIZE)
1673
1674 /* Define this macro if the location where a function argument is passed
1675    depends on whether or not it is a named argument.
1676
1677    This macro controls how the NAMED argument to `FUNCTION_ARG' is set for
1678    varargs and stdarg functions.  With this macro defined, the NAMED argument
1679    is always true for named arguments, and false for unnamed arguments.  If
1680    this is not defined, but `SETUP_INCOMING_VARARGS' is defined, then all
1681    arguments are treated as named.  Otherwise, all named arguments except the
1682    last are treated as named.  */
1683 /* #define STRICT_ARGUMENT_NAMING  1 */
1684
1685 /* Build up the stdarg/varargs va_list type tree, assinging it to NODE.  If not
1686    defined, it is assumed that va_list is a void * pointer.  */
1687 #define BUILD_VA_LIST_TYPE(NODE) \
1688   ((NODE) = xstormy16_build_va_list ())
1689
1690 /* Implement the stdarg/varargs va_start macro.  STDARG_P is nonzero if this
1691    is stdarg.h instead of varargs.h.  VALIST is the tree of the va_list
1692    variable to initialize.  NEXTARG is the machine independent notion of the
1693    'next' argument after the variable arguments.  If not defined, a standard
1694    implementation will be defined that works for arguments passed on the stack.  */
1695 #define EXPAND_BUILTIN_VA_START(VALIST, NEXTARG) \
1696   xstormy16_expand_builtin_va_start (VALIST, NEXTARG)
1697
1698 /* Implement the stdarg/varargs va_arg macro.  VALIST is the variable of type
1699    va_list as a tree, TYPE is the type passed to va_arg.  */
1700 #define EXPAND_BUILTIN_VA_ARG(VALIST, TYPE) \
1701   xstormy16_expand_builtin_va_arg (VALIST, TYPE)
1702
1703 /* Implement the stdarg/varargs va_end macro.  VALIST is the variable of type
1704    va_list as a tree.  */
1705 /* #define EXPAND_BUILTIN_VA_END(VALIST) */
1706
1707 \f
1708 /* Trampolines for Nested Functions.  */
1709
1710 /* A C statement to output, on the stream FILE, assembler code for a block of
1711    data that contains the constant parts of a trampoline.  This code should not
1712    include a label--the label is taken care of automatically.  */
1713 /* #define TRAMPOLINE_TEMPLATE(FILE) */
1714
1715 /* The name of a subroutine to switch to the section in which the trampoline
1716    template is to be placed.  The default is a value of `readonly_data_section',
1717    which places the trampoline in the section containing read-only data.  */
1718 /* #define TRAMPOLINE_SECTION */
1719
1720 /* A C expression for the size in bytes of the trampoline, as an integer.  */
1721 #define TRAMPOLINE_SIZE 8
1722
1723 /* Alignment required for trampolines, in bits.
1724
1725    If you don't define this macro, the value of `BIGGEST_ALIGNMENT' is used for
1726    aligning trampolines.  */
1727 #define TRAMPOLINE_ALIGNMENT 16
1728
1729 /* A C statement to initialize the variable parts of a trampoline.  ADDR is an
1730    RTX for the address of the trampoline; FNADDR is an RTX for the address of
1731    the nested function; STATIC_CHAIN is an RTX for the static chain value that
1732    should be passed to the function when it is called.  */
1733 #define INITIALIZE_TRAMPOLINE(ADDR, FNADDR, STATIC_CHAIN) \
1734   xstormy16_initialize_trampoline (ADDR, FNADDR, STATIC_CHAIN)
1735
1736 /* A C expression to allocate run-time space for a trampoline.  The expression
1737    value should be an RTX representing a memory reference to the space for the
1738    trampoline.
1739
1740    If this macro is not defined, by default the trampoline is allocated as a
1741    stack slot.  This default is right for most machines.  The exceptions are
1742    machines where it is impossible to execute instructions in the stack area.
1743    On such machines, you may have to implement a separate stack, using this
1744    macro in conjunction with `TARGET_ASM_FUNCTION_PROLOGUE' and
1745    `TARGET_ASM_FUNCTION_EPILOGUE'.
1746
1747    FP points to a data structure, a `struct function', which describes the
1748    compilation status of the immediate containing function of the function
1749    which the trampoline is for.  Normally (when `ALLOCATE_TRAMPOLINE' is not
1750    defined), the stack slot for the trampoline is in the stack frame of this
1751    containing function.  Other allocation strategies probably must do something
1752    analogous with this information.  */
1753 /* #define ALLOCATE_TRAMPOLINE(FP) */
1754
1755 /* Implementing trampolines is difficult on many machines because they have
1756    separate instruction and data caches.  Writing into a stack location fails
1757    to clear the memory in the instruction cache, so when the program jumps to
1758    that location, it executes the old contents.
1759
1760    Here are two possible solutions.  One is to clear the relevant parts of the
1761    instruction cache whenever a trampoline is set up.  The other is to make all
1762    trampolines identical, by having them jump to a standard subroutine.  The
1763    former technique makes trampoline execution faster; the latter makes
1764    initialization faster.
1765
1766    To clear the instruction cache when a trampoline is initialized, define the
1767    following macros which describe the shape of the cache.  */
1768
1769 /* The total size in bytes of the cache.  */
1770 /* #define INSN_CACHE_SIZE */
1771
1772 /* The length in bytes of each cache line.  The cache is divided into cache
1773    lines which are disjoint slots, each holding a contiguous chunk of data
1774    fetched from memory.  Each time data is brought into the cache, an entire
1775    line is read at once.  The data loaded into a cache line is always aligned
1776    on a boundary equal to the line size.  */
1777 /* #define INSN_CACHE_LINE_WIDTH */
1778
1779 /* The number of alternative cache lines that can hold any particular memory
1780    location.  */
1781 /* #define INSN_CACHE_DEPTH */
1782
1783 /* Alternatively, if the machine has system calls or instructions to clear the
1784    instruction cache directly, you can define the following macro.  */
1785
1786 /* If defined, expands to a C expression clearing the *instruction cache* in
1787    the specified interval.  If it is not defined, and the macro INSN_CACHE_SIZE
1788    is defined, some generic code is generated to clear the cache.  The
1789    definition of this macro would typically be a series of `asm' statements.
1790    Both BEG and END are both pointer expressions.  */
1791 /* #define CLEAR_INSN_CACHE (BEG, END) */
1792
1793 /* To use a standard subroutine, define the following macro.  In addition, you
1794    must make sure that the instructions in a trampoline fill an entire cache
1795    line with identical instructions, or else ensure that the beginning of the
1796    trampoline code is always aligned at the same point in its cache line.  Look
1797    in `m68k.h' as a guide.  */
1798
1799 /* Define this macro if trampolines need a special subroutine to do their work.
1800    The macro should expand to a series of `asm' statements which will be
1801    compiled with GNU CC.  They go in a library function named
1802    `__transfer_from_trampoline'.
1803
1804    If you need to avoid executing the ordinary prologue code of a compiled C
1805    function when you jump to the subroutine, you can do so by placing a special
1806    label of your own in the assembler code.  Use one `asm' statement to
1807    generate an assembler label, and another to make the label global.  Then
1808    trampolines can use that label to jump directly to your special assembler
1809    code.  */
1810 /* #define TRANSFER_FROM_TRAMPOLINE */
1811
1812 \f
1813 /* Implicit Calls to Library Routines */
1814
1815 /* A C string constant giving the name of the function to call for
1816    multiplication of one signed full-word by another.  If you do not define
1817    this macro, the default name is used, which is `__mulsi3', a function
1818    defined in `libgcc.a'.  */
1819 /* #define MULSI3_LIBCALL */
1820
1821 /* A C string constant giving the name of the function to call for division of
1822    one signed full-word by another.  If you do not define this macro, the
1823    default name is used, which is `__divsi3', a function defined in `libgcc.a'.  */
1824 /* #define DIVSI3_LIBCALL */
1825
1826 /* A C string constant giving the name of the function to call for division of
1827    one unsigned full-word by another.  If you do not define this macro, the
1828    default name is used, which is `__udivsi3', a function defined in
1829    `libgcc.a'.  */
1830 /* #define UDIVSI3_LIBCALL */
1831
1832 /* A C string constant giving the name of the function to call for the
1833    remainder in division of one signed full-word by another.  If you do not
1834    define this macro, the default name is used, which is `__modsi3', a function
1835    defined in `libgcc.a'.  */
1836 /* #define MODSI3_LIBCALL */
1837
1838 /* A C string constant giving the name of the function to call for the
1839    remainder in division of one unsigned full-word by another.  If you do not
1840    define this macro, the default name is used, which is `__umodsi3', a
1841    function defined in `libgcc.a'.  */
1842 /* #define UMODSI3_LIBCALL */
1843
1844 /* A C string constant giving the name of the function to call for
1845    multiplication of one signed double-word by another.  If you do not define
1846    this macro, the default name is used, which is `__muldi3', a function
1847    defined in `libgcc.a'.  */
1848 /* #define MULDI3_LIBCALL */
1849
1850 /* A C string constant giving the name of the function to call for division of
1851    one signed double-word by another.  If you do not define this macro, the
1852    default name is used, which is `__divdi3', a function defined in `libgcc.a'.  */
1853 /* #define DIVDI3_LIBCALL */
1854
1855 /* A C string constant giving the name of the function to call for division of
1856    one unsigned full-word by another.  If you do not define this macro, the
1857    default name is used, which is `__udivdi3', a function defined in
1858    `libgcc.a'.  */
1859 /* #define UDIVDI3_LIBCALL */
1860
1861 /* A C string constant giving the name of the function to call for the
1862    remainder in division of one signed double-word by another.  If you do not
1863    define this macro, the default name is used, which is `__moddi3', a function
1864    defined in `libgcc.a'.  */
1865 /* #define MODDI3_LIBCALL */
1866
1867 /* A C string constant giving the name of the function to call for the
1868    remainder in division of one unsigned full-word by another.  If you do not
1869    define this macro, the default name is used, which is `__umoddi3', a
1870    function defined in `libgcc.a'.  */
1871 /* #define UMODDI3_LIBCALL */
1872
1873 /* Define this macro as a C statement that declares additional library routines
1874    renames existing ones. `init_optabs' calls this macro after initializing all
1875    the normal library routines.  */
1876 /* #define INIT_TARGET_OPTABS */
1877
1878 /* The value of `EDOM' on the target machine, as a C integer constant
1879    expression.  If you don't define this macro, GNU CC does not attempt to
1880    deposit the value of `EDOM' into `errno' directly.  Look in
1881    `/usr/include/errno.h' to find the value of `EDOM' on your system.
1882
1883    If you do not define `TARGET_EDOM', then compiled code reports domain errors
1884    by calling the library function and letting it report the error.  If
1885    mathematical functions on your system use `matherr' when there is an error,
1886    then you should leave `TARGET_EDOM' undefined so that `matherr' is used
1887    normally.  */
1888 /* #define TARGET_EDOM */
1889
1890 /* Define this macro as a C expression to create an rtl expression that refers
1891    to the global "variable" `errno'.  (On certain systems, `errno' may not
1892    actually be a variable.)  If you don't define this macro, a reasonable
1893    default is used.  */
1894 /* #define GEN_ERRNO_RTX */
1895
1896 /* Define this macro if GNU CC should generate calls to the System V (and ANSI
1897    C) library functions `memcpy' and `memset' rather than the BSD functions
1898    `bcopy' and `bzero'.
1899
1900    Defined in svr4.h.  */
1901 #define TARGET_MEM_FUNCTIONS
1902
1903 /* Define this macro if only `float' arguments cannot be passed to library
1904    routines (so they must be converted to `double').  This macro affects both
1905    how library calls are generated and how the library routines in `libgcc1.c'
1906    accept their arguments.  It is useful on machines where floating and fixed
1907    point arguments are passed differently, such as the i860.  */
1908 /* #define LIBGCC_NEEDS_DOUBLE */
1909
1910 /* Define this macro to override the type used by the library routines to pick
1911    up arguments of type `float'.  (By default, they use a union of `float' and
1912    `int'.)
1913
1914    The obvious choice would be `float'--but that won't work with traditional C
1915    compilers that expect all arguments declared as `float' to arrive as
1916    `double'.  To avoid this conversion, the library routines ask for the value
1917    as some other type and then treat it as a `float'.
1918
1919    On some systems, no other type will work for this.  For these systems, you
1920    must use `LIBGCC_NEEDS_DOUBLE' instead, to force conversion of the values
1921    `double' before they are passed.  */
1922 /* #define FLOAT_ARG_TYPE */
1923
1924 /* Define this macro to override the way library routines redesignate a `float'
1925    argument as a `float' instead of the type it was passed as.  The default is
1926    an expression which takes the `float' field of the union.  */
1927 /* #define FLOATIFY(PASSED_VALUE) */
1928
1929 /* Define this macro to override the type used by the library routines to
1930    return values that ought to have type `float'.  (By default, they use
1931    `int'.)
1932
1933    The obvious choice would be `float'--but that won't work with traditional C
1934    compilers gratuitously convert values declared as `float' into `double'.  */
1935 /* #define FLOAT_VALUE_TYPE */
1936
1937 /* Define this macro to override the way the value of a `float'-returning
1938    library routine should be packaged in order to return it.  These functions
1939    are actually declared to return type `FLOAT_VALUE_TYPE' (normally `int').
1940
1941    These values can't be returned as type `float' because traditional C
1942    compilers would gratuitously convert the value to a `double'.
1943
1944    A local variable named `intify' is always available when the macro `INTIFY'
1945    is used.  It is a union of a `float' field named `f' and a field named `i'
1946    whose type is `FLOAT_VALUE_TYPE' or `int'.
1947
1948    If you don't define this macro, the default definition works by copying the
1949    value through that union.  */
1950 /* #define INTIFY(FLOAT_VALUE) */
1951
1952 /* Define this macro as the name of the data type corresponding to `SImode' in
1953    the system's own C compiler.
1954
1955    You need not define this macro if that type is `long int', as it usually is.  */
1956 /* #define nongcc_SI_type */
1957
1958 /* Define this macro as the name of the data type corresponding to the
1959    word_mode in the system's own C compiler.
1960
1961    You need not define this macro if that type is `long int', as it usually is.  */
1962 /* #define nongcc_word_type */
1963
1964 /* Define these macros to supply explicit C statements to carry out various
1965    arithmetic operations on types `float' and `double' in the library routines
1966    in `libgcc1.c'.  See that file for a full list of these macros and their
1967    arguments.
1968
1969    On most machines, you don't need to define any of these macros, because the
1970    C compiler that comes with the system takes care of doing them.  */
1971 /* #define perform_...  */
1972
1973 /* Define this macro to generate code for Objective-C message sending using the
1974    calling convention of the NeXT system.  This calling convention involves
1975    passing the object, the selector and the method arguments all at once to the
1976    method-lookup library function.
1977
1978    The default calling convention passes just the object and the selector to
1979    the lookup function, which returns a pointer to the method.  */
1980 /* #define NEXT_OBJC_RUNTIME */
1981
1982 \f
1983 /* Addressing Modes */
1984
1985 /* Define this macro if the machine supports post-increment addressing.  */
1986 #define HAVE_POST_INCREMENT 1
1987
1988 /* Similar for other kinds of addressing.  */
1989 #define HAVE_PRE_DECREMENT 1
1990
1991 /* A C expression that is 1 if the RTX X is a constant which is a valid
1992    address.  On most machines, this can be defined as `CONSTANT_P (X)', but a
1993    few machines are more restrictive in which constant addresses are supported.
1994
1995    `CONSTANT_P' accepts integer-values expressions whose values are not
1996    explicitly known, such as `symbol_ref', `label_ref', and `high' expressions
1997    and `const' arithmetic expressions, in addition to `const_int' and
1998    `const_double' expressions.  */
1999 #define CONSTANT_ADDRESS_P(X) CONSTANT_P (X)
2000
2001 /* A number, the maximum number of registers that can appear in a valid memory
2002    address.  Note that it is up to you to specify a value equal to the maximum
2003    number that `GO_IF_LEGITIMATE_ADDRESS' would ever accept.  */
2004 #define MAX_REGS_PER_ADDRESS 1
2005
2006 /* A C compound statement with a conditional `goto LABEL;' executed if X (an
2007    RTX) is a legitimate memory address on the target machine for a memory
2008    operand of mode MODE.  */
2009 #ifdef REG_OK_STRICT
2010 #define GO_IF_LEGITIMATE_ADDRESS(MODE, X, LABEL)        \
2011 do {                                                    \
2012   if (xstormy16_legitimate_address_p (MODE, X, 1))      \
2013     goto LABEL;                                         \
2014 } while (0)
2015 #else
2016 #define GO_IF_LEGITIMATE_ADDRESS(MODE, X, LABEL)        \
2017 do {                                                    \
2018   if (xstormy16_legitimate_address_p (MODE, X, 0))      \
2019     goto LABEL;                                         \
2020 } while (0)
2021 #endif
2022 /* A C expression that is nonzero if X (assumed to be a `reg' RTX) is valid for
2023    use as a base register.  For hard registers, it should always accept those
2024    which the hardware permits and reject the others.  Whether the macro accepts
2025    or rejects pseudo registers must be controlled by `REG_OK_STRICT' as
2026    described above.  This usually requires two variant definitions, of which
2027    `REG_OK_STRICT' controls the one actually used.  */
2028 #ifdef REG_OK_STRICT
2029 #define REG_OK_FOR_BASE_P(X)                                               \
2030   (REGNO_OK_FOR_BASE_P (REGNO (X)) && (REGNO (X) < FIRST_PSEUDO_REGISTER))
2031 #else
2032 #define REG_OK_FOR_BASE_P(X) REGNO_OK_FOR_BASE_P (REGNO (X))
2033 #endif
2034
2035 /* A C expression that is nonzero if X (assumed to be a `reg' RTX) is valid for
2036    use as an index register.
2037
2038    The difference between an index register and a base register is that the
2039    index register may be scaled.  If an address involves the sum of two
2040    registers, neither one of them scaled, then either one may be labeled the
2041    "base" and the other the "index"; but whichever labeling is used must fit
2042    the machine's constraints of which registers may serve in each capacity.
2043    The compiler will try both labelings, looking for one that is valid, and
2044    will reload one or both registers only if neither labeling works.  */
2045 #define REG_OK_FOR_INDEX_P(X) REG_OK_FOR_BASE_P (X)
2046
2047 /* A C compound statement that attempts to replace X with a valid memory
2048    address for an operand of mode MODE.  WIN will be a C statement label
2049    elsewhere in the code; the macro definition may use
2050
2051         GO_IF_LEGITIMATE_ADDRESS (MODE, X, WIN);
2052
2053    to avoid further processing if the address has become legitimate.
2054
2055    X will always be the result of a call to `break_out_memory_refs', and OLDX
2056    will be the operand that was given to that function to produce X.
2057
2058    The code generated by this macro should not alter the substructure of X.  If
2059    it transforms X into a more legitimate form, it should assign X (which will
2060    always be a C variable) a new value.
2061
2062    It is not necessary for this macro to come up with a legitimate address.
2063    The compiler has standard ways of doing so in all cases.  In fact, it is
2064    safe for this macro to do nothing.  But often a machine-dependent strategy
2065    can generate better code.  */
2066 #define LEGITIMIZE_ADDRESS(X, OLDX, MODE, WIN)
2067
2068 /* A C statement or compound statement with a conditional `goto LABEL;'
2069    executed if memory address X (an RTX) can have different meanings depending
2070    on the machine mode of the memory reference it is used for or if the address
2071    is valid for some modes but not others.
2072
2073    Autoincrement and autodecrement addresses typically have mode-dependent
2074    effects because the amount of the increment or decrement is the size of the
2075    operand being addressed.  Some machines have other mode-dependent addresses.
2076    Many RISC machines have no mode-dependent addresses.
2077
2078    You may assume that ADDR is a valid address for the machine.  
2079    
2080    On this chip, this is true if the address is valid with an offset
2081    of 0 but not of 6, because in that case it cannot be used as an
2082    address for DImode or DFmode, or if the address is a post-increment
2083    or pre-decrement address.
2084 */
2085 #define GO_IF_MODE_DEPENDENT_ADDRESS(ADDR,LABEL)                        \
2086   if (xstormy16_mode_dependent_address_p (ADDR))                                \
2087     goto LABEL
2088
2089 /* A C expression that is nonzero if X is a legitimate constant for an
2090    immediate operand on the target machine.  You can assume that X satisfies
2091    `CONSTANT_P', so you need not check this.  In fact, `1' is a suitable
2092    definition for this macro on machines where anything `CONSTANT_P' is valid.  */
2093 #define LEGITIMATE_CONSTANT_P(X) 1
2094
2095 \f
2096 /* Condition Code Status */
2097
2098 /* C code for a data type which is used for declaring the `mdep' component of
2099    `cc_status'.  It defaults to `int'.
2100
2101    This macro is not used on machines that do not use `cc0'.  */
2102 /* #define CC_STATUS_MDEP */
2103
2104 /* A C expression to initialize the `mdep' field to "empty".  The default
2105    definition does nothing, since most machines don't use the field anyway.  If
2106    you want to use the field, you should probably define this macro to
2107    initialize it.
2108
2109    This macro is not used on machines that do not use `cc0'.  */
2110 /* #define CC_STATUS_MDEP_INIT */
2111
2112 /* A C compound statement to set the components of `cc_status' appropriately
2113    for an insn INSN whose body is EXP.  It is this macro's responsibility to
2114    recognize insns that set the condition code as a byproduct of other activity
2115    as well as those that explicitly set `(cc0)'.
2116
2117    This macro is not used on machines that do not use `cc0'.
2118
2119    If there are insns that do not set the condition code but do alter other
2120    machine registers, this macro must check to see whether they invalidate the
2121    expressions that the condition code is recorded as reflecting.  For example,
2122    on the 68000, insns that store in address registers do not set the condition
2123    code, which means that usually `NOTICE_UPDATE_CC' can leave `cc_status'
2124    unaltered for such insns.  But suppose that the previous insn set the
2125    condition code based on location `a4@(102)' and the current insn stores a
2126    new value in `a4'.  Although the condition code is not changed by this, it
2127    will no longer be true that it reflects the contents of `a4@(102)'.
2128    Therefore, `NOTICE_UPDATE_CC' must alter `cc_status' in this case to say
2129    that nothing is known about the condition code value.
2130
2131    The definition of `NOTICE_UPDATE_CC' must be prepared to deal with the
2132    results of peephole optimization: insns whose patterns are `parallel' RTXs
2133    containing various `reg', `mem' or constants which are just the operands.
2134    The RTL structure of these insns is not sufficient to indicate what the
2135    insns actually do.  What `NOTICE_UPDATE_CC' should do when it sees one is
2136    just to run `CC_STATUS_INIT'.
2137
2138    A possible definition of `NOTICE_UPDATE_CC' is to call a function that looks
2139    at an attribute named, for example, `cc'.  This avoids having detailed
2140    information about patterns in two places, the `md' file and in
2141    `NOTICE_UPDATE_CC'.  */
2142 /* #define NOTICE_UPDATE_CC(EXP, INSN) */
2143
2144 /* A list of names to be used for additional modes for condition code values in
2145    registers.  These names are added to `enum machine_mode' and all have class
2146    `MODE_CC'.  By convention, they should start with `CC' and end with `mode'.
2147
2148    You should only define this macro if your machine does not use `cc0' and
2149    only if additional modes are required.  */
2150 /* #define EXTRA_CC_MODES */
2151
2152 /* Returns a mode from class `MODE_CC' to be used when comparison operation
2153    code OP is applied to rtx X and Y.  For example, on the SPARC,
2154    `SELECT_CC_MODE' is defined as (see *note Jump Patterns::.  for a
2155    description of the reason for this definition)
2156
2157         #define SELECT_CC_MODE(OP,X,Y) \
2158           (GET_MODE_CLASS (GET_MODE (X)) == MODE_FLOAT          \
2159            ? ((OP == EQ || OP == NE) ? CCFPmode : CCFPEmode)    \
2160            : ((GET_CODE (X) == PLUS || GET_CODE (X) == MINUS    \
2161                || GET_CODE (X) == NEG) \
2162               ? CC_NOOVmode : CCmode))
2163
2164    You need not define this macro if `EXTRA_CC_MODES' is not defined.  */
2165 /* #define SELECT_CC_MODE(OP, X, Y) */
2166
2167 /* One some machines not all possible comparisons are defined, but you can
2168    convert an invalid comparison into a valid one.  For example, the Alpha does
2169    not have a `GT' comparison, but you can use an `LT' comparison instead and
2170    swap the order of the operands.
2171
2172    On such machines, define this macro to be a C statement to do any required
2173    conversions.  CODE is the initial comparison code and OP0 and OP1 are the
2174    left and right operands of the comparison, respectively.  You should modify
2175    CODE, OP0, and OP1 as required.
2176
2177    GNU CC will not assume that the comparison resulting from this macro is
2178    valid but will see if the resulting insn matches a pattern in the `md' file.
2179
2180    You need not define this macro if it would never change the comparison code
2181    or operands.  */
2182 /* #define CANONICALIZE_COMPARISON(CODE, OP0, OP1) */
2183
2184 /* A C expression whose value is one if it is always safe to reverse a
2185    comparison whose mode is MODE.  If `SELECT_CC_MODE' can ever return MODE for
2186    a floating-point inequality comparison, then `REVERSIBLE_CC_MODE (MODE)'
2187    must be zero.
2188
2189    You need not define this macro if it would always returns zero or if the
2190    floating-point format is anything other than `IEEE_FLOAT_FORMAT'.  For
2191    example, here is the definition used on the SPARC, where floating-point
2192    inequality comparisons are always given `CCFPEmode':
2193
2194         #define REVERSIBLE_CC_MODE(MODE)  ((MODE) != CCFPEmode)  */
2195 /* #define REVERSIBLE_CC_MODE(MODE) */
2196
2197 \f
2198 /* Describing Relative Costs of Operations */
2199
2200 /* A C expression for the cost of moving data of mode MODE from a
2201    register in class FROM to one in class TO.  The classes are
2202    expressed using the enumeration values such as `GENERAL_REGS'.  A
2203    value of 4 is the default; other values are interpreted relative to
2204    that.
2205
2206    It is not required that the cost always equal 2 when FROM is the same as TO;
2207    on some machines it is expensive to move between registers if they are not
2208    general registers.
2209
2210    If reload sees an insn consisting of a single `set' between two hard
2211    registers, and if `REGISTER_MOVE_COST' applied to their classes returns a
2212    value of 2, reload does not check to ensure that the constraints of the insn
2213    are met.  Setting a cost of other than 2 will allow reload to verify that
2214    the constraints are met.  You should do this if the `movM' pattern's
2215    constraints do not allow such copying.  */
2216 #define REGISTER_MOVE_COST(MODE, FROM, TO) 2
2217
2218 /* A C expression for the cost of moving data of mode M between a register and
2219    memory.  A value of 2 is the default; this cost is relative to those in
2220    `REGISTER_MOVE_COST'.
2221
2222    If moving between registers and memory is more expensive than between two
2223    registers, you should define this macro to express the relative cost.  */
2224 #define MEMORY_MOVE_COST(M,C,I) (5 + memory_move_secondary_cost (M, C, I))
2225
2226 /* A C expression for the cost of a branch instruction.  A value of 1 is the
2227    default; other values are interpreted relative to that.  */
2228
2229 #define BRANCH_COST 5
2230
2231 /* Here are additional macros which do not specify precise relative costs, but
2232    only that certain actions are more expensive than GNU CC would ordinarily
2233    expect.  */
2234
2235 /* Define this macro as a C expression which is nonzero if accessing less than
2236    a word of memory (i.e. a `char' or a `short') is no faster than accessing a
2237    word of memory, i.e., if such access require more than one instruction or if
2238    there is no difference in cost between byte and (aligned) word loads.
2239
2240    When this macro is not defined, the compiler will access a field by finding
2241    the smallest containing object; when it is defined, a fullword load will be
2242    used if alignment permits.  Unless bytes accesses are faster than word
2243    accesses, using word accesses is preferable since it may eliminate
2244    subsequent memory access if subsequent accesses occur to other fields in the
2245    same word of the structure, but to different bytes.  */
2246 #define SLOW_BYTE_ACCESS 0
2247
2248 /* Define this macro to be the value 1 if unaligned accesses have a cost many
2249    times greater than aligned accesses, for example if they are emulated in a
2250    trap handler.
2251
2252    When this macro is nonzero, the compiler will act as if `STRICT_ALIGNMENT'
2253    were nonzero when generating code for block moves.  This can cause
2254    significantly more instructions to be produced.  Therefore, do not set this
2255    macro nonzero if unaligned accesses only add a cycle or two to the time for
2256    a memory access.
2257
2258    If the value of this macro is always zero, it need not be defined.  */
2259 /* #define SLOW_UNALIGNED_ACCESS */
2260
2261 /* Define this macro to inhibit strength reduction of memory addresses.  (On
2262    some machines, such strength reduction seems to do harm rather than good.)  */
2263 /* #define DONT_REDUCE_ADDR */
2264
2265 /* The number of scalar move insns which should be generated instead of a
2266    string move insn or a library call.  Increasing the value will always make
2267    code faster, but eventually incurs high cost in increased code size.
2268
2269    If you don't define this, a reasonable default is used.  */
2270 /* #define MOVE_RATIO */
2271
2272 /* Define this macro if it is as good or better to call a constant function
2273    address than to call an address kept in a register.  */
2274 #define NO_FUNCTION_CSE
2275
2276 /* Define this macro if it is as good or better for a function to call itself
2277    with an explicit address than to call an address kept in a register.  */
2278 #define NO_RECURSIVE_FUNCTION_CSE
2279
2280 /* A C statement (sans semicolon) to update the integer variable COST based on
2281    the relationship between INSN that is dependent on DEP_INSN through the
2282    dependence LINK.  The default is to make no adjustment to COST.  This can be
2283    used for example to specify to the scheduler that an output- or
2284    anti-dependence does not incur the same cost as a data-dependence.  */
2285 /* #define ADJUST_COST(INSN, LINK, DEP_INSN, COST) */
2286
2287 /* A C statement (sans semicolon) to update the integer scheduling
2288    priority `INSN_PRIORITY(INSN)'.  Reduce the priority to execute
2289    the INSN earlier, increase the priority to execute INSN later.
2290    Do not define this macro if you do not need to adjust the
2291    scheduling priorities of insns.  */
2292 /* #define ADJUST_PRIORITY (INSN) */
2293
2294 \f
2295 /* Dividing the output into sections.  */
2296
2297 /* A C expression whose value is a string containing the assembler operation
2298    that should precede instructions and read-only data.  Normally `".text"' is
2299    right.  */
2300 #define TEXT_SECTION_ASM_OP ".text"
2301
2302 /* A C expression whose value is a string containing the assembler operation to
2303    identify the following data as writable initialized data.  Normally
2304    `".data"' is right.  */
2305 #define DATA_SECTION_ASM_OP ".data"
2306
2307 /* if defined, a C expression whose value is a string containing the assembler
2308    operation to identify the following data as shared data.  If not defined,
2309    `DATA_SECTION_ASM_OP' will be used.  */
2310 /* #define SHARED_SECTION_ASM_OP */
2311
2312 /* If defined, a C expression whose value is a string containing the
2313    assembler operation to identify the following data as
2314    uninitialized global data.  If not defined, and neither
2315    `ASM_OUTPUT_BSS' nor `ASM_OUTPUT_ALIGNED_BSS' are defined,
2316    uninitialized global data will be output in the data section if
2317    `-fno-common' is passed, otherwise `ASM_OUTPUT_COMMON' will be
2318    used.  */
2319 #define BSS_SECTION_ASM_OP "\t.section\t.bss"
2320
2321 /* If defined, a C expression whose value is a string containing the
2322    assembler operation to identify the following data as
2323    uninitialized global shared data.  If not defined, and
2324    `BSS_SECTION_ASM_OP' is, the latter will be used.  */
2325 /* #define SHARED_BSS_SECTION_ASM_OP */
2326
2327 /* Define the pseudo-ops used to switch to the .ctors and .dtors sections.
2328    There are no shared libraries on this target so these sections need
2329    not be writable.
2330
2331    Defined in elfos.h.  */
2332
2333 #undef CTORS_SECTION_ASM_OP
2334 #undef DTORS_SECTION_ASM_OP
2335 #define CTORS_SECTION_ASM_OP    "\t.section\t.ctors,\"a\""
2336 #define DTORS_SECTION_ASM_OP    "\t.section\t.dtors,\"a\""
2337
2338 /* A list of names for sections other than the standard two, which are
2339    `in_text' and `in_data'.  You need not define this macro on a system with no
2340    other sections (that GCC needs to use).
2341
2342    Defined in svr4.h.  */
2343 /* #define EXTRA_SECTIONS */
2344
2345 /* One or more functions to be defined in `varasm.c'.  These functions should
2346    do jobs analogous to those of `text_section' and `data_section', for your
2347    additional sections.  Do not define this macro if you do not define
2348    `EXTRA_SECTIONS'.
2349
2350    Defined in svr4.h.  */
2351 /* #define EXTRA_SECTION_FUNCTIONS */
2352
2353 /* Define this macro if jump tables (for `tablejump' insns) should be output in
2354    the text section, along with the assembler instructions.  Otherwise, the
2355    readonly data section is used.
2356
2357    This macro is irrelevant if there is no separate readonly data section.  */
2358 #define JUMP_TABLES_IN_TEXT_SECTION 1
2359 \f
2360 /* Position Independent Code.  */
2361
2362 /* The register number of the register used to address a table of static data
2363    addresses in memory.  In some cases this register is defined by a
2364    processor's "application binary interface" (ABI).  When this macro is
2365    defined, RTL is generated for this register once, as with the stack pointer
2366    and frame pointer registers.  If this macro is not defined, it is up to the
2367    machine-dependent files to allocate such a register (if necessary).  */
2368 /* #define PIC_OFFSET_TABLE_REGNUM */
2369
2370 /* Define this macro if the register defined by `PIC_OFFSET_TABLE_REGNUM' is
2371    clobbered by calls.  Do not define this macro if `PPIC_OFFSET_TABLE_REGNUM'
2372    is not defined.  */
2373 /* #define PIC_OFFSET_TABLE_REG_CALL_CLOBBERED */
2374
2375 /* By generating position-independent code, when two different programs (A and
2376    B) share a common library (libC.a), the text of the library can be shared
2377    whether or not the library is linked at the same address for both programs.
2378    In some of these environments, position-independent code requires not only
2379    the use of different addressing modes, but also special code to enable the
2380    use of these addressing modes.
2381
2382    The `FINALIZE_PIC' macro serves as a hook to emit these special codes once
2383    the function is being compiled into assembly code, but not before.  (It is
2384    not done before, because in the case of compiling an inline function, it
2385    would lead to multiple PIC prologues being included in functions which used
2386    inline functions and were compiled to assembly language.)  */
2387 /* #define FINALIZE_PIC */
2388
2389 /* A C expression that is nonzero if X is a legitimate immediate operand on the
2390    target machine when generating position independent code.  You can assume
2391    that X satisfies `CONSTANT_P', so you need not check this.  You can also
2392    assume FLAG_PIC is true, so you need not check it either.  You need not
2393    define this macro if all constants (including `SYMBOL_REF') can be immediate
2394    operands when generating position independent code.  */
2395 /* #define LEGITIMATE_PIC_OPERAND_P(X) */
2396
2397 \f
2398 /* The Overall Framework of an Assembler File.  */
2399
2400 /* A C expression which outputs to the stdio stream STREAM some appropriate
2401    text to go at the start of an assembler file.
2402
2403    Normally this macro is defined to output a line containing `#NO_APP', which
2404    is a comment that has no effect on most assemblers but tells the GNU
2405    assembler that it can save time by not checking for certain assembler
2406    constructs.
2407
2408    On systems that use SDB, it is necessary to output certain commands; see
2409    `attasm.h'.
2410
2411    Defined in svr4.h.  */
2412 /* #define ASM_FILE_START(STREAM) */
2413
2414 /* A C expression which outputs to the stdio stream STREAM some appropriate
2415    text to go at the end of an assembler file.
2416
2417    If this macro is not defined, the default is to output nothing special at
2418    the end of the file.  Most systems don't require any definition.
2419
2420    On systems that use SDB, it is necessary to output certain commands; see
2421    `attasm.h'.
2422
2423    Defined in svr4.h.  */
2424 /* #define ASM_FILE_END(STREAM) */
2425
2426 /* A C string constant describing how to begin a comment in the target
2427    assembler language.  The compiler assumes that the comment will end at the
2428    end of the line.  */
2429 #define ASM_COMMENT_START ";"
2430
2431 /* A C string constant for text to be output before each `asm' statement or
2432    group of consecutive ones.  Normally this is `"#APP"', which is a comment
2433    that has no effect on most assemblers but tells the GNU assembler that it
2434    must check the lines that follow for all valid assembler constructs.  */
2435 #define ASM_APP_ON "#APP\n"
2436
2437 /* A C string constant for text to be output after each `asm' statement or
2438    group of consecutive ones.  Normally this is `"#NO_APP"', which tells the
2439    GNU assembler to resume making the time-saving assumptions that are valid
2440    for ordinary compiler output.  */
2441 #define ASM_APP_OFF "#NO_APP\n"
2442
2443 /* A C statement to output COFF information or DWARF debugging information
2444    which indicates that filename NAME is the current source file to the stdio
2445    stream STREAM.
2446
2447    This macro need not be defined if the standard form of output for the file
2448    format in use is appropriate.  */
2449 /* #define ASM_OUTPUT_SOURCE_FILENAME(STREAM, NAME) */
2450
2451 /* A C statement to output DBX or SDB debugging information before code for
2452    line number LINE of the current source file to the stdio stream STREAM.
2453
2454    This macro need not be defined if the standard form of debugging information
2455    for the debugger in use is appropriate.
2456
2457    Defined in svr4.h.  */
2458 /* #define ASM_OUTPUT_SOURCE_LINE(STREAM, LINE) */
2459
2460 /* A C statement to output something to the assembler file to handle a `#ident'
2461    directive containing the text STRING.  If this macro is not defined, nothing
2462    is output for a `#ident' directive.
2463
2464    Defined in svr4.h.  */
2465 /* #define ASM_OUTPUT_IDENT(STREAM, STRING) */
2466
2467 /* A C statement to output something to the assembler file to switch to section
2468    NAME for object DECL which is either a `FUNCTION_DECL', a `VAR_DECL' or
2469    `NULL_TREE'.  Some target formats do not support arbitrary sections.  Do not
2470    define this macro in such cases.
2471
2472    At present this macro is only used to support section attributes.  When this
2473    macro is undefined, section attributes are disabled.
2474
2475    Defined in svr4.h.  */
2476 /* #define ASM_OUTPUT_SECTION_NAME(STREAM, DECL, NAME) */
2477
2478 /* A C statement to output any assembler statements which are required to
2479    precede any Objective-C object definitions or message sending.  The
2480    statement is executed only when compiling an Objective-C program.  */
2481 /* #define OBJC_PROLOGUE */
2482
2483 \f
2484 /* Output of Data.  */
2485
2486 /* A C statement to output to the stdio stream STREAM an assembler instruction
2487    to assemble a string constant containing the LEN bytes at PTR.  PTR will be
2488    a C expression of type `char *' and LEN a C expression of type `int'.
2489
2490    If the assembler has a `.ascii' pseudo-op as found in the Berkeley Unix
2491    assembler, do not define the macro `ASM_OUTPUT_ASCII'.
2492
2493    Defined in svr4.h.  */
2494 /* #define ASM_OUTPUT_ASCII(STREAM, PTR, LEN) */
2495
2496 /* You may define this macro as a C expression.  You should define the
2497    expression to have a nonzero value if GNU CC should output the
2498    constant pool for a function before the code for the function, or
2499    a zero value if GNU CC should output the constant pool after the
2500    function.  If you do not define this macro, the usual case, GNU CC
2501    will output the constant pool before the function.  */
2502 /* #define CONSTANT_POOL_BEFORE_FUNCTION */
2503
2504 /* A C statement to output assembler commands to define the start of the
2505    constant pool for a function.  FUNNAME is a string giving the name of the
2506    function.  Should the return type of the function be required, it can be
2507    obtained via FUNDECL.  SIZE is the size, in bytes, of the constant pool that
2508    will be written immediately after this call.
2509
2510    If no constant-pool prefix is required, the usual case, this macro need not
2511    be defined.  */
2512 /* #define ASM_OUTPUT_POOL_PROLOGUE(FILE FUNNAME FUNDECL SIZE) */
2513
2514 /* A C statement (with or without semicolon) to output a constant in the
2515    constant pool, if it needs special treatment.  (This macro need not do
2516    anything for RTL expressions that can be output normally.)
2517
2518    The argument FILE is the standard I/O stream to output the assembler code
2519    on.  X is the RTL expression for the constant to output, and MODE is the
2520    machine mode (in case X is a `const_int').  ALIGN is the required alignment
2521    for the value X; you should output an assembler directive to force this much
2522    alignment.
2523
2524    The argument LABELNO is a number to use in an internal label for the address
2525    of this pool entry.  The definition of this macro is responsible for
2526    outputting the label definition at the proper place.  Here is how to do
2527    this:
2528
2529         (*targetm.asm_out.internal_label) (FILE, "LC", LABELNO);
2530
2531    When you output a pool entry specially, you should end with a `goto' to the
2532    label JUMPTO.  This will prevent the same pool entry from being output a
2533    second time in the usual manner.
2534
2535    You need not define this macro if it would do nothing.  */
2536 /* #define ASM_OUTPUT_SPECIAL_POOL_ENTRY(FILE, X, MODE, ALIGN, LABELNO, JUMPTO) */
2537
2538 /* Define this macro as a C expression which is nonzero if the constant EXP, of
2539    type `tree', should be output after the code for a function.  The compiler
2540    will normally output all constants before the function; you need not define
2541    this macro if this is OK.  */
2542 /* #define CONSTANT_AFTER_FUNCTION_P(EXP) */
2543
2544 /* A C statement to output assembler commands to at the end of the constant
2545    pool for a function.  FUNNAME is a string giving the name of the function.
2546    Should the return type of the function be required, you can obtain it via
2547    FUNDECL.  SIZE is the size, in bytes, of the constant pool that GNU CC wrote
2548    immediately before this call.
2549
2550    If no constant-pool epilogue is required, the usual case, you need not
2551    define this macro.  */
2552 /* #define ASM_OUTPUT_POOL_EPILOGUE (FILE FUNNAME FUNDECL SIZE) */
2553
2554 /* Define this macro as a C expression which is nonzero if C is used as a
2555    logical line separator by the assembler.
2556
2557    If you do not define this macro, the default is that only the character `;'
2558    is treated as a logical line separator.  */
2559 #define IS_ASM_LOGICAL_LINE_SEPARATOR(C) ((C) == '|')
2560
2561 \f
2562 /* Output of Uninitialized Variables.  */
2563
2564 /* A C statement (sans semicolon) to output to the stdio stream STREAM the
2565    assembler definition of a common-label named NAME whose size is SIZE bytes.
2566    The variable ROUNDED is the size rounded up to whatever alignment the caller
2567    wants.
2568
2569    Use the expression `assemble_name (STREAM, NAME)' to output the name itself;
2570    before and after that, output the additional assembler syntax for defining
2571    the name, and a newline.
2572
2573    This macro controls how the assembler definitions of uninitialized global
2574    variables are output.  */
2575 /* #define ASM_OUTPUT_COMMON(STREAM, NAME, SIZE, ROUNDED) */
2576
2577 /* Like `ASM_OUTPUT_COMMON' except takes the required alignment as a separate,
2578    explicit argument.  If you define this macro, it is used in place of
2579    `ASM_OUTPUT_COMMON', and gives you more flexibility in handling the required
2580    alignment of the variable.  The alignment is specified as the number of
2581    bits.
2582
2583    Defined in svr4.h.  */
2584 /* #define ASM_OUTPUT_ALIGNED_COMMON(STREAM, NAME, SIZE, ALIGNMENT) */
2585
2586 /* Like ASM_OUTPUT_ALIGNED_COMMON except that it takes an additional argument -
2587    the DECL of the variable to be output, if there is one.  This macro can be
2588    called with DECL == NULL_TREE.  If you define this macro, it is used in
2589    place of both ASM_OUTPUT_COMMON and ASM_OUTPUT_ALIGNED_COMMON, and gives you
2590    more flexibility in handling the destination of the variable.  */
2591 /* #define ASM_OUTPUT_DECL_COMMON (STREAM, DECL, NAME, SIZE, ALIGNMENT) */
2592
2593 /* If defined, it is similar to `ASM_OUTPUT_COMMON', except that it is used
2594    when NAME is shared.  If not defined, `ASM_OUTPUT_COMMON' will be used.  */
2595 /* #define ASM_OUTPUT_SHARED_COMMON(STREAM, NAME, SIZE, ROUNDED) */
2596
2597 /* A C statement (sans semicolon) to output to the stdio stream STREAM the
2598    assembler definition of uninitialized global DECL named NAME whose size is
2599    SIZE bytes.  The variable ROUNDED is the size rounded up to whatever
2600    alignment the caller wants.
2601
2602    Try to use function `asm_output_bss' defined in `varasm.c' when defining
2603    this macro.  If unable, use the expression `assemble_name (STREAM, NAME)' to
2604    output the name itself; before and after that, output the additional
2605    assembler syntax for defining the name, and a newline.
2606
2607    This macro controls how the assembler definitions of uninitialized global
2608    variables are output.  This macro exists to properly support languages like
2609    `c++' which do not have `common' data.  However, this macro currently is not
2610    defined for all targets.  If this macro and `ASM_OUTPUT_ALIGNED_BSS' are not
2611    defined then `ASM_OUTPUT_COMMON' or `ASM_OUTPUT_ALIGNED_COMMON' or
2612    `ASM_OUTPUT_DECL_COMMON' is used.  */
2613 /* #define ASM_OUTPUT_BSS(STREAM, DECL, NAME, SIZE, ROUNDED) */
2614
2615 /* Like `ASM_OUTPUT_BSS' except takes the required alignment as a separate,
2616    explicit argument.  If you define this macro, it is used in place of
2617    `ASM_OUTPUT_BSS', and gives you more flexibility in handling the required
2618    alignment of the variable.  The alignment is specified as the number of
2619    bits.
2620
2621    Try to use function `asm_output_aligned_bss' defined in file `varasm.c' when
2622    defining this macro.  */
2623 /* #define ASM_OUTPUT_ALIGNED_BSS(STREAM, DECL, NAME, SIZE, ALIGNMENT) */
2624
2625 /* If defined, it is similar to `ASM_OUTPUT_BSS', except that it is used when
2626    NAME is shared.  If not defined, `ASM_OUTPUT_BSS' will be used.  */
2627 /* #define ASM_OUTPUT_SHARED_BSS(STREAM, DECL, NAME, SIZE, ROUNDED) */
2628
2629 /* A C statement (sans semicolon) to output to the stdio stream STREAM the
2630    assembler definition of a local-common-label named NAME whose size is SIZE
2631    bytes.  The variable ROUNDED is the size rounded up to whatever alignment
2632    the caller wants.
2633
2634    Use the expression `assemble_name (STREAM, NAME)' to output the name itself;
2635    before and after that, output the additional assembler syntax for defining
2636    the name, and a newline.
2637
2638    This macro controls how the assembler definitions of uninitialized static
2639    variables are output.  */
2640 /* #define ASM_OUTPUT_LOCAL(STREAM, NAME, SIZE, ROUNDED) */
2641
2642 /* Like `ASM_OUTPUT_LOCAL' except takes the required alignment as a separate,
2643    explicit argument.  If you define this macro, it is used in place of
2644    `ASM_OUTPUT_LOCAL', and gives you more flexibility in handling the required
2645    alignment of the variable.  The alignment is specified as the number of
2646    bits.
2647
2648    Defined in svr4.h.  */
2649 /* #define ASM_OUTPUT_ALIGNED_LOCAL(STREAM, NAME, SIZE, ALIGNMENT) */
2650
2651 /* Like `ASM_OUTPUT_ALIGNED_LOCAL' except that it takes an additional
2652    parameter - the DECL of variable to be output, if there is one.
2653    This macro can be called with DECL == NULL_TREE.  If you define
2654    this macro, it is used in place of `ASM_OUTPUT_LOCAL' and
2655    `ASM_OUTPUT_ALIGNED_LOCAL', and gives you more flexibility in
2656    handling the destination of the variable.  */
2657 /* #define ASM_OUTPUT_DECL_LOCAL(STREAM, DECL, NAME, SIZE, ALIGNMENT) */
2658
2659 /* If defined, it is similar to `ASM_OUTPUT_LOCAL', except that it is used when
2660    NAME is shared.  If not defined, `ASM_OUTPUT_LOCAL' will be used.  */
2661 /* #define ASM_OUTPUT_SHARED_LOCAL (STREAM, NAME, SIZE, ROUNDED) */
2662
2663 \f
2664 /* Output and Generation of Labels.  */
2665
2666 /* A C statement to output to the stdio stream STREAM the assembler
2667    definition of a symbol named SYMBOL.  */
2668 #define ASM_OUTPUT_SYMBOL_REF(STREAM, SYMBOL)                           \
2669   do {                                                                  \
2670     if (SYMBOL_REF_FLAG (SYMBOL))                                       \
2671       ASM_OUTPUT_LABEL_REF ((STREAM), XSTR (SYMBOL, 0));                \
2672     else                                                                \
2673       assemble_name (STREAM, XSTR (SYMBOL, 0));                         \
2674   } while (0)
2675
2676 /* A C statement to output to the stdio stream STREAM the assembler
2677    definition of a label, the textual form is in 'BUF'.  Not used
2678    for %l.  */
2679 #define ASM_OUTPUT_LABEL_REF(STREAM, NAME)      \
2680 do  {                                           \
2681   fputs ("@fptr(", STREAM);                     \
2682   assemble_name (STREAM, NAME);                 \
2683   fputc (')', STREAM);                          \
2684 } while (0)
2685
2686 /* A C statement (sans semicolon) to output to the stdio stream STREAM any text
2687    necessary for declaring the name NAME of a function which is being defined.
2688    This macro is responsible for outputting the label definition (perhaps using
2689    `ASM_OUTPUT_LABEL').  The argument DECL is the `FUNCTION_DECL' tree node
2690    representing the function.
2691
2692    If this macro is not defined, then the function name is defined in the usual
2693    manner as a label (by means of `ASM_OUTPUT_LABEL').
2694
2695    Defined in svr4.h.  */
2696 /* #define ASM_DECLARE_FUNCTION_NAME(STREAM, NAME, DECL) */
2697
2698 /* A C statement (sans semicolon) to output to the stdio stream STREAM any text
2699    necessary for declaring the size of a function which is being defined.  The
2700    argument NAME is the name of the function.  The argument DECL is the
2701    `FUNCTION_DECL' tree node representing the function.
2702
2703    If this macro is not defined, then the function size is not defined.
2704
2705    Defined in svr4.h.  */
2706 /* #define ASM_DECLARE_FUNCTION_SIZE(STREAM, NAME, DECL) */
2707
2708 /* A C statement (sans semicolon) to output to the stdio stream STREAM any text
2709    necessary for declaring the name NAME of an initialized variable which is
2710    being defined.  This macro must output the label definition (perhaps using
2711    `ASM_OUTPUT_LABEL').  The argument DECL is the `VAR_DECL' tree node
2712    representing the variable.
2713
2714    If this macro is not defined, then the variable name is defined in the usual
2715    manner as a label (by means of `ASM_OUTPUT_LABEL').
2716
2717    Defined in svr4.h.  */
2718 /* #define ASM_DECLARE_OBJECT_NAME(STREAM, NAME, DECL) */
2719
2720 /* A C statement (sans semicolon) to finish up declaring a variable name once
2721    the compiler has processed its initializer fully and thus has had a chance
2722    to determine the size of an array when controlled by an initializer.  This
2723    is used on systems where it's necessary to declare something about the size
2724    of the object.
2725
2726    If you don't define this macro, that is equivalent to defining it to do
2727    nothing.
2728
2729    Defined in svr4.h.  */
2730 /* #define ASM_FINISH_DECLARE_OBJECT(STREAM, DECL, TOPLEVEL, ATEND) */
2731
2732 /* Globalizing directive for a label.  */
2733 #define GLOBAL_ASM_OP "\t.globl "
2734
2735 /* A C statement (sans semicolon) to output to the stdio stream STREAM some
2736    commands that will make the label NAME weak; that is, available for
2737    reference from other files but only used if no other definition is
2738    available.  Use the expression `assemble_name (STREAM, NAME)' to output the
2739    name itself; before and after that, output the additional assembler syntax
2740    for making that name weak, and a newline.
2741
2742    If you don't define this macro, GNU CC will not support weak symbols and you
2743    should not define the `SUPPORTS_WEAK' macro.
2744
2745    Defined in svr4.h.  */
2746 /* #define ASM_WEAKEN_LABEL */
2747
2748 /* A C expression which evaluates to true if the target supports weak symbols.
2749
2750    If you don't define this macro, `defaults.h' provides a default definition.
2751    If `ASM_WEAKEN_LABEL' is defined, the default definition is `1'; otherwise,
2752    it is `0'.  Define this macro if you want to control weak symbol support
2753    with a compiler flag such as `-melf'.  */
2754 /* #define SUPPORTS_WEAK */
2755
2756 /* A C statement (sans semicolon) to mark DECL to be emitted as a
2757    public symbol such that extra copies in multiple translation units
2758    will be discarded by the linker.  Define this macro if your object
2759    file format provides support for this concept, such as the `COMDAT'
2760    section flags in the Microsoft Windows PE/COFF format, and this
2761    support requires changes to DECL, such as putting it in a separate
2762    section.
2763
2764    Defined in svr4.h.  */
2765 /* #define MAKE_DECL_ONE_ONLY */
2766
2767 /* A C expression which evaluates to true if the target supports one-only
2768    semantics.
2769
2770    If you don't define this macro, `varasm.c' provides a default definition.
2771    If `MAKE_DECL_ONE_ONLY' is defined, the default definition is `1';
2772    otherwise, it is `0'.  Define this macro if you want to control one-only
2773    symbol support with a compiler flag, or if setting the `DECL_ONE_ONLY' flag
2774    is enough to mark a declaration to be emitted as one-only.  */
2775 /* #define SUPPORTS_ONE_ONLY */
2776
2777 /* A C statement (sans semicolon) to output to the stdio stream STREAM any text
2778    necessary for declaring the name of an external symbol named NAME which is
2779    referenced in this compilation but not defined.  The value of DECL is the
2780    tree node for the declaration.
2781
2782    This macro need not be defined if it does not need to output anything.  The
2783    GNU assembler and most Unix assemblers don't require anything.  */
2784 /* #define ASM_OUTPUT_EXTERNAL(STREAM, DECL, NAME) */
2785
2786 /* A C statement (sans semicolon) to output on STREAM an assembler pseudo-op to
2787    declare a library function name external.  The name of the library function
2788    is given by SYMREF, which has type `rtx' and is a `symbol_ref'.
2789
2790    This macro need not be defined if it does not need to output anything.  The
2791    GNU assembler and most Unix assemblers don't require anything.
2792
2793    Defined in svr4.h.  */
2794 /* #define ASM_OUTPUT_EXTERNAL_LIBCALL(STREAM, SYMREF) */
2795
2796 /* A C statement (sans semicolon) to output to the stdio stream STREAM a
2797    reference in assembler syntax to a label named NAME.  This should add `_' to
2798    the front of the name, if that is customary on your operating system, as it
2799    is in most Berkeley Unix systems.  This macro is used in `assemble_name'.  */
2800 /* #define ASM_OUTPUT_LABELREF(STREAM, NAME) */
2801
2802 /* A C statement to store into the string STRING a label whose name is made
2803    from the string PREFIX and the number NUM.
2804
2805    This string, when output subsequently by `assemble_name', should produce the
2806    output that `(*targetm.asm_out.internal_label)' would produce with the same PREFIX
2807    and NUM.
2808
2809    If the string begins with `*', then `assemble_name' will output the rest of
2810    the string unchanged.  It is often convenient for
2811    `ASM_GENERATE_INTERNAL_LABEL' to use `*' in this way.  If the string doesn't
2812    start with `*', then `ASM_OUTPUT_LABELREF' gets to output the string, and
2813    may change it.  (Of course, `ASM_OUTPUT_LABELREF' is also part of your
2814    machine description, so you should know what it does on your machine.)
2815
2816    Defined in svr4.h.  */
2817 /* #define ASM_GENERATE_INTERNAL_LABEL(LABEL, PREFIX, NUM) */
2818
2819 /* A C statement to output to the stdio stream STREAM assembler code which
2820    defines (equates) the symbol NAME to have the value VALUE.
2821
2822    If SET_ASM_OP is defined, a default definition is provided which is correct
2823    for most systems.
2824
2825    Defined in svr4.h.  */
2826 /* #define ASM_OUTPUT_DEF(STREAM, NAME, VALUE) */
2827
2828 /* A C statement to output to the stdio stream STREAM assembler code which
2829    defines (equates) the weak symbol NAME to have the value VALUE.
2830
2831    Define this macro if the target only supports weak aliases; define
2832    ASM_OUTPUT_DEF instead if possible.  */
2833 /* #define ASM_OUTPUT_WEAK_ALIAS (STREAM, NAME, VALUE) */
2834
2835 /* Define this macro to override the default assembler names used for Objective
2836    C methods.
2837
2838    The default name is a unique method number followed by the name of the class
2839    (e.g. `_1_Foo').  For methods in categories, the name of the category is
2840    also included in the assembler name (e.g.  `_1_Foo_Bar').
2841
2842    These names are safe on most systems, but make debugging difficult since the
2843    method's selector is not present in the name.  Therefore, particular systems
2844    define other ways of computing names.
2845
2846    BUF is an expression of type `char *' which gives you a buffer in which to
2847    store the name; its length is as long as CLASS_NAME, CAT_NAME and SEL_NAME
2848    put together, plus 50 characters extra.
2849
2850    The argument IS_INST specifies whether the method is an instance method or a
2851    class method; CLASS_NAME is the name of the class; CAT_NAME is the name of
2852    the category (or NULL if the method is not in a category); and SEL_NAME is
2853    the name of the selector.
2854
2855    On systems where the assembler can handle quoted names, you can use this
2856    macro to provide more human-readable names.  */
2857 /* #define OBJC_GEN_METHOD_LABEL(BUF, IS_INST, CLASS_NAME, CAT_NAME, SEL_NAME) */
2858
2859 \f
2860 /* Macros Controlling Initialization Routines.  */
2861
2862 /* If defined, a C string constant for the assembler operation to identify the
2863    following data as initialization code.  If not defined, GNU CC will assume
2864    such a section does not exist.  When you are using special sections for
2865    initialization and termination functions, this macro also controls how
2866    `crtstuff.c' and `libgcc2.c' arrange to run the initialization functions.
2867
2868    Defined in svr4.h.  */
2869 /* #define INIT_SECTION_ASM_OP */
2870
2871 /* If defined, `main' will not call `__main' as described above.  This macro
2872    should be defined for systems that control the contents of the init section
2873    on a symbol-by-symbol basis, such as OSF/1, and should not be defined
2874    explicitly for systems that support `INIT_SECTION_ASM_OP'.  */
2875 /* #define HAS_INIT_SECTION */
2876
2877 /* If defined, a C string constant for a switch that tells the linker that the
2878    following symbol is an initialization routine.  */
2879 /* #define LD_INIT_SWITCH */
2880
2881 /* If defined, a C string constant for a switch that tells the linker that the
2882    following symbol is a finalization routine.  */
2883 /* #define LD_FINI_SWITCH */
2884
2885 /* If defined, `main' will call `__main' despite the presence of
2886    `INIT_SECTION_ASM_OP'.  This macro should be defined for systems where the
2887    init section is not actually run automatically, but is still useful for
2888    collecting the lists of constructors and destructors.  */
2889 /* #define INVOKE__main */
2890
2891 /* Define this macro as a C statement to output on the stream STREAM the
2892    assembler code to arrange to call the function named NAME at initialization
2893    time.
2894
2895    Assume that NAME is the name of a C function generated automatically by the
2896    compiler.  This function takes no arguments.  Use the function
2897    `assemble_name' to output the name NAME; this performs any system-specific
2898    syntactic transformations such as adding an underscore.
2899
2900    If you don't define this macro, nothing special is output to arrange to call
2901    the function.  This is correct when the function will be called in some
2902    other manner--for example, by means of the `collect2' program, which looks
2903    through the symbol table to find these functions by their names.
2904
2905    Defined in svr4.h.  */
2906 /* #define ASM_OUTPUT_CONSTRUCTOR(STREAM, NAME) */
2907
2908 /* This is like `ASM_OUTPUT_CONSTRUCTOR' but used for termination functions
2909    rather than initialization functions.
2910
2911    Defined in svr4.h.  */
2912 /* #define ASM_OUTPUT_DESTRUCTOR(STREAM, NAME) */
2913
2914 /* If your system uses `collect2' as the means of processing constructors, then
2915    that program normally uses `nm' to scan an object file for constructor
2916    functions to be called.  On certain kinds of systems, you can define these
2917    macros to make `collect2' work faster (and, in some cases, make it work at
2918    all): */
2919
2920 /* Define this macro if the system uses COFF (Common Object File Format) object
2921    files, so that `collect2' can assume this format and scan object files
2922    directly for dynamic constructor/destructor functions.  */
2923 /* #define OBJECT_FORMAT_COFF */
2924
2925 /* Define this macro if the system uses ROSE format object files, so that
2926    `collect2' can assume this format and scan object files directly for dynamic
2927    constructor/destructor functions.
2928
2929    These macros are effective only in a native compiler; `collect2' as
2930    part of a cross compiler always uses `nm' for the target machine.  */
2931 /* #define OBJECT_FORMAT_ROSE */
2932
2933 /* Define this macro if the system uses ELF format object files.
2934
2935    Defined in svr4.h.  */
2936 /* #define OBJECT_FORMAT_ELF */
2937
2938 /* Define this macro as a C string constant containing the file name to use to
2939    execute `nm'.  The default is to search the path normally for `nm'.
2940
2941    If your system supports shared libraries and has a program to list the
2942    dynamic dependencies of a given library or executable, you can define these
2943    macros to enable support for running initialization and termination
2944    functions in shared libraries: */
2945 /* #define REAL_NM_FILE_NAME */
2946
2947 /* Define this macro to a C string constant containing the name of the program
2948    which lists dynamic dependencies, like `"ldd"' under SunOS 4.  */
2949 /* #define LDD_SUFFIX */
2950
2951 /* Define this macro to be C code that extracts filenames from the output of
2952    the program denoted by `LDD_SUFFIX'.  PTR is a variable of type `char *'
2953    that points to the beginning of a line of output from `LDD_SUFFIX'.  If the
2954    line lists a dynamic dependency, the code must advance PTR to the beginning
2955    of the filename on that line.  Otherwise, it must set PTR to `NULL'.  */
2956 /* #define PARSE_LDD_OUTPUT (PTR) */
2957
2958 \f
2959 /* Output of Assembler Instructions.  */
2960
2961 /* A C initializer containing the assembler's names for the machine registers,
2962    each one as a C string constant.  This is what translates register numbers
2963    in the compiler into assembler language.  */
2964 #define REGISTER_NAMES                                                  \
2965 { "r0", "r1", "r2", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10",    \
2966   "r11", "r12", "r13", "psw", "sp", "carry", "fp", "ap" }
2967
2968 /* If defined, a C initializer for an array of structures containing a name and
2969    a register number.  This macro defines additional names for hard registers,
2970    thus allowing the `asm' option in declarations to refer to registers using
2971    alternate names.  */
2972 #define ADDITIONAL_REGISTER_NAMES               \
2973   { { "r14", 14 },                              \
2974     { "r15", 15 } }
2975
2976 /* Define this macro if you are using an unusual assembler that requires
2977    different names for the machine instructions.
2978
2979    The definition is a C statement or statements which output an assembler
2980    instruction opcode to the stdio stream STREAM.  The macro-operand PTR is a
2981    variable of type `char *' which points to the opcode name in its "internal"
2982    form--the form that is written in the machine description.  The definition
2983    should output the opcode name to STREAM, performing any translation you
2984    desire, and increment the variable PTR to point at the end of the opcode so
2985    that it will not be output twice.
2986
2987    In fact, your macro definition may process less than the entire opcode name,
2988    or more than the opcode name; but if you want to process text that includes
2989    `%'-sequences to substitute operands, you must take care of the substitution
2990    yourself.  Just be sure to increment PTR over whatever text should not be
2991    output normally.
2992
2993    If you need to look at the operand values, they can be found as the elements
2994    of `recog_data.operand'.
2995
2996    If the macro definition does nothing, the instruction is output in the usual
2997    way.  */
2998 /* #define ASM_OUTPUT_OPCODE(STREAM, PTR) */
2999
3000 /* If defined, a C statement to be executed just prior to the output of
3001    assembler code for INSN, to modify the extracted operands so they will be
3002    output differently.
3003
3004    Here the argument OPVEC is the vector containing the operands extracted from
3005    INSN, and NOPERANDS is the number of elements of the vector which contain
3006    meaningful data for this insn.  The contents of this vector are what will be
3007    used to convert the insn template into assembler code, so you can change the
3008    assembler output by changing the contents of the vector.
3009
3010    This macro is useful when various assembler syntaxes share a single file of
3011    instruction patterns; by defining this macro differently, you can cause a
3012    large class of instructions to be output differently (such as with
3013    rearranged operands).  Naturally, variations in assembler syntax affecting
3014    individual insn patterns ought to be handled by writing conditional output
3015    routines in those patterns.
3016
3017    If this macro is not defined, it is equivalent to a null statement.  */
3018 /* #define FINAL_PRESCAN_INSN(INSN, OPVEC, NOPERANDS) */
3019
3020 /* If defined, `FINAL_PRESCAN_INSN' will be called on each
3021    `CODE_LABEL'.  In that case, OPVEC will be a null pointer and
3022    NOPERANDS will be zero.  */
3023 /* #define FINAL_PRESCAN_LABEL */
3024
3025 /* A C compound statement to output to stdio stream STREAM the assembler syntax
3026    for an instruction operand X.  X is an RTL expression.
3027
3028    CODE is a value that can be used to specify one of several ways of printing
3029    the operand.  It is used when identical operands must be printed differently
3030    depending on the context.  CODE comes from the `%' specification that was
3031    used to request printing of the operand.  If the specification was just
3032    `%DIGIT' then CODE is 0; if the specification was `%LTR DIGIT' then CODE is
3033    the ASCII code for LTR.
3034
3035    If X is a register, this macro should print the register's name.  The names
3036    can be found in an array `reg_names' whose type is `char *[]'.  `reg_names'
3037    is initialized from `REGISTER_NAMES'.
3038
3039    When the machine description has a specification `%PUNCT' (a `%' followed by
3040    a punctuation character), this macro is called with a null pointer for X and
3041    the punctuation character for CODE.  */
3042 #define PRINT_OPERAND(STREAM, X, CODE) xstormy16_print_operand (STREAM, X, CODE)
3043
3044 /* A C expression which evaluates to true if CODE is a valid punctuation
3045    character for use in the `PRINT_OPERAND' macro.  If
3046    `PRINT_OPERAND_PUNCT_VALID_P' is not defined, it means that no punctuation
3047    characters (except for the standard one, `%') are used in this way.  */
3048 /* #define PRINT_OPERAND_PUNCT_VALID_P(CODE) */
3049
3050 /* A C compound statement to output to stdio stream STREAM the assembler syntax
3051    for an instruction operand that is a memory reference whose address is X.  X
3052    is an RTL expression.  */
3053 #define PRINT_OPERAND_ADDRESS(STREAM, X) xstormy16_print_operand_address (STREAM, X)
3054
3055 /* A C statement, to be executed after all slot-filler instructions have been
3056    output.  If necessary, call `dbr_sequence_length' to determine the number of
3057    slots filled in a sequence (zero if not currently outputting a sequence), to
3058    decide how many no-ops to output, or whatever.
3059
3060    Don't define this macro if it has nothing to do, but it is helpful in
3061    reading assembly output if the extent of the delay sequence is made explicit
3062    (e.g. with white space).
3063
3064    Note that output routines for instructions with delay slots must be prepared
3065    to deal with not being output as part of a sequence (i.e.  when the
3066    scheduling pass is not run, or when no slot fillers could be found.)  The
3067    variable `final_sequence' is null when not processing a sequence, otherwise
3068    it contains the `sequence' rtx being output.  */
3069 /* #define DBR_OUTPUT_SEQEND(FILE) */
3070
3071 /* If defined, C string expressions to be used for the `%R', `%L', `%U', and
3072    `%I' options of `asm_fprintf' (see `final.c').  These are useful when a
3073    single `md' file must support multiple assembler formats.  In that case, the
3074    various `tm.h' files can define these macros differently.
3075
3076    USER_LABEL_PREFIX is defined in svr4.h.  */
3077 #define REGISTER_PREFIX ""
3078 #define LOCAL_LABEL_PREFIX "."
3079 #define USER_LABEL_PREFIX ""
3080 #define IMMEDIATE_PREFIX "#"
3081
3082 /* If your target supports multiple dialects of assembler language (such as
3083    different opcodes), define this macro as a C expression that gives the
3084    numeric index of the assembler language dialect to use, with zero as the
3085    first variant.
3086
3087    If this macro is defined, you may use `{option0|option1|option2...}'
3088    constructs in the output templates of patterns or in the first argument of
3089    `asm_fprintf'.  This construct outputs `option0', `option1' or `option2',
3090    etc., if the value of `ASSEMBLER_DIALECT' is zero, one or two, etc.  Any
3091    special characters within these strings retain their usual meaning.
3092
3093    If you do not define this macro, the characters `{', `|' and `}' do not have
3094    any special meaning when used in templates or operands to `asm_fprintf'.
3095
3096    Define the macros `REGISTER_PREFIX', `LOCAL_LABEL_PREFIX',
3097    `USER_LABEL_PREFIX' and `IMMEDIATE_PREFIX' if you can express the variations
3098    in assemble language syntax with that mechanism.  Define `ASSEMBLER_DIALECT'
3099    and use the `{option0|option1}' syntax if the syntax variant are larger and
3100    involve such things as different opcodes or operand order.  */
3101 /* #define ASSEMBLER_DIALECT */
3102
3103 /* A C expression to output to STREAM some assembler code which will push hard
3104    register number REGNO onto the stack.  The code need not be optimal, since
3105    this macro is used only when profiling.  */
3106 #define ASM_OUTPUT_REG_PUSH(STREAM, REGNO) \
3107   fprintf (STREAM, "\tpush %d\n", REGNO)
3108
3109 /* A C expression to output to STREAM some assembler code which will pop hard
3110    register number REGNO off of the stack.  The code need not be optimal, since
3111    this macro is used only when profiling.  */
3112 #define ASM_OUTPUT_REG_POP(STREAM, REGNO) \
3113   fprintf (STREAM, "\tpop %d\n", REGNO)
3114
3115 \f
3116 /* Output of dispatch tables.  */
3117
3118 /* This port does not use the ASM_OUTPUT_ADDR_VEC_ELT macro, because
3119    this could cause label alignment to appear between the 'br' and the table,
3120    which would be bad.  Instead, it controls the output of the table
3121    itself.  */
3122 #define ASM_OUTPUT_ADDR_VEC(LABEL, BODY) \
3123   xstormy16_output_addr_vec (file, LABEL, BODY)
3124
3125 /* Alignment for ADDR_VECs is the same as for code.  */
3126 #define ADDR_VEC_ALIGN(ADDR_VEC) 1
3127
3128 \f
3129 /* Assembler Commands for Exception Regions.  */
3130
3131 /* An rtx used to mask the return address found via RETURN_ADDR_RTX, so that it
3132    does not contain any extraneous set bits in it.  */
3133 /* #define MASK_RETURN_ADDR */
3134
3135 /* Define this macro to 0 if your target supports DWARF 2 frame unwind
3136    information, but it does not yet work with exception handling.  Otherwise,
3137    if your target supports this information (if it defines
3138    `INCOMING_RETURN_ADDR_RTX'), GCC will provide a default definition of 1.
3139
3140    If this macro is defined to 1, the DWARF 2 unwinder will be the default
3141    exception handling mechanism; otherwise, setjmp/longjmp will be used by
3142    default.
3143
3144    If this macro is defined to anything, the DWARF 2 unwinder will be used
3145    instead of inline unwinders and __unwind_function in the non-setjmp case.  */
3146 #define DWARF2_UNWIND_INFO 0
3147
3148 /* Don't use __builtin_setjmp for unwinding, since it's tricky to get
3149    at the high 16 bits of an address.  */
3150 #define DONT_USE_BUILTIN_SETJMP
3151 #define JMP_BUF_SIZE  8
3152 \f
3153 /* Assembler Commands for Alignment.  */
3154
3155 /* The alignment (log base 2) to put in front of LABEL, which follows
3156    a BARRIER.
3157
3158    This macro need not be defined if you don't want any special alignment to be
3159    done at such a time.  Most machine descriptions do not currently define the
3160    macro.  */
3161 /* #define LABEL_ALIGN_AFTER_BARRIER(LABEL) */
3162
3163 /* The desired alignment for the location counter at the beginning
3164    of a loop.
3165
3166    This macro need not be defined if you don't want any special alignment to be
3167    done at such a time.  Most machine descriptions do not currently define the
3168    macro.  */
3169 /* #define LOOP_ALIGN(LABEL) */
3170
3171 /* A C statement to output to the stdio stream STREAM an assembler instruction
3172    to advance the location counter by NBYTES bytes.  Those bytes should be zero
3173    when loaded.  NBYTES will be a C expression of type `int'.
3174
3175    Defined in elfos.h.  */
3176 /* #define ASM_OUTPUT_SKIP(STREAM, NBYTES) */
3177
3178 /* Define this macro if `ASM_OUTPUT_SKIP' should not be used in the text
3179    section because it fails put zeros in the bytes that are skipped.  This is
3180    true on many Unix systems, where the pseudo-op to skip bytes produces no-op
3181    instructions rather than zeros when used in the text section.  */
3182 /* #define ASM_NO_SKIP_IN_TEXT */
3183
3184 /* A C statement to output to the stdio stream STREAM an assembler command to
3185    advance the location counter to a multiple of 2 to the POWER bytes.  POWER
3186    will be a C expression of type `int'.  */
3187 #define ASM_OUTPUT_ALIGN(STREAM, POWER) \
3188   fprintf ((STREAM), "\t.p2align %d\n", (POWER))
3189
3190 \f
3191 /* Macros Affecting all Debug Formats.  */
3192
3193 /* A C expression that returns the integer offset value for an automatic
3194    variable having address X (an RTL expression).  The default computation
3195    assumes that X is based on the frame-pointer and gives the offset from the
3196    frame-pointer.  This is required for targets that produce debugging output
3197    for DBX or COFF-style debugging output for SDB and allow the frame-pointer
3198    to be eliminated when the `-g' options is used.  */
3199 /* #define DEBUGGER_AUTO_OFFSET(X) */
3200
3201 /* A C expression that returns the integer offset value for an argument having
3202    address X (an RTL expression).  The nominal offset is OFFSET.  */
3203 /* #define DEBUGGER_ARG_OFFSET(OFFSET, X) */
3204
3205 /* A C expression that returns the type of debugging output GNU CC produces
3206    when the user specifies `-g' or `-ggdb'.  Define this if you have arranged
3207    for GNU CC to support more than one format of debugging output.  Currently,
3208    the allowable values are `DBX_DEBUG', `SDB_DEBUG', `DWARF_DEBUG',
3209    `DWARF2_DEBUG', and `XCOFF_DEBUG'.
3210
3211    The value of this macro only affects the default debugging output; the user
3212    can always get a specific type of output by using `-gstabs', `-gcoff',
3213    `-gdwarf-1', `-gdwarf-2', or `-gxcoff'.
3214
3215    Defined in svr4.h.  */
3216 #undef PREFERRED_DEBUGGING_TYPE
3217 #define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG
3218
3219 \f
3220 /* Specific Options for DBX Output.  */
3221
3222 /* Define this macro if GNU CC should produce debugging output for DBX in
3223    response to the `-g' option.
3224
3225    Defined in svr4.h.  */
3226 /* #define DBX_DEBUGGING_INFO */
3227
3228 /* Define this macro if GNU CC should produce XCOFF format debugging output in
3229    response to the `-g' option.  This is a variant of DBX format.  */
3230 /* #define XCOFF_DEBUGGING_INFO */
3231
3232 /* Define this macro to control whether GNU CC should by default generate GDB's
3233    extended version of DBX debugging information (assuming DBX-format debugging
3234    information is enabled at all).  If you don't define the macro, the default
3235    is 1: always generate the extended information if there is any occasion to.  */
3236 /* #define DEFAULT_GDB_EXTENSIONS */
3237
3238 /* Define this macro if all `.stabs' commands should be output while in the
3239    text section.  */
3240 /* #define DEBUG_SYMS_TEXT */
3241
3242 /* A C string constant naming the assembler pseudo op to use instead of
3243    `.stabs' to define an ordinary debugging symbol.  If you don't define this
3244    macro, `.stabs' is used.  This macro applies only to DBX debugging
3245    information format.  */
3246 /* #define ASM_STABS_OP */
3247
3248 /* A C string constant naming the assembler pseudo op to use instead of
3249    `.stabd' to define a debugging symbol whose value is the current location.
3250    If you don't define this macro, `.stabd' is used.  This macro applies only
3251    to DBX debugging information format.  */
3252 /* #define ASM_STABD_OP */
3253
3254 /* A C string constant naming the assembler pseudo op to use instead of
3255    `.stabn' to define a debugging symbol with no name.  If you don't define
3256    this macro, `.stabn' is used.  This macro applies only to DBX debugging
3257    information format.  */
3258 /* #define ASM_STABN_OP */
3259
3260 /* Define this macro if DBX on your system does not support the construct
3261    `xsTAGNAME'.  On some systems, this construct is used to describe a forward
3262    reference to a structure named TAGNAME.  On other systems, this construct is
3263    not supported at all.  */
3264 /* #define DBX_NO_XREFS */
3265
3266 /* A symbol name in DBX-format debugging information is normally continued
3267    (split into two separate `.stabs' directives) when it exceeds a certain
3268    length (by default, 80 characters).  On some operating systems, DBX requires
3269    this splitting; on others, splitting must not be done.  You can inhibit
3270    splitting by defining this macro with the value zero.  You can override the
3271    default splitting-length by defining this macro as an expression for the
3272    length you desire.  */
3273 /* #define DBX_CONTIN_LENGTH */
3274
3275 /* Normally continuation is indicated by adding a `\' character to the end of a
3276    `.stabs' string when a continuation follows.  To use a different character
3277    instead, define this macro as a character constant for the character you
3278    want to use.  Do not define this macro if backslash is correct for your
3279    system.  */
3280 /* #define DBX_CONTIN_CHAR */
3281
3282 /* Define this macro if it is necessary to go to the data section before
3283    outputting the `.stabs' pseudo-op for a non-global static variable.  */
3284 /* #define DBX_STATIC_STAB_DATA_SECTION */
3285
3286 /* The value to use in the "code" field of the `.stabs' directive for a
3287    typedef.  The default is `N_LSYM'.  */
3288 /* #define DBX_TYPE_DECL_STABS_CODE */
3289
3290 /* The value to use in the "code" field of the `.stabs' directive for a static
3291    variable located in the text section.  DBX format does not provide any
3292    "right" way to do this.  The default is `N_FUN'.  */
3293 /* #define DBX_STATIC_CONST_VAR_CODE */
3294
3295 /* The value to use in the "code" field of the `.stabs' directive for a
3296    parameter passed in registers.  DBX format does not provide any "right" way
3297    to do this.  The default is `N_RSYM'.  */
3298 /* #define DBX_REGPARM_STABS_CODE */
3299
3300 /* The letter to use in DBX symbol data to identify a symbol as a parameter
3301    passed in registers.  DBX format does not customarily provide any way to do
3302    this.  The default is `'P''.  */
3303 /* #define DBX_REGPARM_STABS_LETTER */
3304
3305 /* The letter to use in DBX symbol data to identify a symbol as a stack
3306    parameter.  The default is `'p''.  */
3307 /* #define DBX_MEMPARM_STABS_LETTER */
3308
3309 /* Define this macro if the DBX information for a function and its arguments
3310    should precede the assembler code for the function.  Normally, in DBX
3311    format, the debugging information entirely follows the assembler code.
3312
3313    Defined in svr4.h.  */
3314 /* #define DBX_FUNCTION_FIRST */
3315
3316 /* Define this macro if the `N_LBRAC' symbol for a block should precede the
3317    debugging information for variables and functions defined in that block.
3318    Normally, in DBX format, the `N_LBRAC' symbol comes first.  */
3319 /* #define DBX_LBRAC_FIRST */
3320
3321 /* Define this macro if the value of a symbol describing the scope of a block
3322    (`N_LBRAC' or `N_RBRAC') should be relative to the start of the enclosing
3323    function.  Normally, GNU C uses an absolute address.
3324
3325    Defined in svr4.h.  */
3326 /* #define DBX_BLOCKS_FUNCTION_RELATIVE */
3327
3328 /* Define this macro if GNU C should generate `N_BINCL' and `N_EINCL'
3329    stabs for included header files, as on Sun systems.  This macro
3330    also directs GNU C to output a type number as a pair of a file
3331    number and a type number within the file.  Normally, GNU C does not
3332    generate `N_BINCL' or `N_EINCL' stabs, and it outputs a single
3333    number for a type number.  */
3334 /* #define DBX_USE_BINCL */
3335
3336 \f
3337 /* Open ended Hooks for DBX Output.  */
3338
3339 /* Define this macro to say how to output to STREAM the debugging information
3340    for the start of a scope level for variable names.  The argument NAME is the
3341    name of an assembler symbol (for use with `assemble_name') whose value is
3342    the address where the scope begins.  */
3343 /* #define DBX_OUTPUT_LBRAC(STREAM, NAME) */
3344
3345 /* Like `DBX_OUTPUT_LBRAC', but for the end of a scope level.  */
3346 /* #define DBX_OUTPUT_RBRAC(STREAM, NAME) */
3347
3348 /* Define this macro if the target machine requires special handling to output
3349    an enumeration type.  The definition should be a C statement (sans
3350    semicolon) to output the appropriate information to STREAM for the type
3351    TYPE.  */
3352 /* #define DBX_OUTPUT_ENUM(STREAM, TYPE) */
3353
3354 /* Define this macro if the target machine requires special output at the end
3355    of the debugging information for a function.  The definition should be a C
3356    statement (sans semicolon) to output the appropriate information to STREAM.
3357    FUNCTION is the `FUNCTION_DECL' node for the function.  */
3358 /* #define DBX_OUTPUT_FUNCTION_END(STREAM, FUNCTION) */
3359
3360 /* Define this macro if you need to control the order of output of the standard
3361    data types at the beginning of compilation.  The argument SYMS is a `tree'
3362    which is a chain of all the predefined global symbols, including names of
3363    data types.
3364
3365    Normally, DBX output starts with definitions of the types for integers and
3366    characters, followed by all the other predefined types of the particular
3367    language in no particular order.
3368
3369    On some machines, it is necessary to output different particular types
3370    first.  To do this, define `DBX_OUTPUT_STANDARD_TYPES' to output those
3371    symbols in the necessary order.  Any predefined types that you don't
3372    explicitly output will be output afterward in no particular order.
3373
3374    Be careful not to define this macro so that it works only for C.  There are
3375    no global variables to access most of the built-in types, because another
3376    language may have another set of types.  The way to output a particular type
3377    is to look through SYMS to see if you can find it.  Here is an example:
3378
3379         {
3380           tree decl;
3381           for (decl = syms; decl; decl = TREE_CHAIN (decl))
3382             if (!strcmp (IDENTIFIER_POINTER (DECL_NAME (decl)),
3383                          "long int"))
3384               dbxout_symbol (decl);
3385           ...
3386         }
3387
3388    This does nothing if the expected type does not exist.
3389
3390    See the function `init_decl_processing' in `c-decl.c' to find the names to
3391    use for all the built-in C types.  */
3392 /* #define DBX_OUTPUT_STANDARD_TYPES(SYMS) */
3393
3394 /* Some stabs encapsulation formats (in particular ECOFF), cannot
3395    handle the `.stabs "",N_FUN,,0,0,Lscope-function-1' gdb dbx
3396    extension construct.  On those machines, define this macro to turn
3397    this feature off without disturbing the rest of the gdb extensions.  */
3398 /* #define NO_DBX_FUNCTION_END */
3399
3400 \f
3401 /* File names in DBX format.  */
3402
3403 /* Define this if DBX wants to have the current directory recorded in each
3404    object file.
3405
3406    Note that the working directory is always recorded if GDB extensions are
3407    enabled.  */
3408 /* #define DBX_WORKING_DIRECTORY */
3409
3410 /* A C statement to output DBX debugging information to the stdio stream STREAM
3411    which indicates that file NAME is the main source file--the file specified
3412    as the input file for compilation.  This macro is called only once, at the
3413    beginning of compilation.
3414
3415    This macro need not be defined if the standard form of output for DBX
3416    debugging information is appropriate.
3417
3418    Defined in svr4.h.  */
3419 /* #define DBX_OUTPUT_MAIN_SOURCE_FILENAME(STREAM, NAME) */
3420
3421 /* A C statement to output DBX debugging information to the stdio stream STREAM
3422    which indicates that the current directory during compilation is named NAME.
3423
3424    This macro need not be defined if the standard form of output for DBX
3425    debugging information is appropriate.  */
3426 /* #define DBX_OUTPUT_MAIN_SOURCE_DIRECTORY(STREAM, NAME) */
3427
3428 /* A C statement to output DBX debugging information at the end of compilation
3429    of the main source file NAME.
3430
3431    If you don't define this macro, nothing special is output at the end of
3432    compilation, which is correct for most machines.  */
3433 /* #define DBX_OUTPUT_MAIN_SOURCE_FILE_END(STREAM, NAME) */
3434
3435 /* A C statement to output DBX debugging information to the stdio stream STREAM
3436    which indicates that file NAME is the current source file.  This output is
3437    generated each time input shifts to a different source file as a result of
3438    `#include', the end of an included file, or a `#line' command.
3439
3440    This macro need not be defined if the standard form of output for DBX
3441    debugging information is appropriate.  */
3442 /* #define DBX_OUTPUT_SOURCE_FILENAME(STREAM, NAME) */
3443
3444 \f
3445 /* Macros for SDB and Dwarf Output.  */
3446
3447 /* Define this macro if GNU CC should produce COFF-style debugging output for
3448    SDB in response to the `-g' option.  */
3449 /* #define SDB_DEBUGGING_INFO */
3450
3451 /* Define this macro if GNU CC should produce dwarf format debugging output in
3452    response to the `-g' option.
3453
3454    Defined in svr4.h.  */
3455 /* #define DWARF_DEBUGGING_INFO */
3456
3457 /* Define this macro if GNU CC should produce dwarf version 2 format debugging
3458    output in response to the `-g' option.
3459
3460    To support optional call frame debugging information, you must also define
3461    `INCOMING_RETURN_ADDR_RTX' and either set `RTX_FRAME_RELATED_P' on the
3462    prologue insns if you use RTL for the prologue, or call `dwarf2out_def_cfa'
3463    and `dwarf2out_reg_save' as appropriate from `TARGET_ASM_FUNCTION_PROLOGUE'
3464    if you don't.
3465
3466    Defined in svr4.h.  */
3467 /* #define DWARF2_DEBUGGING_INFO */
3468
3469 /* Define this macro if GNU CC should produce dwarf version 2-style
3470    line numbers.  This usually requires extending the assembler to
3471    support them, and #defining DWARF2_LINE_MIN_INSN_LENGTH in the
3472    assembler configuration header files.  */
3473 /* #define DWARF2_ASM_LINE_DEBUG_INFO 1 */
3474
3475 /* Define this macro if addresses in Dwarf 2 debugging info should not
3476    be the same size as pointers on the target architecture.  The
3477    macro's value should be the size, in bytes, to use for addresses in
3478    the debugging info.
3479
3480    Some architectures use word addresses to refer to code locations,
3481    but Dwarf 2 info always uses byte addresses.  On such machines,
3482    Dwarf 2 addresses need to be larger than the architecture's
3483    pointers.  */
3484 #define DWARF2_ADDR_SIZE 4
3485
3486 /* Define the architecture-dependent minimum instruction length (in
3487    bytes).  */
3488 #define DWARF_LINE_MIN_INSTR_LENGTH 2
3489
3490
3491 /* Define these macros to override the assembler syntax for the special SDB
3492    assembler directives.  See `sdbout.c' for a list of these macros and their
3493    arguments.  If the standard syntax is used, you need not define them
3494    yourself.  */
3495 /* #define PUT_SDB_...  */
3496
3497 /* Some assemblers do not support a semicolon as a delimiter, even between SDB
3498    assembler directives.  In that case, define this macro to be the delimiter
3499    to use (usually `\n').  It is not necessary to define a new set of
3500    `PUT_SDB_OP' macros if this is the only change required.  */
3501 /* #define SDB_DELIM */
3502
3503 /* Define this macro to override the usual method of constructing a dummy name
3504    for anonymous structure and union types.  See `sdbout.c' for more
3505    information.  */
3506 /* #define SDB_GENERATE_FAKE */
3507
3508 /* Define this macro to allow references to unknown structure, union, or
3509    enumeration tags to be emitted.  Standard COFF does not allow handling of
3510    unknown references, MIPS ECOFF has support for it.  */
3511 /* #define SDB_ALLOW_UNKNOWN_REFERENCES */
3512
3513 /* Define this macro to allow references to structure, union, or enumeration
3514    tags that have not yet been seen to be handled.  Some assemblers choke if
3515    forward tags are used, while some require it.  */
3516 /* #define SDB_ALLOW_FORWARD_REFERENCES */
3517
3518 \f
3519 /* Miscellaneous Parameters.  */
3520
3521 /* Define this if you have defined special-purpose predicates in the file
3522    `MACHINE.c'.  This macro is called within an initializer of an array of
3523    structures.  The first field in the structure is the name of a predicate and
3524    the second field is an array of rtl codes.  For each predicate, list all rtl
3525    codes that can be in expressions matched by the predicate.  The list should
3526    have a trailing comma.  Here is an example of two entries in the list for a
3527    typical RISC machine:
3528
3529         #define PREDICATE_CODES \
3530           {"gen_reg_rtx_operand", {SUBREG, REG}},  \
3531           {"reg_or_short_cint_operand", {SUBREG, REG, CONST_INT}},
3532
3533    Defining this macro does not affect the generated code (however, incorrect
3534    definitions that omit an rtl code that may be matched by the predicate can
3535    cause the compiler to malfunction).  Instead, it allows the table built by
3536    `genrecog' to be more compact and efficient, thus speeding up the compiler.
3537    The most important predicates to include in the list specified by this macro
3538    are thoses used in the most insn patterns.  */
3539 #define PREDICATE_CODES                                 \
3540   {"shift_operator", {ASHIFT, ASHIFTRT, LSHIFTRT }},    \
3541   {"equality_operator", {EQ, NE }},                     \
3542   {"inequality_operator", {GE, GT, LE, LT, GEU, GTU, LEU, LTU }}, \
3543   {"xstormy16_ineqsi_operator", {LT, GE, LTU, GEU }}, \
3544   {"nonimmediate_nonstack_operand", {REG, MEM}},
3545 /* An alias for a machine mode name.  This is the machine mode that elements of
3546    a jump-table should have.  */
3547 #define CASE_VECTOR_MODE SImode
3548
3549 /* Define as C expression which evaluates to nonzero if the tablejump
3550    instruction expects the table to contain offsets from the address of the
3551    table.
3552    Do not define this if the table should contain absolute addresses.  */
3553 /* #define CASE_VECTOR_PC_RELATIVE 1 */
3554
3555 /* Define this if control falls through a `case' insn when the index value is
3556    out of range.  This means the specified default-label is actually ignored by
3557    the `case' insn proper.  */
3558 /* #define CASE_DROPS_THROUGH */
3559
3560 /* Define this to be the smallest number of different values for which it is
3561    best to use a jump-table instead of a tree of conditional branches.  The
3562    default is four for machines with a `casesi' instruction and five otherwise.
3563    This is best for most machines.  */
3564 /* #define CASE_VALUES_THRESHOLD */
3565
3566 /* Define this macro if operations between registers with integral mode smaller
3567    than a word are always performed on the entire register.  Most RISC machines
3568    have this property and most CISC machines do not.  */
3569 #define WORD_REGISTER_OPERATIONS
3570
3571 /* Define this macro to be a C expression indicating when insns that read
3572    memory in MODE, an integral mode narrower than a word, set the bits outside
3573    of MODE to be either the sign-extension or the zero-extension of the data
3574    read.  Return `SIGN_EXTEND' for values of MODE for which the insn
3575    sign-extends, `ZERO_EXTEND' for which it zero-extends, and `NIL' for other
3576    modes.
3577
3578    This macro is not called with MODE non-integral or with a width greater than
3579    or equal to `BITS_PER_WORD', so you may return any value in this case.  Do
3580    not define this macro if it would always return `NIL'.  On machines where
3581    this macro is defined, you will normally define it as the constant
3582    `SIGN_EXTEND' or `ZERO_EXTEND'.  */
3583 #define LOAD_EXTEND_OP(MODE) ZERO_EXTEND
3584
3585 /* Define if loading short immediate values into registers sign extends.  */
3586 /* #define SHORT_IMMEDIATES_SIGN_EXTEND */
3587
3588 /* Define this macro if the same instructions that convert a floating point
3589    number to a signed fixed point number also convert validly to an unsigned
3590    one.  */
3591 /* #define FIXUNS_TRUNC_LIKE_FIX_TRUNC */
3592
3593 /* The maximum number of bytes that a single instruction can move quickly from
3594    memory to memory.  */
3595 #define MOVE_MAX 2
3596
3597 /* The maximum number of bytes that a single instruction can move quickly from
3598    memory to memory.  If this is undefined, the default is `MOVE_MAX'.
3599    Otherwise, it is the constant value that is the largest value that
3600    `MOVE_MAX' can have at run-time.  */
3601 /* #define MAX_MOVE_MAX */
3602
3603 /* A C expression that is nonzero if on this machine the number of bits
3604    actually used for the count of a shift operation is equal to the number of
3605    bits needed to represent the size of the object being shifted.  When this
3606    macro is nonzero, the compiler will assume that it is safe to omit a
3607    sign-extend, zero-extend, and certain bitwise `and' instructions that
3608    truncates the count of a shift operation.  On machines that have
3609    instructions that act on bitfields at variable positions, which may include
3610    `bit test' instructions, a nonzero `SHIFT_COUNT_TRUNCATED' also enables
3611    deletion of truncations of the values that serve as arguments to bitfield
3612    instructions.
3613
3614    If both types of instructions truncate the count (for shifts) and position
3615    (for bit-field operations), or if no variable-position bit-field instructions
3616    exist, you should define this macro.
3617
3618    However, on some machines, such as the 80386 and the 680x0, truncation only
3619    applies to shift operations and not the (real or pretended) bitfield
3620    operations.  Define `SHIFT_COUNT_TRUNCATED' to be zero on such machines.
3621    Instead, add patterns to the `md' file that include the implied truncation
3622    of the shift instructions.
3623
3624    You need not define this macro if it would always have the value of zero.  */
3625 #define SHIFT_COUNT_TRUNCATED 1
3626
3627 /* A C expression which is nonzero if on this machine it is safe to "convert"
3628    an integer of INPREC bits to one of OUTPREC bits (where OUTPREC is smaller
3629    than INPREC) by merely operating on it as if it had only OUTPREC bits.
3630
3631    On many machines, this expression can be 1.
3632
3633    When `TRULY_NOOP_TRUNCATION' returns 1 for a pair of sizes for modes for
3634    which `MODES_TIEABLE_P' is 0, suboptimal code can result.  If this is the
3635    case, making `TRULY_NOOP_TRUNCATION' return 0 in such cases may improve
3636    things.  */
3637 #define TRULY_NOOP_TRUNCATION(OUTPREC, INPREC) 1
3638
3639 /* A C expression describing the value returned by a comparison operator with
3640    an integral mode and stored by a store-flag instruction (`sCOND') when the
3641    condition is true.  This description must apply to *all* the `sCOND'
3642    patterns and all the comparison operators whose results have a `MODE_INT'
3643    mode.
3644
3645    A value of 1 or -1 means that the instruction implementing the comparison
3646    operator returns exactly 1 or -1 when the comparison is true and 0 when the
3647    comparison is false.  Otherwise, the value indicates which bits of the
3648    result are guaranteed to be 1 when the comparison is true.  This value is
3649    interpreted in the mode of the comparison operation, which is given by the
3650    mode of the first operand in the `sCOND' pattern.  Either the low bit or the
3651    sign bit of `STORE_FLAG_VALUE' be on.  Presently, only those bits are used
3652    by the compiler.
3653
3654    If `STORE_FLAG_VALUE' is neither 1 or -1, the compiler will generate code
3655    that depends only on the specified bits.  It can also replace comparison
3656    operators with equivalent operations if they cause the required bits to be
3657    set, even if the remaining bits are undefined.  For example, on a machine
3658    whose comparison operators return an `SImode' value and where
3659    `STORE_FLAG_VALUE' is defined as `0x80000000', saying that just the sign bit
3660    is relevant, the expression
3661
3662         (ne:SI (and:SI X (const_int POWER-OF-2)) (const_int 0))
3663
3664    can be converted to
3665
3666         (ashift:SI X (const_int N))
3667
3668    where N is the appropriate shift count to move the bit being tested into the
3669    sign bit.
3670
3671    There is no way to describe a machine that always sets the low-order bit for
3672    a true value, but does not guarantee the value of any other bits, but we do
3673    not know of any machine that has such an instruction.  If you are trying to
3674    port GNU CC to such a machine, include an instruction to perform a
3675    logical-and of the result with 1 in the pattern for the comparison operators
3676    and let us know.
3677
3678    Often, a machine will have multiple instructions that obtain a value from a
3679    comparison (or the condition codes).  Here are rules to guide the choice of
3680    value for `STORE_FLAG_VALUE', and hence the instructions to be used:
3681
3682       * Use the shortest sequence that yields a valid definition for
3683         `STORE_FLAG_VALUE'.  It is more efficient for the compiler to
3684         "normalize" the value (convert it to, e.g., 1 or 0) than for
3685         the comparison operators to do so because there may be
3686         opportunities to combine the normalization with other
3687         operations.
3688
3689       * For equal-length sequences, use a value of 1 or -1, with -1
3690         being slightly preferred on machines with expensive jumps and
3691         1 preferred on other machines.
3692
3693       * As a second choice, choose a value of `0x80000001' if
3694         instructions exist that set both the sign and low-order bits
3695         but do not define the others.
3696
3697       * Otherwise, use a value of `0x80000000'.
3698
3699    Many machines can produce both the value chosen for `STORE_FLAG_VALUE' and
3700    its negation in the same number of instructions.  On those machines, you
3701    should also define a pattern for those cases, e.g., one matching
3702
3703         (set A (neg:M (ne:M B C)))
3704
3705    Some machines can also perform `and' or `plus' operations on condition code
3706    values with less instructions than the corresponding `sCOND' insn followed
3707    by `and' or `plus'.  On those machines, define the appropriate patterns.
3708    Use the names `incscc' and `decscc', respectively, for the patterns
3709    which perform `plus' or `minus' operations on condition code values.  See
3710    `rs6000.md' for some examples.  The GNU Superoptizer can be used to find
3711    such instruction sequences on other machines.
3712
3713    You need not define `STORE_FLAG_VALUE' if the machine has no store-flag
3714    instructions.  */
3715 /* #define STORE_FLAG_VALUE */
3716
3717 /* A C expression that gives a nonzero floating point value that is returned
3718    when comparison operators with floating-point results are true.  Define this
3719    macro on machine that have comparison operations that return floating-point
3720    values.  If there are no such operations, do not define this macro.  */
3721 /* #define FLOAT_STORE_FLAG_VALUE */
3722
3723 /* An alias for the machine mode for pointers.  On most machines, define this
3724    to be the integer mode corresponding to the width of a hardware pointer;
3725    `SImode' on 32-bit machine or `DImode' on 64-bit machines.  On some machines
3726    you must define this to be one of the partial integer modes, such as
3727    `PSImode'.
3728
3729    The width of `Pmode' must be at least as large as the value of
3730    `POINTER_SIZE'.  If it is not equal, you must define the macro
3731    `POINTERS_EXTEND_UNSIGNED' to specify how pointers are extended to `Pmode'.  */
3732 #define Pmode HImode
3733
3734 /* An alias for the machine mode used for memory references to functions being
3735    called, in `call' RTL expressions.  On most machines this should be
3736    `QImode'.  */
3737 #define FUNCTION_MODE HImode
3738
3739 /* A C expression for the maximum number of instructions above which the
3740    function DECL should not be inlined.  DECL is a `FUNCTION_DECL' node.
3741
3742    The default definition of this macro is 64 plus 8 times the number of
3743    arguments that the function accepts.  Some people think a larger threshold
3744    should be used on RISC machines.  */
3745 /* #define INTEGRATE_THRESHOLD(DECL) */
3746
3747 /* Define this macro if the system header files support C++ as well as C.  This
3748    macro inhibits the usual method of using system header files in C++, which
3749    is to pretend that the file's contents are enclosed in `extern "C" {...}'.  */
3750 #define NO_IMPLICIT_EXTERN_C
3751
3752 /* Define this macro if you want to implement any pragmas.  If defined, it
3753    should be a C expression to be executed when #pragma is seen.  The
3754    argument GETC is a function which will return the next character in the
3755    input stream, or EOF if no characters are left.  The argument UNGETC is
3756    a function which will push a character back into the input stream.  The
3757    argument NAME is the word following #pragma in the input stream.  The input
3758    stream pointer will be pointing just beyond the end of this word.  The
3759    expression should return true if it handled the pragma, false otherwise.
3760    The input stream should be left undistrubed if false is returned, otherwise
3761    it should be pointing at the next character after the end of the pragma.
3762    Any characters left between the end of the pragma and the end of the line will
3763    be ignored.
3764    
3765    It is generally a bad idea to implement new uses of `#pragma'.  The only
3766    reason to define this macro is for compatibility with other compilers that
3767    do support `#pragma' for the sake of any user programs which already use it.  */
3768 /* #define HANDLE_PRAGMA(GETC, UNGETC, NAME) handle_pragma (GETC, UNGETC, NAME) */
3769
3770 /* Define this macro to handle System V style pragmas: #pragma pack and
3771    #pragma weak.  Note, #pragma weak will only be supported if SUPPORT_WEAK is
3772    defined.
3773
3774    Defined in svr4.h.  */
3775 #define HANDLE_SYSV_PRAGMA 1
3776
3777 /* Define this macro if you want to support the Win32 style pragmas
3778    #pragma pack(push,<n>) and #pragma pack(pop).  */
3779 /* HANDLE_PRAGMA_PACK_PUSH_POP 1 */
3780    
3781 /* Define this macro if the assembler does not accept the character `$' in
3782    label names.  By default constructors and destructors in G++ have `$' in the
3783    identifiers.  If this macro is defined, `.' is used instead.
3784
3785    Defined in svr4.h.  */
3786 /* #define NO_DOLLAR_IN_LABEL */
3787
3788 /* Define this macro if the assembler does not accept the character `.' in
3789    label names.  By default constructors and destructors in G++ have names that
3790    use `.'.  If this macro is defined, these names are rewritten to avoid `.'.  */
3791 /* #define NO_DOT_IN_LABEL */
3792
3793 /* Define this macro if the target system expects every program's `main'
3794    function to return a standard "success" value by default (if no other value
3795    is explicitly returned).
3796
3797    The definition should be a C statement (sans semicolon) to generate the
3798    appropriate rtl instructions.  It is used only when compiling the end of
3799    `main'.  */
3800 /* #define DEFAULT_MAIN_RETURN */
3801
3802 /* Define this if the target system supports the function `atexit' from the
3803    ANSI C standard.  If this is not defined, and `INIT_SECTION_ASM_OP' is not
3804    defined, a default `exit' function will be provided to support C++.
3805
3806    Defined by svr4.h */
3807 /* #define HAVE_ATEXIT */
3808
3809 /* Define this if your `exit' function needs to do something besides calling an
3810    external function `_cleanup' before terminating with `_exit'.  The
3811    `EXIT_BODY' macro is only needed if netiher `HAVE_ATEXIT' nor
3812    `INIT_SECTION_ASM_OP' are defined.  */
3813 /* #define EXIT_BODY */
3814
3815 /* Define this macro as a C expression that is nonzero if it is safe for the
3816    delay slot scheduler to place instructions in the delay slot of INSN, even
3817    if they appear to use a resource set or clobbered in INSN.  INSN is always a
3818    `jump_insn' or an `insn'; GNU CC knows that every `call_insn' has this
3819    behavior.  On machines where some `insn' or `jump_insn' is really a function
3820    call and hence has this behavior, you should define this macro.
3821
3822    You need not define this macro if it would always return zero.  */
3823 /* #define INSN_SETS_ARE_DELAYED(INSN) */
3824
3825 /* Define this macro as a C expression that is nonzero if it is safe for the
3826    delay slot scheduler to place instructions in the delay slot of INSN, even
3827    if they appear to set or clobber a resource referenced in INSN.  INSN is
3828    always a `jump_insn' or an `insn'.  On machines where some `insn' or
3829    `jump_insn' is really a function call and its operands are registers whose
3830    use is actually in the subroutine it calls, you should define this macro.
3831    Doing so allows the delay slot scheduler to move instructions which copy
3832    arguments into the argument registers into the delay slot of INSN.
3833
3834    You need not define this macro if it would always return zero.  */
3835 /* #define INSN_REFERENCES_ARE_DELAYED(INSN) */
3836
3837 /* In rare cases, correct code generation requires extra machine dependent
3838    processing between the second jump optimization pass and delayed branch
3839    scheduling.  On those machines, define this macro as a C statement to act on
3840    the code starting at INSN.  */
3841 /* #define MACHINE_DEPENDENT_REORG(INSN) */
3842
3843 /* Define this macro if in some cases global symbols from one translation unit
3844    may not be bound to undefined symbols in another translation unit without
3845    user intervention.  For instance, under Microsoft Windows symbols must be
3846    explicitly imported from shared libraries (DLLs).  */
3847 /* #define MULTIPLE_SYMBOL_SPACES */
3848
3849 /* A C expression for the maximum number of instructions to execute via
3850    conditional execution instructions instead of a branch.  A value of
3851    BRANCH_COST+1 is the default if the machine does not use
3852    cc0, and 1 if it does use cc0.  */
3853 /* #define MAX_CONDITIONAL_EXECUTE */
3854
3855 /* A C statement that adds to tree CLOBBERS a set of STRING_CST trees for any
3856    hard regs the port wishes to automatically clobber for all asms.  */
3857 /* #define MD_ASM_CLOBBERS(CLOBBERS) */
3858
3859 /* Indicate how many instructions can be issued at the same time.  */
3860 /* #define ISSUE_RATE */
3861
3862 /* A C statement which is executed by the Haifa scheduler at the beginning of
3863    each block of instructions that are to be scheduled.  FILE is either a null
3864    pointer, or a stdio stream to write any debug output to.  VERBOSE is the
3865    verbose level provided by -fsched-verbose-<n>.  */
3866 /* #define MD_SCHED_INIT (FILE, VERBOSE) */
3867
3868 /* A C statement which is executed by the Haifa scheduler after it has scheduled
3869    the ready list to allow the machine description to reorder it (for example to
3870    combine two small instructions together on VLIW machines).  FILE is either a
3871    null pointer, or a stdio stream to write any debug output to.  VERBOSE is the
3872    verbose level provided by -fsched-verbose-=<n>.  READY is a pointer to the
3873    ready list of instructions that are ready to be scheduled.  N_READY is the
3874    number of elements in the ready list.  The scheduler reads the ready list in
3875    reverse order, starting with READY[N_READY-1] and going to READY[0].  CLOCK
3876    is the timer tick of the scheduler.  CAN_ISSUE_MORE is an output parameter that
3877    is set to the number of insns that can issue this clock; normally this is just
3878    'issue_rate'  */
3879 /* #define  MD_SCHED_REORDER (FILE, VERBOSE, READY, N_READY, CLOCK, CAN_ISSUE_MORE) */
3880
3881 /* A C statement which is executed by the Haifa scheduler after it has scheduled
3882    an insn from the ready list.  FILE is either a null pointer, or a stdio stream
3883    to write any debug output to.  VERBOSE is the verbose level provided by
3884    -fsched-verbose-<n>.  INSN is the instruction that was scheduled.  MORE is the
3885    number of instructions that can be issued in the current cycle.  This macro
3886    is responsible for updating the value of MORE (typically by (MORE)--).  */
3887 /* #define MD_SCHED_VARIABLE_ISSUE (FILE, VERBOSE, INSN, MORE) */
3888
3889 /* Define this to the largest integer machine mode which can be used for
3890    operations other than load, store and copy operations.  You need only define
3891    this macro if the target holds values larger than word_mode in general purpose
3892    registers.  Most targets should not define this macro.  */
3893 /* #define MAX_INTEGER_COMPUTATION_MODE */
3894
3895 /* Define this macro as a C string constant for the linker argument to link in the
3896    system math library, or "" if the target does not have a separate math library.
3897    You need only define this macro if the default of "-lm" is wrong.  */
3898 /* #define  MATH_LIBRARY */
3899 \f
3900 /* Define the information needed to generate branch and scc insns.  This is
3901    stored from the compare operation.  Note that we can't use "rtx" here
3902    since it hasn't been defined!  */
3903
3904 extern struct rtx_def *xstormy16_compare_op0, *xstormy16_compare_op1;
3905
3906 /* End of xstormy16.h */