OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [config/] [rx/] [rx.h] - Diff between revs 282 and 384

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 282 Rev 384
/* GCC backend definitions for the Renesas RX processor.
/* GCC backend definitions for the Renesas RX processor.
   Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc.
   Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc.
   Contributed by Red Hat.
   Contributed by Red Hat.
 
 
   This file is part of GCC.
   This file is part of GCC.
 
 
   GCC is free software; you can redistribute it and/or modify it
   GCC is free software; you can redistribute it and/or modify it
   under the terms of the GNU General Public License as published
   under the terms of the GNU General Public License as published
   by the Free Software Foundation; either version 3, or (at your
   by the Free Software Foundation; either version 3, or (at your
   option) any later version.
   option) any later version.
 
 
   GCC is distributed in the hope that it will be useful, but WITHOUT
   GCC is distributed in the hope that it will be useful, but WITHOUT
   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
   or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
   or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
   License for more details.
   License for more details.
 
 
   You should have received a copy of the GNU General Public License
   You should have received a copy of the GNU General Public License
   along with GCC; see the file COPYING3.  If not see
   along with GCC; see the file COPYING3.  If not see
   <http://www.gnu.org/licenses/>.  */
   <http://www.gnu.org/licenses/>.  */


 
 
#define TARGET_CPU_CPP_BUILTINS()               \
#define TARGET_CPU_CPP_BUILTINS()               \
  do                                            \
  do                                            \
    {                                           \
    {                                           \
      builtin_define ("__RX__");                \
      builtin_define ("__RX__");                \
      builtin_assert ("cpu=RX");                \
      builtin_assert ("cpu=RX");                \
      if (rx_cpu_type == RX610)                 \
      if (rx_cpu_type == RX610)                 \
        builtin_assert ("machine=RX610");       \
        builtin_assert ("machine=RX610");       \
     else                                       \
     else                                       \
        builtin_assert ("machine=RX600");       \
        builtin_assert ("machine=RX600");       \
                                                \
                                                \
      if (TARGET_BIG_ENDIAN_DATA)               \
      if (TARGET_BIG_ENDIAN_DATA)               \
        builtin_define ("__RX_BIG_ENDIAN__");   \
        builtin_define ("__RX_BIG_ENDIAN__");   \
      else                                      \
      else                                      \
        builtin_define ("__RX_LITTLE_ENDIAN__");\
        builtin_define ("__RX_LITTLE_ENDIAN__");\
                                                \
                                                \
      if (TARGET_64BIT_DOUBLES)                 \
      if (TARGET_64BIT_DOUBLES)                 \
        builtin_define ("__RX_64BIT_DOUBLES__");\
        builtin_define ("__RX_64BIT_DOUBLES__");\
      else                                      \
      else                                      \
        builtin_define ("__RX_32BIT_DOUBLES__");\
        builtin_define ("__RX_32BIT_DOUBLES__");\
                                                \
                                                \
      if (ALLOW_RX_FPU_INSNS)                   \
      if (ALLOW_RX_FPU_INSNS)                   \
        builtin_define ("__RX_FPU_INSNS__");    \
        builtin_define ("__RX_FPU_INSNS__");    \
                                                \
                                                \
      if (TARGET_AS100_SYNTAX)                  \
      if (TARGET_AS100_SYNTAX)                  \
        builtin_define ("__RX_AS100_SYNTAX__"); \
        builtin_define ("__RX_AS100_SYNTAX__"); \
      else                                      \
      else                                      \
        builtin_define ("__RX_GAS_SYNTAX__");   \
        builtin_define ("__RX_GAS_SYNTAX__");   \
    }                                           \
    }                                           \
  while (0)
  while (0)
 
 
enum rx_cpu_types
enum rx_cpu_types
{
{
  RX600,
  RX600,
  RX610,
  RX610,
  RX200
  RX200
};
};
 
 
extern enum rx_cpu_types  rx_cpu_type;
extern enum rx_cpu_types  rx_cpu_type;
 
 
#undef  CC1_SPEC
#undef  CC1_SPEC
#define CC1_SPEC "\
#define CC1_SPEC "\
  %{mas100-syntax:%{gdwarf*:%e-mas100-syntax is incompatible with -gdwarf}} \
  %{mas100-syntax:%{gdwarf*:%e-mas100-syntax is incompatible with -gdwarf}} \
  %{mcpu=rx200:%{fpu:%erx200 cpu does not have FPU hardware}}"
  %{mcpu=rx200:%{fpu:%erx200 cpu does not have FPU hardware}}"
 
 
#undef  STARTFILE_SPEC
#undef  STARTFILE_SPEC
#define STARTFILE_SPEC "%{pg:gcrt0.o%s}%{!pg:crt0.o%s} crtbegin.o%s"
#define STARTFILE_SPEC "%{pg:gcrt0.o%s}%{!pg:crt0.o%s} crtbegin.o%s"
 
 
#undef  ENDFILE_SPEC
#undef  ENDFILE_SPEC
#define ENDFILE_SPEC "crtend.o%s crtn.o%s"
#define ENDFILE_SPEC "crtend.o%s crtn.o%s"
 
 
#undef  ASM_SPEC
#undef  ASM_SPEC
#define ASM_SPEC "\
#define ASM_SPEC "\
%{mbig-endian-data:-mbig-endian-data} \
%{mbig-endian-data:-mbig-endian-data} \
%{m64bit-doubles:-m64bit-doubles} \
%{m64bit-doubles:-m64bit-doubles} \
%{!m64bit-doubles:-m32bit-doubles} \
%{!m64bit-doubles:-m32bit-doubles} \
%{msmall-data-limit*:-msmall-data-limit} \
%{msmall-data-limit*:-msmall-data-limit} \
%{mrelax:-relax} \
%{mrelax:-relax} \
"
"
 
 
#undef  LIB_SPEC
#undef  LIB_SPEC
#define LIB_SPEC "                                      \
#define LIB_SPEC "                                      \
--start-group                                           \
--start-group                                           \
-lc                                                     \
-lc                                                     \
%{msim*:-lsim}%{!msim*:-lnosys}                         \
%{msim*:-lsim}%{!msim*:-lnosys}                         \
%{fprofile-arcs|fprofile-generate|coverage:-lgcov}      \
%{fprofile-arcs|fprofile-generate|coverage:-lgcov}      \
--end-group                                             \
--end-group                                             \
%{!T*: %{msim*:%Trx-sim.ld}%{!msim*:%Trx.ld}}           \
%{!T*: %{msim*:%Trx-sim.ld}%{!msim*:%Trx.ld}}           \
"
"
 
 
#undef  LINK_SPEC
#undef  LINK_SPEC
#define LINK_SPEC "%{mbig-endian-data:--oformat elf32-rx-be} %{mrelax:-relax}"
#define LINK_SPEC "%{mbig-endian-data:--oformat elf32-rx-be} %{mrelax:-relax}"


 
 
#define BITS_BIG_ENDIAN                 0
#define BITS_BIG_ENDIAN                 0
#define BYTES_BIG_ENDIAN                TARGET_BIG_ENDIAN_DATA
#define BYTES_BIG_ENDIAN                TARGET_BIG_ENDIAN_DATA
#define WORDS_BIG_ENDIAN                TARGET_BIG_ENDIAN_DATA
#define WORDS_BIG_ENDIAN                TARGET_BIG_ENDIAN_DATA
 
 
#ifdef __RX_BIG_ENDIAN__
#ifdef __RX_BIG_ENDIAN__
#define LIBGCC2_WORDS_BIG_ENDIAN        1
#define LIBGCC2_WORDS_BIG_ENDIAN        1
#else
#else
#define LIBGCC2_WORDS_BIG_ENDIAN        0
#define LIBGCC2_WORDS_BIG_ENDIAN        0
#endif
#endif
 
 
#define UNITS_PER_WORD                  4
#define UNITS_PER_WORD                  4
 
 
#define INT_TYPE_SIZE                   32
#define INT_TYPE_SIZE                   32
#define LONG_TYPE_SIZE                  32
#define LONG_TYPE_SIZE                  32
#define LONG_LONG_TYPE_SIZE             64
#define LONG_LONG_TYPE_SIZE             64
 
 
#define FLOAT_TYPE_SIZE                 32
#define FLOAT_TYPE_SIZE                 32
#define DOUBLE_TYPE_SIZE                (TARGET_64BIT_DOUBLES ? 64 : 32)
#define DOUBLE_TYPE_SIZE                (TARGET_64BIT_DOUBLES ? 64 : 32)
#define LONG_DOUBLE_TYPE_SIZE           DOUBLE_TYPE_SIZE
#define LONG_DOUBLE_TYPE_SIZE           DOUBLE_TYPE_SIZE
 
 
#ifdef __RX_32BIT_DOUBLES__
#ifdef __RX_32BIT_DOUBLES__
#define LIBGCC2_HAS_DF_MODE             0
#define LIBGCC2_HAS_DF_MODE             0
#define LIBGCC2_LONG_DOUBLE_TYPE_SIZE   32
#define LIBGCC2_LONG_DOUBLE_TYPE_SIZE   32
#define LIBGCC2_DOUBLE_TYPE_SIZE        32
#define LIBGCC2_DOUBLE_TYPE_SIZE        32
#else
#else
#define LIBGCC2_HAS_DF_MODE             1
#define LIBGCC2_HAS_DF_MODE             1
#define LIBGCC2_LONG_DOUBLE_TYPE_SIZE   64
#define LIBGCC2_LONG_DOUBLE_TYPE_SIZE   64
#define LIBGCC2_DOUBLE_TYPE_SIZE        64
#define LIBGCC2_DOUBLE_TYPE_SIZE        64
#endif
#endif
 
 
#define DEFAULT_SIGNED_CHAR             0
#define DEFAULT_SIGNED_CHAR             0
 
 
#define STRICT_ALIGNMENT                1
#define STRICT_ALIGNMENT                1
#define FUNCTION_BOUNDARY               8
#define FUNCTION_BOUNDARY               8
#define BIGGEST_ALIGNMENT               32
#define BIGGEST_ALIGNMENT               32
#define STACK_BOUNDARY                  32
#define STACK_BOUNDARY                  32
#define PARM_BOUNDARY                   8
#define PARM_BOUNDARY                   8
 
 
#define FUNCTION_ARG_BOUNDARY(MODE, TYPE) 32
#define FUNCTION_ARG_BOUNDARY(MODE, TYPE) 32
 
 
#define STACK_GROWS_DOWNWARD            1
#define STACK_GROWS_DOWNWARD            1
#define FRAME_GROWS_DOWNWARD            0
#define FRAME_GROWS_DOWNWARD            0
#define FIRST_PARM_OFFSET(FNDECL)       0
#define FIRST_PARM_OFFSET(FNDECL)       0
 
 
#define MAX_REGS_PER_ADDRESS            2
#define MAX_REGS_PER_ADDRESS            2
 
 
#define Pmode                           SImode
#define Pmode                           SImode
#define POINTER_SIZE                    32
#define POINTER_SIZE                    32
#undef  SIZE_TYPE
#undef  SIZE_TYPE
#define SIZE_TYPE                       "long unsigned int"
#define SIZE_TYPE                       "long unsigned int"
#undef  PTRDIFF_TYPE
#undef  PTRDIFF_TYPE
#define PTRDIFF_TYPE                    "long int"
#define PTRDIFF_TYPE                    "long int"
#define POINTERS_EXTEND_UNSIGNED        1
#define POINTERS_EXTEND_UNSIGNED        1
#define FUNCTION_MODE                   QImode
#define FUNCTION_MODE                   QImode
#define CASE_VECTOR_MODE                Pmode
#define CASE_VECTOR_MODE                Pmode
#define WORD_REGISTER_OPERATIONS        1
#define WORD_REGISTER_OPERATIONS        1
#define HAS_LONG_COND_BRANCH            0
#define HAS_LONG_COND_BRANCH            0
#define HAS_LONG_UNCOND_BRANCH          0
#define HAS_LONG_UNCOND_BRANCH          0
 
 
#define MOVE_MAX                        4
#define MOVE_MAX                        4
#define STARTING_FRAME_OFFSET           0
#define STARTING_FRAME_OFFSET           0
 
 
#define RETURN_POPS_ARGS(FUNDECL, FUNTYPE, SIZE) 0
#define RETURN_POPS_ARGS(FUNDECL, FUNTYPE, SIZE) 0
#define TRULY_NOOP_TRUNCATION(OUTPREC, INPREC)   1
#define TRULY_NOOP_TRUNCATION(OUTPREC, INPREC)   1
 
 
#define LEGITIMATE_CONSTANT_P(X)        rx_is_legitimate_constant (X)
#define LEGITIMATE_CONSTANT_P(X)        rx_is_legitimate_constant (X)
 
 
#define HANDLE_PRAGMA_PACK_PUSH_POP     1
#define HANDLE_PRAGMA_PACK_PUSH_POP     1
 
 
#define HAVE_PRE_DECCREMENT             1
#define HAVE_PRE_DECCREMENT             1
#define HAVE_POST_INCREMENT             1
#define HAVE_POST_INCREMENT             1
 
 
#define MOVE_RATIO(SPEED)               ((SPEED) ? 4 : 2)
#define MOVE_RATIO(SPEED)               ((SPEED) ? 4 : 2)
#define SLOW_BYTE_ACCESS                1
#define SLOW_BYTE_ACCESS                1
 
 
#define STORE_FLAG_VALUE                1
#define STORE_FLAG_VALUE                1
#define LOAD_EXTEND_OP(MODE)            SIGN_EXTEND
#define LOAD_EXTEND_OP(MODE)            SIGN_EXTEND
#define SHORT_IMMEDIATES_SIGN_EXTEND    1
#define SHORT_IMMEDIATES_SIGN_EXTEND    1


enum reg_class
enum reg_class
{
{
  NO_REGS,                      /* No registers in set.  */
  NO_REGS,                      /* No registers in set.  */
  GR_REGS,                      /* Integer registers.  */
  GR_REGS,                      /* Integer registers.  */
  ALL_REGS,                     /* All registers.  */
  ALL_REGS,                     /* All registers.  */
  LIM_REG_CLASSES               /* Max value + 1.  */
  LIM_REG_CLASSES               /* Max value + 1.  */
};
};
 
 
#define REG_CLASS_NAMES                                 \
#define REG_CLASS_NAMES                                 \
{                                                       \
{                                                       \
  "NO_REGS",                                            \
  "NO_REGS",                                            \
  "GR_REGS",                                            \
  "GR_REGS",                                            \
  "ALL_REGS"                                            \
  "ALL_REGS"                                            \
}
}
 
 
#define REG_CLASS_CONTENTS                              \
#define REG_CLASS_CONTENTS                              \
{                                                       \
{                                                       \
  { 0x00000000 },       /* No registers,  */            \
  { 0x00000000 },       /* No registers,  */            \
  { 0x0000ffff },       /* Integer registers.  */       \
  { 0x0000ffff },       /* Integer registers.  */       \
  { 0x0000ffff }        /* All registers.  */           \
  { 0x0000ffff }        /* All registers.  */           \
}
}
 
 
#define IRA_COVER_CLASSES                               \
#define IRA_COVER_CLASSES                               \
  {                                                     \
  {                                                     \
    GR_REGS, LIM_REG_CLASSES                            \
    GR_REGS, LIM_REG_CLASSES                            \
  }
  }
 
 
#define SMALL_REGISTER_CLASSES          0
#define SMALL_REGISTER_CLASSES          0
#define N_REG_CLASSES                   (int) LIM_REG_CLASSES
#define N_REG_CLASSES                   (int) LIM_REG_CLASSES
#define CLASS_MAX_NREGS(CLASS, MODE)    ((GET_MODE_SIZE (MODE) \
#define CLASS_MAX_NREGS(CLASS, MODE)    ((GET_MODE_SIZE (MODE) \
                                          + UNITS_PER_WORD - 1) \
                                          + UNITS_PER_WORD - 1) \
                                         / UNITS_PER_WORD)
                                         / UNITS_PER_WORD)
 
 
#define GENERAL_REGS                    GR_REGS
#define GENERAL_REGS                    GR_REGS
#define BASE_REG_CLASS                  GR_REGS
#define BASE_REG_CLASS                  GR_REGS
#define INDEX_REG_CLASS                 GR_REGS
#define INDEX_REG_CLASS                 GR_REGS
 
 
#define FIRST_PSEUDO_REGISTER           17
#define FIRST_PSEUDO_REGISTER           17
 
 
#define REGNO_REG_CLASS(REGNO)          ((REGNO) < FIRST_PSEUDO_REGISTER \
#define REGNO_REG_CLASS(REGNO)          ((REGNO) < FIRST_PSEUDO_REGISTER \
                                         ? GR_REGS : NO_REGS)
                                         ? GR_REGS : NO_REGS)
 
 
#define STACK_POINTER_REGNUM            0
#define STACK_POINTER_REGNUM            0
#define FUNC_RETURN_REGNUM              1
#define FUNC_RETURN_REGNUM              1
#define FRAME_POINTER_REGNUM            6
#define FRAME_POINTER_REGNUM            6
#define ARG_POINTER_REGNUM              7
#define ARG_POINTER_REGNUM              7
#define STATIC_CHAIN_REGNUM             8
#define STATIC_CHAIN_REGNUM             8
#define TRAMPOLINE_TEMP_REGNUM          9
#define TRAMPOLINE_TEMP_REGNUM          9
#define STRUCT_VAL_REGNUM               15
#define STRUCT_VAL_REGNUM               15
#define CC_REGNUM                       16
#define CC_REGNUM                       16
 
 
/* This is the register which is used to hold the address of the start
/* This is the register which is used to hold the address of the start
   of the small data area, if that feature is being used.  Note - this
   of the small data area, if that feature is being used.  Note - this
   register must not be call_used because otherwise library functions
   register must not be call_used because otherwise library functions
   that are compiled without small data support might clobber it.
   that are compiled without small data support might clobber it.
 
 
   FIXME: The function gcc/config/rx/rx.c:rx_gen_move_template() has a
   FIXME: The function gcc/config/rx/rx.c:rx_gen_move_template() has a
   built in copy of this register's name, rather than constructing the
   built in copy of this register's name, rather than constructing the
   name from this #define.  */
   name from this #define.  */
#define GP_BASE_REGNUM                  13
#define GP_BASE_REGNUM                  13
 
 
#define ELIMINABLE_REGS                                 \
#define ELIMINABLE_REGS                                 \
{{ ARG_POINTER_REGNUM,   STACK_POINTER_REGNUM },        \
{{ ARG_POINTER_REGNUM,   STACK_POINTER_REGNUM },        \
 { ARG_POINTER_REGNUM,   FRAME_POINTER_REGNUM },        \
 { ARG_POINTER_REGNUM,   FRAME_POINTER_REGNUM },        \
 { FRAME_POINTER_REGNUM, STACK_POINTER_REGNUM }}
 { FRAME_POINTER_REGNUM, STACK_POINTER_REGNUM }}
 
 
#define INITIAL_ELIMINATION_OFFSET(FROM, TO, OFFSET)    \
#define INITIAL_ELIMINATION_OFFSET(FROM, TO, OFFSET)    \
  (OFFSET) = rx_initial_elimination_offset ((FROM), (TO))
  (OFFSET) = rx_initial_elimination_offset ((FROM), (TO))
 
 
 
 
#define FUNCTION_ARG_REGNO_P(N)         (((N) >= 1) && ((N) <= 4))
#define FUNCTION_ARG_REGNO_P(N)         (((N) >= 1) && ((N) <= 4))
#define FUNCTION_VALUE_REGNO_P(N)       ((N) == FUNC_RETURN_REGNUM)
#define FUNCTION_VALUE_REGNO_P(N)       ((N) == FUNC_RETURN_REGNUM)
#define DEFAULT_PCC_STRUCT_RETURN       0
#define DEFAULT_PCC_STRUCT_RETURN       0
 
 
#define FIXED_REGISTERS                                 \
#define FIXED_REGISTERS                                 \
{                                                       \
{                                                       \
  1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1     \
  1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1     \
}
}
 
 
#define CALL_USED_REGISTERS                             \
#define CALL_USED_REGISTERS                             \
{                                                       \
{                                                       \
  1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1     \
  1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1     \
}
}
 
 
#define CONDITIONAL_REGISTER_USAGE                      \
#define CONDITIONAL_REGISTER_USAGE                      \
  rx_conditional_register_usage ()
  rx_conditional_register_usage ()
 
 
#define LIBCALL_VALUE(MODE)                             \
#define LIBCALL_VALUE(MODE)                             \
  gen_rtx_REG (((GET_MODE_CLASS (MODE) != MODE_INT      \
  gen_rtx_REG (((GET_MODE_CLASS (MODE) != MODE_INT      \
                 || GET_MODE_SIZE (MODE) >= 4)          \
                 || GET_MODE_SIZE (MODE) >= 4)          \
                ? (MODE)                                \
                ? (MODE)                                \
                : SImode),                              \
                : SImode),                              \
               FUNC_RETURN_REGNUM)
               FUNC_RETURN_REGNUM)
 
 
/* Order of allocation of registers.  */
/* Order of allocation of registers.  */
 
 
#define REG_ALLOC_ORDER                                         \
#define REG_ALLOC_ORDER                                         \
{  7,  10,  11,  12,  13,  14,  4,  3,  2,  1, 9, 8, 6, 5, 15   \
{  7,  10,  11,  12,  13,  14,  4,  3,  2,  1, 9, 8, 6, 5, 15   \
}
}
 
 
#define PREFERRED_RELOAD_CLASS(X,CLASS)         CLASS
#define PREFERRED_RELOAD_CLASS(X,CLASS)         CLASS
 
 
#define REGNO_IN_RANGE(REGNO, MIN, MAX)         \
#define REGNO_IN_RANGE(REGNO, MIN, MAX)         \
  (IN_RANGE ((REGNO), (MIN), (MAX))             \
  (IN_RANGE ((REGNO), (MIN), (MAX))             \
   || (reg_renumber != NULL                     \
   || (reg_renumber != NULL                     \
       && reg_renumber[(REGNO)] >= (MIN)        \
       && reg_renumber[(REGNO)] >= (MIN)        \
       && reg_renumber[(REGNO)] <= (MAX)))
       && reg_renumber[(REGNO)] <= (MAX)))
 
 
#ifdef REG_OK_STRICT
#ifdef REG_OK_STRICT
#define REGNO_OK_FOR_BASE_P(regno)      REGNO_IN_RANGE (regno, 0, 15)
#define REGNO_OK_FOR_BASE_P(regno)      REGNO_IN_RANGE (regno, 0, 15)
#else
#else
#define REGNO_OK_FOR_BASE_P(regno)      1
#define REGNO_OK_FOR_BASE_P(regno)      1
#endif
#endif
 
 
#define REGNO_OK_FOR_INDEX_P(regno)     REGNO_OK_FOR_BASE_P (regno)
#define REGNO_OK_FOR_INDEX_P(regno)     REGNO_OK_FOR_BASE_P (regno)
 
 
#define RTX_OK_FOR_BASE(X, STRICT)                              \
#define RTX_OK_FOR_BASE(X, STRICT)                              \
  ((STRICT) ?                                                   \
  ((STRICT) ?                                                   \
   (   (REG_P (X)                                               \
   (   (REG_P (X)                                               \
        && REGNO_IN_RANGE (REGNO (X), 0, 15))                   \
        && REGNO_IN_RANGE (REGNO (X), 0, 15))                   \
    || (GET_CODE (X) == SUBREG                                  \
    || (GET_CODE (X) == SUBREG                                  \
        && REG_P (SUBREG_REG (X))                               \
        && REG_P (SUBREG_REG (X))                               \
        && REGNO_IN_RANGE (REGNO (SUBREG_REG (X)), 0, 15)))     \
        && REGNO_IN_RANGE (REGNO (SUBREG_REG (X)), 0, 15)))     \
   :                                                            \
   :                                                            \
    ( (REG_P (X)                                                \
    ( (REG_P (X)                                                \
       || (GET_CODE (X) == SUBREG                               \
       || (GET_CODE (X) == SUBREG                               \
           && REG_P (SUBREG_REG (X))))))
           && REG_P (SUBREG_REG (X))))))
 
 
#define GO_IF_MODE_DEPENDENT_ADDRESS(ADDR, LABEL)       \
#define GO_IF_MODE_DEPENDENT_ADDRESS(ADDR, LABEL)       \
  do                                                    \
  do                                                    \
    {                                                   \
    {                                                   \
      if (rx_is_mode_dependent_addr (ADDR))             \
      if (rx_is_mode_dependent_addr (ADDR))             \
        goto LABEL;                                     \
        goto LABEL;                                     \
    }                                                   \
    }                                                   \
  while (0)
  while (0)


 
 
#define RETURN_ADDR_RTX(COUNT, FRAMEADDR)                               \
#define RETURN_ADDR_RTX(COUNT, FRAMEADDR)                               \
  ((COUNT) == 0                                                         \
  ((COUNT) == 0                                                         \
   ? gen_rtx_MEM (Pmode, gen_rtx_PLUS (Pmode, arg_pointer_rtx, GEN_INT (-4))) \
   ? gen_rtx_MEM (Pmode, gen_rtx_PLUS (Pmode, arg_pointer_rtx, GEN_INT (-4))) \
   : NULL_RTX)
   : NULL_RTX)
 
 
#define INCOMING_RETURN_ADDR_RTX        gen_rtx_MEM (Pmode, stack_pointer_rtx)
#define INCOMING_RETURN_ADDR_RTX        gen_rtx_MEM (Pmode, stack_pointer_rtx)
 
 
#define ACCUMULATE_OUTGOING_ARGS        1
#define ACCUMULATE_OUTGOING_ARGS        1
 
 
typedef unsigned int CUMULATIVE_ARGS;
typedef unsigned int CUMULATIVE_ARGS;
 
 
#define INIT_CUMULATIVE_ARGS(CUM, FNTYPE, LIBNAME, INDIRECT, N_NAMED_ARGS) \
#define INIT_CUMULATIVE_ARGS(CUM, FNTYPE, LIBNAME, INDIRECT, N_NAMED_ARGS) \
  (CUM) = 0
  (CUM) = 0
 
 
#define FUNCTION_ARG(CUM, MODE, TYPE, NAMED) \
#define FUNCTION_ARG(CUM, MODE, TYPE, NAMED) \
  rx_function_arg (& CUM, MODE, TYPE, NAMED)
  rx_function_arg (& CUM, MODE, TYPE, NAMED)
 
 
#define FUNCTION_ARG_ADVANCE(CUM, MODE, TYPE, NAMED)    \
#define FUNCTION_ARG_ADVANCE(CUM, MODE, TYPE, NAMED)    \
  (CUM) += rx_function_arg_size (MODE, TYPE)
  (CUM) += rx_function_arg_size (MODE, TYPE)


#define TRAMPOLINE_SIZE         (! TARGET_BIG_ENDIAN_DATA ? 14 : 20)
#define TRAMPOLINE_SIZE         (! TARGET_BIG_ENDIAN_DATA ? 14 : 20)
#define TRAMPOLINE_ALIGNMENT    32
#define TRAMPOLINE_ALIGNMENT    32


#define NO_PROFILE_COUNTERS     1
#define NO_PROFILE_COUNTERS     1
#define PROFILE_BEFORE_PROLOGUE 1
#define PROFILE_BEFORE_PROLOGUE 1
 
 
#define FUNCTION_PROFILER(FILE, LABELNO)        \
#define FUNCTION_PROFILER(FILE, LABELNO)        \
    fprintf (FILE, "\tbsr\t__mcount\n");
    fprintf (FILE, "\tbsr\t__mcount\n");


 
 
#define HARD_REGNO_NREGS(REGNO, MODE)   CLASS_MAX_NREGS (0, MODE)
#define HARD_REGNO_NREGS(REGNO, MODE)   CLASS_MAX_NREGS (0, MODE)
 
 
#define HARD_REGNO_MODE_OK(REGNO, MODE)                         \
#define HARD_REGNO_MODE_OK(REGNO, MODE)                         \
  REGNO_REG_CLASS (REGNO) == GR_REGS
  REGNO_REG_CLASS (REGNO) == GR_REGS
 
 
#define MODES_TIEABLE_P(MODE1, MODE2)                           \
#define MODES_TIEABLE_P(MODE1, MODE2)                           \
  (   (   GET_MODE_CLASS (MODE1) == MODE_FLOAT                  \
  (   (   GET_MODE_CLASS (MODE1) == MODE_FLOAT                  \
       || GET_MODE_CLASS (MODE1) == MODE_COMPLEX_FLOAT)         \
       || GET_MODE_CLASS (MODE1) == MODE_COMPLEX_FLOAT)         \
   == (   GET_MODE_CLASS (MODE2) == MODE_FLOAT                  \
   == (   GET_MODE_CLASS (MODE2) == MODE_FLOAT                  \
       || GET_MODE_CLASS (MODE2) == MODE_COMPLEX_FLOAT))
       || GET_MODE_CLASS (MODE2) == MODE_COMPLEX_FLOAT))


 
 
#define REGISTER_NAMES                                          \
#define REGISTER_NAMES                                          \
  {                                                             \
  {                                                             \
    "r0",  "r1",  "r2",   "r3",   "r4",   "r5",   "r6",   "r7", \
    "r0",  "r1",  "r2",   "r3",   "r4",   "r5",   "r6",   "r7", \
      "r8",  "r9",  "r10",  "r11",  "r12",  "r13",  "r14",  "r15", "cc" \
      "r8",  "r9",  "r10",  "r11",  "r12",  "r13",  "r14",  "r15", "cc" \
  };
  };
 
 
#define ADDITIONAL_REGISTER_NAMES       \
#define ADDITIONAL_REGISTER_NAMES       \
{                                       \
{                                       \
    { "sp",    STACK_POINTER_REGNUM }   \
    { "sp",    STACK_POINTER_REGNUM }   \
  , { "fp",    FRAME_POINTER_REGNUM }   \
  , { "fp",    FRAME_POINTER_REGNUM }   \
  , { "arg",   ARG_POINTER_REGNUM }     \
  , { "arg",   ARG_POINTER_REGNUM }     \
  , { "chain", STATIC_CHAIN_REGNUM }    \
  , { "chain", STATIC_CHAIN_REGNUM }    \
}
}
 
 
#define DATA_SECTION_ASM_OP                             \
#define DATA_SECTION_ASM_OP                             \
  (TARGET_AS100_SYNTAX ? "\t.SECTION D,DATA"            \
  (TARGET_AS100_SYNTAX ? "\t.SECTION D,DATA"            \
   : "\t.section D,\"aw\",@progbits\n\t.p2align 2")
   : "\t.section D,\"aw\",@progbits\n\t.p2align 2")
 
 
#define SDATA_SECTION_ASM_OP                            \
#define SDATA_SECTION_ASM_OP                            \
  (TARGET_AS100_SYNTAX ? "\t.SECTION D_2,DATA,ALIGN=2"  \
  (TARGET_AS100_SYNTAX ? "\t.SECTION D_2,DATA,ALIGN=2"  \
   : "\t.section D_2,\"aw\",@progbits\n\t.p2align 1")
   : "\t.section D_2,\"aw\",@progbits\n\t.p2align 1")
 
 
#undef  READONLY_DATA_SECTION_ASM_OP
#undef  READONLY_DATA_SECTION_ASM_OP
#define READONLY_DATA_SECTION_ASM_OP                    \
#define READONLY_DATA_SECTION_ASM_OP                    \
  (TARGET_AS100_SYNTAX ? "\t.SECTION C,ROMDATA,ALIGN=4" \
  (TARGET_AS100_SYNTAX ? "\t.SECTION C,ROMDATA,ALIGN=4" \
   : "\t.section C,\"a\",@progbits\n\t.p2align 2")
   : "\t.section C,\"a\",@progbits\n\t.p2align 2")
 
 
#define BSS_SECTION_ASM_OP                              \
#define BSS_SECTION_ASM_OP                              \
  (TARGET_AS100_SYNTAX ? "\t.SECTION B,DATA,ALIGN=4"    \
  (TARGET_AS100_SYNTAX ? "\t.SECTION B,DATA,ALIGN=4"    \
   : "\t.section B,\"w\",@nobits\n\t.p2align 2")
   : "\t.section B,\"w\",@nobits\n\t.p2align 2")
 
 
#define SBSS_SECTION_ASM_OP                             \
#define SBSS_SECTION_ASM_OP                             \
  (TARGET_AS100_SYNTAX ? "\t.SECTION B_2,DATA,ALIGN=2"  \
  (TARGET_AS100_SYNTAX ? "\t.SECTION B_2,DATA,ALIGN=2"  \
   : "\t.section B_2,\"w\",@nobits\n\t.p2align 1")
   : "\t.section B_2,\"w\",@nobits\n\t.p2align 1")
 
 
/* The following definitions are conditional depending upon whether the
/* The following definitions are conditional depending upon whether the
   compiler is being built or crtstuff.c is being compiled by the built
   compiler is being built or crtstuff.c is being compiled by the built
   compiler.  */
   compiler.  */
#if defined CRT_BEGIN || defined CRT_END
#if defined CRT_BEGIN || defined CRT_END
# ifdef __RX_AS100_SYNTAX
# ifdef __RX_AS100_SYNTAX
#  define TEXT_SECTION_ASM_OP         "\t.SECTION P,CODE"
#  define TEXT_SECTION_ASM_OP         "\t.SECTION P,CODE"
#  define CTORS_SECTION_ASM_OP        "\t.SECTION init_array,CODE"
#  define CTORS_SECTION_ASM_OP        "\t.SECTION init_array,CODE"
#  define DTORS_SECTION_ASM_OP        "\t.SECTION fini_array,CODE"
#  define DTORS_SECTION_ASM_OP        "\t.SECTION fini_array,CODE"
#  define INIT_ARRAY_SECTION_ASM_OP   "\t.SECTION init_array,CODE"
#  define INIT_ARRAY_SECTION_ASM_OP   "\t.SECTION init_array,CODE"
#  define FINI_ARRAY_SECTION_ASM_OP   "\t.SECTION fini_array,CODE"
#  define FINI_ARRAY_SECTION_ASM_OP   "\t.SECTION fini_array,CODE"
# else
# else
#  define TEXT_SECTION_ASM_OP         "\t.section P,\"ax\""
#  define TEXT_SECTION_ASM_OP         "\t.section P,\"ax\""
#  define CTORS_SECTION_ASM_OP        \
#  define CTORS_SECTION_ASM_OP        \
  "\t.section\t.init_array,\"aw\",@init_array"
  "\t.section\t.init_array,\"aw\",@init_array"
#  define DTORS_SECTION_ASM_OP        \
#  define DTORS_SECTION_ASM_OP        \
  "\t.section\t.fini_array,\"aw\",@fini_array"
  "\t.section\t.fini_array,\"aw\",@fini_array"
#  define INIT_ARRAY_SECTION_ASM_OP   \
#  define INIT_ARRAY_SECTION_ASM_OP   \
  "\t.section\t.init_array,\"aw\",@init_array"
  "\t.section\t.init_array,\"aw\",@init_array"
#  define FINI_ARRAY_SECTION_ASM_OP   \
#  define FINI_ARRAY_SECTION_ASM_OP   \
  "\t.section\t.fini_array,\"aw\",@fini_array"
  "\t.section\t.fini_array,\"aw\",@fini_array"
# endif
# endif
#else
#else
# define TEXT_SECTION_ASM_OP          \
# define TEXT_SECTION_ASM_OP          \
  (TARGET_AS100_SYNTAX ? "\t.SECTION P,CODE" : "\t.section P,\"ax\"")
  (TARGET_AS100_SYNTAX ? "\t.SECTION P,CODE" : "\t.section P,\"ax\"")
 
 
# define CTORS_SECTION_ASM_OP                         \
# define CTORS_SECTION_ASM_OP                         \
  (TARGET_AS100_SYNTAX ? "\t.SECTION init_array,CODE" \
  (TARGET_AS100_SYNTAX ? "\t.SECTION init_array,CODE" \
   : "\t.section\t.init_array,\"aw\",@init_array")
   : "\t.section\t.init_array,\"aw\",@init_array")
 
 
# define DTORS_SECTION_ASM_OP                         \
# define DTORS_SECTION_ASM_OP                         \
  (TARGET_AS100_SYNTAX ? "\t.SECTION fini_array,CODE" \
  (TARGET_AS100_SYNTAX ? "\t.SECTION fini_array,CODE" \
   : "\t.section\t.fini_array,\"aw\",@fini_array")
   : "\t.section\t.fini_array,\"aw\",@fini_array")
 
 
# define INIT_ARRAY_SECTION_ASM_OP                    \
# define INIT_ARRAY_SECTION_ASM_OP                    \
  (TARGET_AS100_SYNTAX ? "\t.SECTION init_array,CODE" \
  (TARGET_AS100_SYNTAX ? "\t.SECTION init_array,CODE" \
   : "\t.section\t.init_array,\"aw\",@init_array")
   : "\t.section\t.init_array,\"aw\",@init_array")
 
 
# define FINI_ARRAY_SECTION_ASM_OP                    \
# define FINI_ARRAY_SECTION_ASM_OP                    \
  (TARGET_AS100_SYNTAX ? "\t.SECTION fini_array,CODE" \
  (TARGET_AS100_SYNTAX ? "\t.SECTION fini_array,CODE" \
   : "\t.section\t.fini_array,\"aw\",@fini_array")
   : "\t.section\t.fini_array,\"aw\",@fini_array")
#endif
#endif
 
 
#define GLOBAL_ASM_OP           \
#define GLOBAL_ASM_OP           \
  (TARGET_AS100_SYNTAX ? "\t.GLB\t" : "\t.global\t")
  (TARGET_AS100_SYNTAX ? "\t.GLB\t" : "\t.global\t")
#define ASM_COMMENT_START       " ;"
#define ASM_COMMENT_START       " ;"
#define ASM_APP_ON              ""
#define ASM_APP_ON              ""
#define ASM_APP_OFF             ""
#define ASM_APP_OFF             ""
#define LOCAL_LABEL_PREFIX      "L"
#define LOCAL_LABEL_PREFIX      "L"
#undef  USER_LABEL_PREFIX
#undef  USER_LABEL_PREFIX
#define USER_LABEL_PREFIX       "_"
#define USER_LABEL_PREFIX       "_"
 
 
#define ASM_OUTPUT_ALIGN(STREAM, LOG)           \
#define ASM_OUTPUT_ALIGN(STREAM, LOG)           \
  do                                            \
  do                                            \
    {                                           \
    {                                           \
      if ((LOG) == 0)                            \
      if ((LOG) == 0)                            \
        break;                                  \
        break;                                  \
      if (TARGET_AS100_SYNTAX)                  \
      if (TARGET_AS100_SYNTAX)                  \
        {                                       \
        {                                       \
          if ((LOG) >= 2)                       \
          if ((LOG) >= 2)                       \
            fprintf (STREAM, "\t.ALIGN 4\t; %d alignment actually requested\n", 1 << (LOG)); \
            fprintf (STREAM, "\t.ALIGN 4\t; %d alignment actually requested\n", 1 << (LOG)); \
          else                                  \
          else                                  \
            fprintf (STREAM, "\t.ALIGN 2\n");   \
            fprintf (STREAM, "\t.ALIGN 2\n");   \
        }                                       \
        }                                       \
      else                                      \
      else                                      \
        fprintf (STREAM, "\t.balign %d\n", 1 << (LOG)); \
        fprintf (STREAM, "\t.balign %d\n", 1 << (LOG)); \
    }                                           \
    }                                           \
  while (0)
  while (0)
 
 
#define ASM_OUTPUT_ADDR_VEC_ELT(FILE, VALUE) \
#define ASM_OUTPUT_ADDR_VEC_ELT(FILE, VALUE) \
  fprintf (FILE, TARGET_AS100_SYNTAX ? "\t.LWORD L%d\n" : "\t.long .L%d\n", \
  fprintf (FILE, TARGET_AS100_SYNTAX ? "\t.LWORD L%d\n" : "\t.long .L%d\n", \
           VALUE)
           VALUE)
 
 
/* This is how to output an element of a case-vector that is relative.
/* This is how to output an element of a case-vector that is relative.
   Note: The local label referenced by the "3b" below is emitted by
   Note: The local label referenced by the "3b" below is emitted by
   the tablejump insn.  */
   the tablejump insn.  */
 
 
#define ASM_OUTPUT_ADDR_DIFF_ELT(FILE, BODY, VALUE, REL) \
#define ASM_OUTPUT_ADDR_DIFF_ELT(FILE, BODY, VALUE, REL) \
  fprintf (FILE, TARGET_AS100_SYNTAX \
  fprintf (FILE, TARGET_AS100_SYNTAX \
           ? "\t.LWORD L%d - ?-\n" : "\t.long .L%d - 1b\n", VALUE)
           ? "\t.LWORD L%d - ?-\n" : "\t.long .L%d - 1b\n", VALUE)
 
 
#define ASM_OUTPUT_SIZE_DIRECTIVE(STREAM, NAME, SIZE)                   \
#define ASM_OUTPUT_SIZE_DIRECTIVE(STREAM, NAME, SIZE)                   \
  do                                                                    \
  do                                                                    \
    {                                                                   \
    {                                                                   \
      HOST_WIDE_INT size_ = (SIZE);                                     \
      HOST_WIDE_INT size_ = (SIZE);                                     \
                                                                        \
                                                                        \
      /* The as100 assembler does not have an equivalent of the SVR4    \
      /* The as100 assembler does not have an equivalent of the SVR4    \
         .size pseudo-op.  */                                           \
         .size pseudo-op.  */                                           \
      if (TARGET_AS100_SYNTAX)                                          \
      if (TARGET_AS100_SYNTAX)                                          \
        break;                                                          \
        break;                                                          \
                                                                        \
                                                                        \
      fputs (SIZE_ASM_OP, STREAM);                                      \
      fputs (SIZE_ASM_OP, STREAM);                                      \
      assemble_name (STREAM, NAME);                                     \
      assemble_name (STREAM, NAME);                                     \
      fprintf (STREAM, ", " HOST_WIDE_INT_PRINT_DEC "\n", size_);       \
      fprintf (STREAM, ", " HOST_WIDE_INT_PRINT_DEC "\n", size_);       \
    }                                                                   \
    }                                                                   \
  while (0)
  while (0)
 
 
#define ASM_OUTPUT_MEASURED_SIZE(STREAM, NAME)                          \
#define ASM_OUTPUT_MEASURED_SIZE(STREAM, NAME)                          \
  do                                                                    \
  do                                                                    \
    {                                                                   \
    {                                                                   \
      /* The as100 assembler does not have an equivalent of the SVR4    \
      /* The as100 assembler does not have an equivalent of the SVR4    \
         .size pseudo-op.  */                                           \
         .size pseudo-op.  */                                           \
      if (TARGET_AS100_SYNTAX)                                          \
      if (TARGET_AS100_SYNTAX)                                          \
        break;                                                          \
        break;                                                          \
      fputs (SIZE_ASM_OP, STREAM);                                      \
      fputs (SIZE_ASM_OP, STREAM);                                      \
      assemble_name (STREAM, NAME);                                     \
      assemble_name (STREAM, NAME);                                     \
      fputs (", .-", STREAM);                                           \
      fputs (", .-", STREAM);                                           \
      assemble_name (STREAM, NAME);                                     \
      assemble_name (STREAM, NAME);                                     \
      putc ('\n', STREAM);                                              \
      putc ('\n', STREAM);                                              \
    }                                                                   \
    }                                                                   \
  while (0)
  while (0)
 
 
#define ASM_OUTPUT_TYPE_DIRECTIVE(STREAM, NAME, TYPE)                   \
#define ASM_OUTPUT_TYPE_DIRECTIVE(STREAM, NAME, TYPE)                   \
  do                                                                    \
  do                                                                    \
    {                                                                   \
    {                                                                   \
      /* The as100 assembler does not have an equivalent of the SVR4    \
      /* The as100 assembler does not have an equivalent of the SVR4    \
         .size pseudo-op.  */                                           \
         .size pseudo-op.  */                                           \
      if (TARGET_AS100_SYNTAX)                                          \
      if (TARGET_AS100_SYNTAX)                                          \
        break;                                                          \
        break;                                                          \
      fputs (TYPE_ASM_OP, STREAM);                                      \
      fputs (TYPE_ASM_OP, STREAM);                                      \
      assemble_name (STREAM, NAME);                                     \
      assemble_name (STREAM, NAME);                                     \
      fputs (", ", STREAM);                                             \
      fputs (", ", STREAM);                                             \
      fprintf (STREAM, TYPE_OPERAND_FMT, TYPE);                         \
      fprintf (STREAM, TYPE_OPERAND_FMT, TYPE);                         \
      putc ('\n', STREAM);                                              \
      putc ('\n', STREAM);                                              \
    }                                                                   \
    }                                                                   \
  while (0)
  while (0)
 
 
#undef  ASM_GENERATE_INTERNAL_LABEL
#undef  ASM_GENERATE_INTERNAL_LABEL
#define ASM_GENERATE_INTERNAL_LABEL(LABEL, PREFIX, NUM)         \
#define ASM_GENERATE_INTERNAL_LABEL(LABEL, PREFIX, NUM)         \
  do                                                            \
  do                                                            \
    {                                                           \
    {                                                           \
      sprintf (LABEL, TARGET_AS100_SYNTAX ? "*%s%u" : "*.%s%u", \
      sprintf (LABEL, TARGET_AS100_SYNTAX ? "*%s%u" : "*.%s%u", \
               PREFIX, (unsigned) (NUM));                       \
               PREFIX, (unsigned) (NUM));                       \
    }                                                           \
    }                                                           \
  while (0)
  while (0)
 
 
#undef  ASM_OUTPUT_EXTERNAL
#undef  ASM_OUTPUT_EXTERNAL
#define ASM_OUTPUT_EXTERNAL(FILE, DECL, NAME)                   \
#define ASM_OUTPUT_EXTERNAL(FILE, DECL, NAME)                   \
  do                                                            \
  do                                                            \
    {                                                           \
    {                                                           \
      if (TARGET_AS100_SYNTAX)                                  \
      if (TARGET_AS100_SYNTAX)                                  \
        targetm.asm_out.globalize_label (FILE, NAME);           \
        targetm.asm_out.globalize_label (FILE, NAME);           \
      default_elf_asm_output_external (FILE, DECL, NAME);       \
      default_elf_asm_output_external (FILE, DECL, NAME);       \
    }                                                           \
    }                                                           \
  while (0)
  while (0)
 
 
#undef  ASM_OUTPUT_ALIGNED_COMMON
#undef  ASM_OUTPUT_ALIGNED_COMMON
#define ASM_OUTPUT_ALIGNED_COMMON(FILE, NAME, SIZE, ALIGN)              \
#define ASM_OUTPUT_ALIGNED_COMMON(FILE, NAME, SIZE, ALIGN)              \
  do                                                                    \
  do                                                                    \
    {                                                                   \
    {                                                                   \
      if (TARGET_AS100_SYNTAX)                                          \
      if (TARGET_AS100_SYNTAX)                                          \
        {                                                               \
        {                                                               \
          fprintf ((FILE), "\t.GLB\t");                                 \
          fprintf ((FILE), "\t.GLB\t");                                 \
          assemble_name ((FILE), (NAME));                               \
          assemble_name ((FILE), (NAME));                               \
          fprintf ((FILE), "\n");                                       \
          fprintf ((FILE), "\n");                                       \
          assemble_name ((FILE), (NAME));                               \
          assemble_name ((FILE), (NAME));                               \
          switch ((ALIGN) / BITS_PER_UNIT)                              \
          switch ((ALIGN) / BITS_PER_UNIT)                              \
            {                                                           \
            {                                                           \
            case 4:                                                     \
            case 4:                                                     \
              fprintf ((FILE), ":\t.BLKL\t"HOST_WIDE_INT_PRINT_UNSIGNED"\n",\
              fprintf ((FILE), ":\t.BLKL\t"HOST_WIDE_INT_PRINT_UNSIGNED"\n",\
                       (SIZE) / 4);                                     \
                       (SIZE) / 4);                                     \
              break;                                                    \
              break;                                                    \
            case 2:                                                     \
            case 2:                                                     \
              fprintf ((FILE), ":\t.BLKW\t"HOST_WIDE_INT_PRINT_UNSIGNED"\n",\
              fprintf ((FILE), ":\t.BLKW\t"HOST_WIDE_INT_PRINT_UNSIGNED"\n",\
                       (SIZE) / 2);                                     \
                       (SIZE) / 2);                                     \
              break;                                                    \
              break;                                                    \
            default:                                                    \
            default:                                                    \
              fprintf ((FILE), ":\t.BLKB\t"HOST_WIDE_INT_PRINT_UNSIGNED"\n",\
              fprintf ((FILE), ":\t.BLKB\t"HOST_WIDE_INT_PRINT_UNSIGNED"\n",\
                       (SIZE));                                         \
                       (SIZE));                                         \
              break;                                                    \
              break;                                                    \
            }                                                           \
            }                                                           \
        }                                                               \
        }                                                               \
      else                                                              \
      else                                                              \
        {                                                               \
        {                                                               \
          fprintf ((FILE), "%s", COMMON_ASM_OP);                        \
          fprintf ((FILE), "%s", COMMON_ASM_OP);                        \
          assemble_name ((FILE), (NAME));                               \
          assemble_name ((FILE), (NAME));                               \
          fprintf ((FILE), ","HOST_WIDE_INT_PRINT_UNSIGNED",%u\n",      \
          fprintf ((FILE), ","HOST_WIDE_INT_PRINT_UNSIGNED",%u\n",      \
                   (SIZE), (ALIGN) / BITS_PER_UNIT);                    \
                   (SIZE), (ALIGN) / BITS_PER_UNIT);                    \
        }                                                               \
        }                                                               \
    }                                                                   \
    }                                                                   \
  while (0)
  while (0)
 
 
#undef  SKIP_ASM_OP
#undef  SKIP_ASM_OP
#define SKIP_ASM_OP   (TARGET_AS100_SYNTAX ? "\t.BLKB\t" : "\t.zero\t")
#define SKIP_ASM_OP   (TARGET_AS100_SYNTAX ? "\t.BLKB\t" : "\t.zero\t")
 
 
#undef  ASM_OUTPUT_LIMITED_STRING
#undef  ASM_OUTPUT_LIMITED_STRING
#define ASM_OUTPUT_LIMITED_STRING(FILE, STR)            \
#define ASM_OUTPUT_LIMITED_STRING(FILE, STR)            \
  do                                                    \
  do                                                    \
    {                                                   \
    {                                                   \
      const unsigned char *_limited_str =               \
      const unsigned char *_limited_str =               \
        (const unsigned char *) (STR);                  \
        (const unsigned char *) (STR);                  \
      unsigned ch;                                      \
      unsigned ch;                                      \
                                                        \
                                                        \
      fprintf ((FILE), TARGET_AS100_SYNTAX              \
      fprintf ((FILE), TARGET_AS100_SYNTAX              \
               ? "\t.BYTE\t\"" : "\t.string\t\"");      \
               ? "\t.BYTE\t\"" : "\t.string\t\"");      \
                                                        \
                                                        \
      for (; (ch = *_limited_str); _limited_str++)      \
      for (; (ch = *_limited_str); _limited_str++)      \
        {                                               \
        {                                               \
          int escape;                                   \
          int escape;                                   \
                                                        \
                                                        \
          switch (escape = ESCAPES[ch])                 \
          switch (escape = ESCAPES[ch])                 \
            {                                           \
            {                                           \
            case 0:                                      \
            case 0:                                      \
              putc (ch, (FILE));                        \
              putc (ch, (FILE));                        \
              break;                                    \
              break;                                    \
            case 1:                                     \
            case 1:                                     \
              fprintf ((FILE), "\\%03o", ch);           \
              fprintf ((FILE), "\\%03o", ch);           \
              break;                                    \
              break;                                    \
            default:                                    \
            default:                                    \
              putc ('\\', (FILE));                      \
              putc ('\\', (FILE));                      \
              putc (escape, (FILE));                    \
              putc (escape, (FILE));                    \
              break;                                    \
              break;                                    \
            }                                           \
            }                                           \
        }                                               \
        }                                               \
                                                        \
                                                        \
      fprintf ((FILE), TARGET_AS100_SYNTAX ? "\"\n\t.BYTE\t0\n" : "\"\n");\
      fprintf ((FILE), TARGET_AS100_SYNTAX ? "\"\n\t.BYTE\t0\n" : "\"\n");\
    }                                                   \
    }                                                   \
  while (0)
  while (0)
 
 
#undef  IDENT_ASM_OP
#undef  IDENT_ASM_OP
#define IDENT_ASM_OP  (TARGET_AS100_SYNTAX \
#define IDENT_ASM_OP  (TARGET_AS100_SYNTAX \
                       ? "\t.END\t; Built by: ": "\t.ident\t")
                       ? "\t.END\t; Built by: ": "\t.ident\t")
 
 
/* For PIC put jump tables into the text section so that the offsets that
/* For PIC put jump tables into the text section so that the offsets that
   they contain are always computed between two same-section symbols.  */
   they contain are always computed between two same-section symbols.  */
#define JUMP_TABLES_IN_TEXT_SECTION     (flag_pic)
#define JUMP_TABLES_IN_TEXT_SECTION     (flag_pic)


#define PRINT_OPERAND(FILE, X, CODE)            \
#define PRINT_OPERAND(FILE, X, CODE)            \
  rx_print_operand (FILE, X, CODE)
  rx_print_operand (FILE, X, CODE)
#define PRINT_OPERAND_ADDRESS(FILE, ADDR)       \
#define PRINT_OPERAND_ADDRESS(FILE, ADDR)       \
  rx_print_operand_address (FILE, ADDR)
  rx_print_operand_address (FILE, ADDR)


extern int rx_float_compare_mode;
extern int rx_float_compare_mode;


/* This is a version of REG_P that also returns TRUE for SUBREGs.  */
/* This is a version of REG_P that also returns TRUE for SUBREGs.  */
#define RX_REG_P(rtl) (REG_P (rtl) || GET_CODE (rtl) == SUBREG)
#define RX_REG_P(rtl) (REG_P (rtl) || GET_CODE (rtl) == SUBREG)
 
 
/* Like REG_P except that this macro is true for SET expressions.  */
/* Like REG_P except that this macro is true for SET expressions.  */
#define SET_P(rtl)    (GET_CODE (rtl) == SET)
#define SET_P(rtl)    (GET_CODE (rtl) == SET)


#define CAN_DEBUG_WITHOUT_FP 1
#define CAN_DEBUG_WITHOUT_FP 1
 
 
/* The AS100 assembler does not support .leb128 and .uleb128, but
/* The AS100 assembler does not support .leb128 and .uleb128, but
   the compiler-build-time configure tests will have enabled their
   the compiler-build-time configure tests will have enabled their
   use because GAS supports them.  So default to generating STABS
   use because GAS supports them.  So default to generating STABS
   debug information instead of DWARF2 when generating AS100
   debug information instead of DWARF2 when generating AS100
   compatible output.  */
   compatible output.  */
#undef  PREFERRED_DEBUGGING_TYPE
#undef  PREFERRED_DEBUGGING_TYPE
#define PREFERRED_DEBUGGING_TYPE (TARGET_AS100_SYNTAX \
#define PREFERRED_DEBUGGING_TYPE (TARGET_AS100_SYNTAX \
                                  ? DBX_DEBUG : DWARF2_DEBUG)
                                  ? DBX_DEBUG : DWARF2_DEBUG)
 
 
#define INCOMING_FRAME_SP_OFFSET                4
#define INCOMING_FRAME_SP_OFFSET                4
#define ARG_POINTER_CFA_OFFSET(FNDECL)          4
#define ARG_POINTER_CFA_OFFSET(FNDECL)          4
#define FRAME_POINTER_CFA_OFFSET(FNDECL)        4
#define FRAME_POINTER_CFA_OFFSET(FNDECL)        4


/* Translate -nofpu into -mnofpu so that it gets passed from gcc to cc1.  */
/* Translate -nofpu into -mnofpu so that it gets passed from gcc to cc1.  */
#define TARGET_OPTION_TRANSLATE_TABLE \
#define TARGET_OPTION_TRANSLATE_TABLE \
  {"-nofpu", "-mnofpu" }
  {"-nofpu", "-mnofpu" }
 
 
#define OPTIMIZATION_OPTIONS(LEVEL,SIZE) \
#define OPTIMIZATION_OPTIONS(LEVEL,SIZE) \
  rx_set_optimization_options ()
  rx_set_optimization_options ()
 
 
#define TARGET_USE_FPU          (! TARGET_NO_USE_FPU)
#define TARGET_USE_FPU          (! TARGET_NO_USE_FPU)
 
 
/* This macro is used to decide when RX FPU instructions can be used.  */
/* This macro is used to decide when RX FPU instructions can be used.  */
#define ALLOW_RX_FPU_INSNS      (TARGET_USE_FPU)
#define ALLOW_RX_FPU_INSNS      (TARGET_USE_FPU)
 
 
#define BRANCH_COST(SPEED, PREDICT)           1
#define BRANCH_COST(SPEED, PREDICT)           1
#define REGISTER_MOVE_COST(MODE, FROM, TO)    2
#define REGISTER_MOVE_COST(MODE, FROM, TO)    2
#define MEMORY_MOVE_COST(MODE, REGCLASS, IN) (2 + memory_move_secondary_cost (MODE, REGCLASS, IN))
#define MEMORY_MOVE_COST(MODE, REGCLASS, IN) (2 + memory_move_secondary_cost (MODE, REGCLASS, IN))
 
 
#define SELECT_CC_MODE(OP,X,Y)                                          \
#define SELECT_CC_MODE(OP,X,Y)                                          \
  (GET_MODE_CLASS (GET_MODE (X)) == MODE_FLOAT ? CC_ZSmode :            \
  (GET_MODE_CLASS (GET_MODE (X)) == MODE_FLOAT ? CC_ZSmode :            \
    (GET_CODE (X) == PLUS || GET_CODE (X) == MINUS ? CC_ZSCmode :       \
    (GET_CODE (X) == PLUS || GET_CODE (X) == MINUS ? CC_ZSCmode :       \
    (GET_CODE (X) == ABS ? CC_ZSOmode :                                 \
    (GET_CODE (X) == ABS ? CC_ZSOmode :                                 \
    (GET_CODE (X) == AND || GET_CODE (X) == NOT || GET_CODE (X) == IOR  \
    (GET_CODE (X) == AND || GET_CODE (X) == NOT || GET_CODE (X) == IOR  \
     || GET_CODE (X) == XOR || GET_CODE (X) == ROTATE                   \
     || GET_CODE (X) == XOR || GET_CODE (X) == ROTATE                   \
     || GET_CODE (X) == ROTATERT || GET_CODE (X) == ASHIFTRT            \
     || GET_CODE (X) == ROTATERT || GET_CODE (X) == ASHIFTRT            \
     || GET_CODE (X) == LSHIFTRT || GET_CODE (X) == ASHIFT ? CC_ZSmode : \
     || GET_CODE (X) == LSHIFTRT || GET_CODE (X) == ASHIFT ? CC_ZSmode : \
     CCmode))))
     CCmode))))
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.