diff options
author | Richard Sandiford <richard.sandiford@linaro.org> | 2017-08-30 11:08:14 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2017-08-30 11:08:14 +0000 |
commit | 0d4a1197ba24d4f95b5c5f1face695806075a0c6 (patch) | |
tree | 476ff68998ea4b53577993e27e03100cf3381f16 /gcc/config | |
parent | 8afacf2c365afa9c3b084728d3bbc5d1fa2fb69e (diff) | |
download | gcc-0d4a1197ba24d4f95b5c5f1face695806075a0c6.zip gcc-0d4a1197ba24d4f95b5c5f1face695806075a0c6.tar.gz gcc-0d4a1197ba24d4f95b5c5f1face695806075a0c6.tar.bz2 |
[1/77] Add an E_ prefix to mode names
Later patches will add wrapper types for specific classes
of mode. E.g. SImode will be a scalar_int_mode, SFmode will be a
scalar_float_mode, etc. This patch prepares for that change by adding
an E_ prefix to the mode enum values. It also adds #defines that map
the unprefixed names to the prefixed names; e.g:
#define QImode E_QImode
Later patches will change this to use things like scalar_int_mode
where appropriate.
The patch continues to use enum values to initialise static data.
This isn't necessary for correctness, but it cuts down on the amount
of load-time initialisation and shouldn't have any downsides.
The patch also changes things like:
cmp_mode == DImode ? DFmode : DImode
to:
cmp_mode == DImode ? E_DFmode : E_DImode
This is because DImode and DFmode will eventually be different
classes, so the original ?: wouldn't be well-formed.
2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
Alan Hayward <alan.hayward@arm.com>
David Sherwood <david.sherwood@arm.com>
gcc/
* genmodes.c (mode_size_inline): Add an E_ prefix to mode names.
(mode_nunits_inline): Likewise.
(mode_inner_inline): Likewise.
(mode_unit_size_inline): Likewise.
(mode_unit_precision_inline): Likewise.
(emit_insn_modes_h): Likewise. Also emit a #define of the
unprefixed name.
(emit_mode_wider): Add an E_ prefix to mode names.
(emit_mode_complex): Likewise.
(emit_mode_inner): Likewise.
(emit_mode_adjustments): Likewise.
(emit_mode_int_n): Likewise.
* config/aarch64/aarch64-builtins.c (v8qi_UP, v4hi_UP, v4hf_UP)
(v2si_UP, v2sf_UP, v1df_UP, di_UP, df_UP, v16qi_UP, v8hi_UP, v8hf_UP)
(v4si_UP, v4sf_UP, v2di_UP, v2df_UP, ti_UP, oi_UP, ci_UP, xi_UP)
(si_UP, sf_UP, hi_UP, hf_UP, qi_UP): Likewise.
(CRC32_BUILTIN, ENTRY): Likewise.
* config/aarch64/aarch64.c (aarch64_push_regs): Likewise.
(aarch64_pop_regs): Likewise.
(aarch64_process_components): Likewise.
* config/alpha/alpha.c (alpha_emit_conditional_move): Likewise.
* config/arm/arm-builtins.c (v8qi_UP, v4hi_UP, v4hf_UP, v2si_UP)
(v2sf_UP, di_UP, v16qi_UP, v8hi_UP, v8hf_UP, v4si_UP, v4sf_UP)
(v2di_UP, ti_UP, ei_UP, oi_UP, hf_UP, si_UP, void_UP): Likewise.
* config/arm/arm.c (arm_init_libfuncs): Likewise.
* config/i386/i386-builtin-types.awk (ix86_builtin_type_vect_mode):
Likewise.
* config/i386/i386-builtin.def (pcmpestr): Likewise.
(pcmpistr): Likewise.
* config/microblaze/microblaze.c (double_memory_operand): Likewise.
* config/mmix/mmix.c (mmix_output_condition): Likewise.
* config/powerpcspe/powerpcspe.c (rs6000_init_hard_regno_mode_ok):
Likewise.
* config/rl78/rl78.c (mduc_regs): Likewise.
* config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Likewise.
(htm_expand_builtin): Likewise.
* config/sh/sh.h (REGISTER_NATURAL_MODE): Likewise.
* config/sparc/sparc.c (emit_save_or_restore_regs): Likewise.
* config/xtensa/xtensa.c (print_operand): Likewise.
* expmed.h (NUM_MODE_PARTIAL_INT): Likewise.
(NUM_MODE_VECTOR_INT): Likewise.
* genoutput.c (null_operand): Likewise.
(output_operand_data): Likewise.
* genrecog.c (print_parameter_value): Likewise.
* lra.c (debug_operand_data): Likewise.
Co-Authored-By: Alan Hayward <alan.hayward@arm.com>
Co-Authored-By: David Sherwood <david.sherwood@arm.com>
From-SVN: r251452
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/aarch64/aarch64-builtins.c | 52 | ||||
-rw-r--r-- | gcc/config/aarch64/aarch64.c | 6 | ||||
-rw-r--r-- | gcc/config/alpha/alpha.c | 2 | ||||
-rw-r--r-- | gcc/config/arm/arm-builtins.c | 36 | ||||
-rw-r--r-- | gcc/config/arm/arm.c | 86 | ||||
-rw-r--r-- | gcc/config/i386/i386-builtin-types.awk | 2 | ||||
-rw-r--r-- | gcc/config/i386/i386-builtin.def | 20 | ||||
-rw-r--r-- | gcc/config/microblaze/microblaze.c | 2 | ||||
-rw-r--r-- | gcc/config/mmix/mmix.c | 12 | ||||
-rw-r--r-- | gcc/config/powerpcspe/powerpcspe.c | 34 | ||||
-rw-r--r-- | gcc/config/rl78/rl78.c | 12 | ||||
-rw-r--r-- | gcc/config/rs6000/rs6000.c | 34 | ||||
-rw-r--r-- | gcc/config/sh/sh.h | 3 | ||||
-rw-r--r-- | gcc/config/sparc/sparc.c | 6 | ||||
-rw-r--r-- | gcc/config/xtensa/xtensa.c | 3 |
15 files changed, 156 insertions, 154 deletions
diff --git a/gcc/config/aarch64/aarch64-builtins.c b/gcc/config/aarch64/aarch64-builtins.c index d30009b..ae9a339 100644 --- a/gcc/config/aarch64/aarch64-builtins.c +++ b/gcc/config/aarch64/aarch64-builtins.c @@ -41,30 +41,30 @@ #include "gimple-iterator.h" #include "case-cfn-macros.h" -#define v8qi_UP V8QImode -#define v4hi_UP V4HImode -#define v4hf_UP V4HFmode -#define v2si_UP V2SImode -#define v2sf_UP V2SFmode -#define v1df_UP V1DFmode -#define di_UP DImode -#define df_UP DFmode -#define v16qi_UP V16QImode -#define v8hi_UP V8HImode -#define v8hf_UP V8HFmode -#define v4si_UP V4SImode -#define v4sf_UP V4SFmode -#define v2di_UP V2DImode -#define v2df_UP V2DFmode -#define ti_UP TImode -#define oi_UP OImode -#define ci_UP CImode -#define xi_UP XImode -#define si_UP SImode -#define sf_UP SFmode -#define hi_UP HImode -#define hf_UP HFmode -#define qi_UP QImode +#define v8qi_UP E_V8QImode +#define v4hi_UP E_V4HImode +#define v4hf_UP E_V4HFmode +#define v2si_UP E_V2SImode +#define v2sf_UP E_V2SFmode +#define v1df_UP E_V1DFmode +#define di_UP E_DImode +#define df_UP E_DFmode +#define v16qi_UP E_V16QImode +#define v8hi_UP E_V8HImode +#define v8hf_UP E_V8HFmode +#define v4si_UP E_V4SImode +#define v4sf_UP E_V4SFmode +#define v2di_UP E_V2DImode +#define v2df_UP E_V2DFmode +#define ti_UP E_TImode +#define oi_UP E_OImode +#define ci_UP E_CImode +#define xi_UP E_XImode +#define si_UP E_SImode +#define sf_UP E_SFmode +#define hi_UP E_HImode +#define hf_UP E_HFmode +#define qi_UP E_QImode #define UP(X) X##_UP #define SIMD_MAX_BUILTIN_ARGS 5 @@ -385,7 +385,7 @@ enum aarch64_builtins #undef CRC32_BUILTIN #define CRC32_BUILTIN(N, M) \ - {"__builtin_aarch64_"#N, M##mode, CODE_FOR_aarch64_##N, AARCH64_BUILTIN_##N}, + {"__builtin_aarch64_"#N, E_##M##mode, CODE_FOR_aarch64_##N, AARCH64_BUILTIN_##N}, static aarch64_crc_builtin_datum aarch64_crc_builtin_data[] = { AARCH64_CRC32_BUILTINS @@ -464,7 +464,7 @@ struct aarch64_simd_type_info }; #define ENTRY(E, M, Q, G) \ - {E, "__" #E, #G "__" #E, NULL_TREE, NULL_TREE, M##mode, qualifier_##Q}, + {E, "__" #E, #G "__" #E, NULL_TREE, NULL_TREE, E_##M##mode, qualifier_##Q}, static struct aarch64_simd_type_info aarch64_simd_types [] = { #include "aarch64-simd-builtin-types.def" }; diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c index 28c4e0e..64c6a7b 100644 --- a/gcc/config/aarch64/aarch64.c +++ b/gcc/config/aarch64/aarch64.c @@ -3106,7 +3106,7 @@ static void aarch64_push_regs (unsigned regno1, unsigned regno2, HOST_WIDE_INT adjustment) { rtx_insn *insn; - machine_mode mode = (regno1 <= R30_REGNUM) ? DImode : DFmode; + machine_mode mode = (regno1 <= R30_REGNUM) ? E_DImode : E_DFmode; if (regno2 == INVALID_REGNUM) return aarch64_pushwb_single_reg (mode, regno1, adjustment); @@ -3149,7 +3149,7 @@ static void aarch64_pop_regs (unsigned regno1, unsigned regno2, HOST_WIDE_INT adjustment, rtx *cfi_ops) { - machine_mode mode = (regno1 <= R30_REGNUM) ? DImode : DFmode; + machine_mode mode = (regno1 <= R30_REGNUM) ? E_DImode : E_DFmode; rtx reg1 = gen_rtx_REG (mode, regno1); *cfi_ops = alloc_reg_note (REG_CFA_RESTORE, reg1, *cfi_ops); @@ -3483,7 +3483,7 @@ aarch64_process_components (sbitmap components, bool prologue_p) { /* AAPCS64 section 5.1.2 requires only the bottom 64 bits to be saved so DFmode for the vector registers is enough. */ - machine_mode mode = GP_REGNUM_P (regno) ? DImode : DFmode; + machine_mode mode = GP_REGNUM_P (regno) ? E_DImode : E_DFmode; rtx reg = gen_rtx_REG (mode, regno); HOST_WIDE_INT offset = cfun->machine->frame.reg_offset[regno]; if (!frame_pointer_needed) diff --git a/gcc/config/alpha/alpha.c b/gcc/config/alpha/alpha.c index e13c5f9..b2875ea 100644 --- a/gcc/config/alpha/alpha.c +++ b/gcc/config/alpha/alpha.c @@ -2783,7 +2783,7 @@ alpha_emit_conditional_move (rtx cmp, machine_mode mode) emit_insn (gen_rtx_SET (tem, gen_rtx_fmt_ee (cmp_code, cmp_mode, op0, op1))); - cmp_mode = cmp_mode == DImode ? DFmode : DImode; + cmp_mode = cmp_mode == DImode ? E_DFmode : E_DImode; op0 = gen_lowpart (cmp_mode, tem); op1 = CONST0_RTX (cmp_mode); cmp = gen_rtx_fmt_ee (code, VOIDmode, op0, op1); diff --git a/gcc/config/arm/arm-builtins.c b/gcc/config/arm/arm-builtins.c index 7504ed5..dc1248f 100644 --- a/gcc/config/arm/arm-builtins.c +++ b/gcc/config/arm/arm-builtins.c @@ -255,24 +255,24 @@ arm_storestruct_lane_qualifiers[SIMD_MAX_BUILTIN_ARGS] qualifier_none, qualifier_struct_load_store_lane_index }; #define STORE1LANE_QUALIFIERS (arm_storestruct_lane_qualifiers) -#define v8qi_UP V8QImode -#define v4hi_UP V4HImode -#define v4hf_UP V4HFmode -#define v2si_UP V2SImode -#define v2sf_UP V2SFmode -#define di_UP DImode -#define v16qi_UP V16QImode -#define v8hi_UP V8HImode -#define v8hf_UP V8HFmode -#define v4si_UP V4SImode -#define v4sf_UP V4SFmode -#define v2di_UP V2DImode -#define ti_UP TImode -#define ei_UP EImode -#define oi_UP OImode -#define hf_UP HFmode -#define si_UP SImode -#define void_UP VOIDmode +#define v8qi_UP E_V8QImode +#define v4hi_UP E_V4HImode +#define v4hf_UP E_V4HFmode +#define v2si_UP E_V2SImode +#define v2sf_UP E_V2SFmode +#define di_UP E_DImode +#define v16qi_UP E_V16QImode +#define v8hi_UP E_V8HImode +#define v8hf_UP E_V8HFmode +#define v4si_UP E_V4SImode +#define v4sf_UP E_V4SFmode +#define v2di_UP E_V2DImode +#define ti_UP E_TImode +#define ei_UP E_EImode +#define oi_UP E_OImode +#define hf_UP E_HFmode +#define si_UP E_SImode +#define void_UP E_VOIDmode #define UP(X) X##_UP diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index 3d15a81..764b0bb 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -2553,52 +2553,52 @@ arm_init_libfuncs (void) { const arm_fixed_mode_set fixed_arith_modes[] = { - { QQmode, "qq" }, - { UQQmode, "uqq" }, - { HQmode, "hq" }, - { UHQmode, "uhq" }, - { SQmode, "sq" }, - { USQmode, "usq" }, - { DQmode, "dq" }, - { UDQmode, "udq" }, - { TQmode, "tq" }, - { UTQmode, "utq" }, - { HAmode, "ha" }, - { UHAmode, "uha" }, - { SAmode, "sa" }, - { USAmode, "usa" }, - { DAmode, "da" }, - { UDAmode, "uda" }, - { TAmode, "ta" }, - { UTAmode, "uta" } + { E_QQmode, "qq" }, + { E_UQQmode, "uqq" }, + { E_HQmode, "hq" }, + { E_UHQmode, "uhq" }, + { E_SQmode, "sq" }, + { E_USQmode, "usq" }, + { E_DQmode, "dq" }, + { E_UDQmode, "udq" }, + { E_TQmode, "tq" }, + { E_UTQmode, "utq" }, + { E_HAmode, "ha" }, + { E_UHAmode, "uha" }, + { E_SAmode, "sa" }, + { E_USAmode, "usa" }, + { E_DAmode, "da" }, + { E_UDAmode, "uda" }, + { E_TAmode, "ta" }, + { E_UTAmode, "uta" } }; const arm_fixed_mode_set fixed_conv_modes[] = { - { QQmode, "qq" }, - { UQQmode, "uqq" }, - { HQmode, "hq" }, - { UHQmode, "uhq" }, - { SQmode, "sq" }, - { USQmode, "usq" }, - { DQmode, "dq" }, - { UDQmode, "udq" }, - { TQmode, "tq" }, - { UTQmode, "utq" }, - { HAmode, "ha" }, - { UHAmode, "uha" }, - { SAmode, "sa" }, - { USAmode, "usa" }, - { DAmode, "da" }, - { UDAmode, "uda" }, - { TAmode, "ta" }, - { UTAmode, "uta" }, - { QImode, "qi" }, - { HImode, "hi" }, - { SImode, "si" }, - { DImode, "di" }, - { TImode, "ti" }, - { SFmode, "sf" }, - { DFmode, "df" } + { E_QQmode, "qq" }, + { E_UQQmode, "uqq" }, + { E_HQmode, "hq" }, + { E_UHQmode, "uhq" }, + { E_SQmode, "sq" }, + { E_USQmode, "usq" }, + { E_DQmode, "dq" }, + { E_UDQmode, "udq" }, + { E_TQmode, "tq" }, + { E_UTQmode, "utq" }, + { E_HAmode, "ha" }, + { E_UHAmode, "uha" }, + { E_SAmode, "sa" }, + { E_USAmode, "usa" }, + { E_DAmode, "da" }, + { E_UDAmode, "uda" }, + { E_TAmode, "ta" }, + { E_UTAmode, "uta" }, + { E_QImode, "qi" }, + { E_HImode, "hi" }, + { E_SImode, "si" }, + { E_DImode, "di" }, + { E_TImode, "ti" }, + { E_SFmode, "sf" }, + { E_DFmode, "df" } }; unsigned int i, j; diff --git a/gcc/config/i386/i386-builtin-types.awk b/gcc/config/i386/i386-builtin-types.awk index 6f385e6..3b61af3 100644 --- a/gcc/config/i386/i386-builtin-types.awk +++ b/gcc/config/i386/i386-builtin-types.awk @@ -187,7 +187,7 @@ END { printf ",\n " else printf ", " - printf vect_mode[i] "mode" + printf "E_" vect_mode[i] "mode" } print "\n};\n\n" diff --git a/gcc/config/i386/i386-builtin.def b/gcc/config/i386/i386-builtin.def index 6ce9074..7ff1bb1 100644 --- a/gcc/config/i386/i386-builtin.def +++ b/gcc/config/i386/i386-builtin.def @@ -66,11 +66,11 @@ BDESC_END (COMI, PCMPESTR) BDESC_FIRST (pcmpestr, PCMPESTR, OPTION_MASK_ISA_SSE4_2, CODE_FOR_sse4_2_pcmpestr, "__builtin_ia32_pcmpestri128", IX86_BUILTIN_PCMPESTRI128, UNKNOWN, 0) BDESC (OPTION_MASK_ISA_SSE4_2, CODE_FOR_sse4_2_pcmpestr, "__builtin_ia32_pcmpestrm128", IX86_BUILTIN_PCMPESTRM128, UNKNOWN, 0) -BDESC (OPTION_MASK_ISA_SSE4_2, CODE_FOR_sse4_2_pcmpestr, "__builtin_ia32_pcmpestria128", IX86_BUILTIN_PCMPESTRA128, UNKNOWN, (int) CCAmode) -BDESC (OPTION_MASK_ISA_SSE4_2, CODE_FOR_sse4_2_pcmpestr, "__builtin_ia32_pcmpestric128", IX86_BUILTIN_PCMPESTRC128, UNKNOWN, (int) CCCmode) -BDESC (OPTION_MASK_ISA_SSE4_2, CODE_FOR_sse4_2_pcmpestr, "__builtin_ia32_pcmpestrio128", IX86_BUILTIN_PCMPESTRO128, UNKNOWN, (int) CCOmode) -BDESC (OPTION_MASK_ISA_SSE4_2, CODE_FOR_sse4_2_pcmpestr, "__builtin_ia32_pcmpestris128", IX86_BUILTIN_PCMPESTRS128, UNKNOWN, (int) CCSmode) -BDESC (OPTION_MASK_ISA_SSE4_2, CODE_FOR_sse4_2_pcmpestr, "__builtin_ia32_pcmpestriz128", IX86_BUILTIN_PCMPESTRZ128, UNKNOWN, (int) CCZmode) +BDESC (OPTION_MASK_ISA_SSE4_2, CODE_FOR_sse4_2_pcmpestr, "__builtin_ia32_pcmpestria128", IX86_BUILTIN_PCMPESTRA128, UNKNOWN, (int) E_CCAmode) +BDESC (OPTION_MASK_ISA_SSE4_2, CODE_FOR_sse4_2_pcmpestr, "__builtin_ia32_pcmpestric128", IX86_BUILTIN_PCMPESTRC128, UNKNOWN, (int) E_CCCmode) +BDESC (OPTION_MASK_ISA_SSE4_2, CODE_FOR_sse4_2_pcmpestr, "__builtin_ia32_pcmpestrio128", IX86_BUILTIN_PCMPESTRO128, UNKNOWN, (int) E_CCOmode) +BDESC (OPTION_MASK_ISA_SSE4_2, CODE_FOR_sse4_2_pcmpestr, "__builtin_ia32_pcmpestris128", IX86_BUILTIN_PCMPESTRS128, UNKNOWN, (int) E_CCSmode) +BDESC (OPTION_MASK_ISA_SSE4_2, CODE_FOR_sse4_2_pcmpestr, "__builtin_ia32_pcmpestriz128", IX86_BUILTIN_PCMPESTRZ128, UNKNOWN, (int) E_CCZmode) BDESC_END (PCMPESTR, PCMPISTR) @@ -78,11 +78,11 @@ BDESC_END (PCMPESTR, PCMPISTR) BDESC_FIRST (pcmpistr, PCMPISTR, OPTION_MASK_ISA_SSE4_2, CODE_FOR_sse4_2_pcmpistr, "__builtin_ia32_pcmpistri128", IX86_BUILTIN_PCMPISTRI128, UNKNOWN, 0) BDESC (OPTION_MASK_ISA_SSE4_2, CODE_FOR_sse4_2_pcmpistr, "__builtin_ia32_pcmpistrm128", IX86_BUILTIN_PCMPISTRM128, UNKNOWN, 0) -BDESC (OPTION_MASK_ISA_SSE4_2, CODE_FOR_sse4_2_pcmpistr, "__builtin_ia32_pcmpistria128", IX86_BUILTIN_PCMPISTRA128, UNKNOWN, (int) CCAmode) -BDESC (OPTION_MASK_ISA_SSE4_2, CODE_FOR_sse4_2_pcmpistr, "__builtin_ia32_pcmpistric128", IX86_BUILTIN_PCMPISTRC128, UNKNOWN, (int) CCCmode) -BDESC (OPTION_MASK_ISA_SSE4_2, CODE_FOR_sse4_2_pcmpistr, "__builtin_ia32_pcmpistrio128", IX86_BUILTIN_PCMPISTRO128, UNKNOWN, (int) CCOmode) -BDESC (OPTION_MASK_ISA_SSE4_2, CODE_FOR_sse4_2_pcmpistr, "__builtin_ia32_pcmpistris128", IX86_BUILTIN_PCMPISTRS128, UNKNOWN, (int) CCSmode) -BDESC (OPTION_MASK_ISA_SSE4_2, CODE_FOR_sse4_2_pcmpistr, "__builtin_ia32_pcmpistriz128", IX86_BUILTIN_PCMPISTRZ128, UNKNOWN, (int) CCZmode) +BDESC (OPTION_MASK_ISA_SSE4_2, CODE_FOR_sse4_2_pcmpistr, "__builtin_ia32_pcmpistria128", IX86_BUILTIN_PCMPISTRA128, UNKNOWN, (int) E_CCAmode) +BDESC (OPTION_MASK_ISA_SSE4_2, CODE_FOR_sse4_2_pcmpistr, "__builtin_ia32_pcmpistric128", IX86_BUILTIN_PCMPISTRC128, UNKNOWN, (int) E_CCCmode) +BDESC (OPTION_MASK_ISA_SSE4_2, CODE_FOR_sse4_2_pcmpistr, "__builtin_ia32_pcmpistrio128", IX86_BUILTIN_PCMPISTRO128, UNKNOWN, (int) E_CCOmode) +BDESC (OPTION_MASK_ISA_SSE4_2, CODE_FOR_sse4_2_pcmpistr, "__builtin_ia32_pcmpistris128", IX86_BUILTIN_PCMPISTRS128, UNKNOWN, (int) E_CCSmode) +BDESC (OPTION_MASK_ISA_SSE4_2, CODE_FOR_sse4_2_pcmpistr, "__builtin_ia32_pcmpistriz128", IX86_BUILTIN_PCMPISTRZ128, UNKNOWN, (int) E_CCZmode) BDESC_END (PCMPISTR, SPECIAL_ARGS) diff --git a/gcc/config/microblaze/microblaze.c b/gcc/config/microblaze/microblaze.c index 04121c8..0a5ae60 100644 --- a/gcc/config/microblaze/microblaze.c +++ b/gcc/config/microblaze/microblaze.c @@ -376,7 +376,7 @@ double_memory_operand (rtx op, machine_mode mode) return 1; return memory_address_p ((GET_MODE_CLASS (mode) == MODE_INT - ? SImode : SFmode), + ? E_SImode : E_SFmode), plus_constant (Pmode, addr, 4)); } diff --git a/gcc/config/mmix/mmix.c b/gcc/config/mmix/mmix.c index c2cef01..90a4651 100644 --- a/gcc/config/mmix/mmix.c +++ b/gcc/config/mmix/mmix.c @@ -2648,12 +2648,12 @@ mmix_output_condition (FILE *stream, const_rtx x, int reversed) #undef CCEND static const struct cc_type_conv cc_convs[] - = {{CC_FUNmode, cc_fun_convs}, - {CC_FPmode, cc_fp_convs}, - {CC_FPEQmode, cc_fpeq_convs}, - {CC_UNSmode, cc_uns_convs}, - {CCmode, cc_signed_convs}, - {DImode, cc_di_convs}}; + = {{E_CC_FUNmode, cc_fun_convs}, + {E_CC_FPmode, cc_fp_convs}, + {E_CC_FPEQmode, cc_fpeq_convs}, + {E_CC_UNSmode, cc_uns_convs}, + {E_CCmode, cc_signed_convs}, + {E_DImode, cc_di_convs}}; size_t i; int j; diff --git a/gcc/config/powerpcspe/powerpcspe.c b/gcc/config/powerpcspe/powerpcspe.c index 5a92cd0..4cb10d1 100644 --- a/gcc/config/powerpcspe/powerpcspe.c +++ b/gcc/config/powerpcspe/powerpcspe.c @@ -3544,67 +3544,67 @@ rs6000_init_hard_regno_mode_ok (bool global_init_p) }; static const struct fuse_insns addis_insns[] = { - { SFmode, DImode, RELOAD_REG_FPR, + { E_SFmode, E_DImode, RELOAD_REG_FPR, CODE_FOR_fusion_vsx_di_sf_load, CODE_FOR_fusion_vsx_di_sf_store }, - { SFmode, SImode, RELOAD_REG_FPR, + { E_SFmode, E_SImode, RELOAD_REG_FPR, CODE_FOR_fusion_vsx_si_sf_load, CODE_FOR_fusion_vsx_si_sf_store }, - { DFmode, DImode, RELOAD_REG_FPR, + { E_DFmode, E_DImode, RELOAD_REG_FPR, CODE_FOR_fusion_vsx_di_df_load, CODE_FOR_fusion_vsx_di_df_store }, - { DFmode, SImode, RELOAD_REG_FPR, + { E_DFmode, E_SImode, RELOAD_REG_FPR, CODE_FOR_fusion_vsx_si_df_load, CODE_FOR_fusion_vsx_si_df_store }, - { DImode, DImode, RELOAD_REG_FPR, + { E_DImode, E_DImode, RELOAD_REG_FPR, CODE_FOR_fusion_vsx_di_di_load, CODE_FOR_fusion_vsx_di_di_store }, - { DImode, SImode, RELOAD_REG_FPR, + { E_DImode, E_SImode, RELOAD_REG_FPR, CODE_FOR_fusion_vsx_si_di_load, CODE_FOR_fusion_vsx_si_di_store }, - { QImode, DImode, RELOAD_REG_GPR, + { E_QImode, E_DImode, RELOAD_REG_GPR, CODE_FOR_fusion_gpr_di_qi_load, CODE_FOR_fusion_gpr_di_qi_store }, - { QImode, SImode, RELOAD_REG_GPR, + { E_QImode, E_SImode, RELOAD_REG_GPR, CODE_FOR_fusion_gpr_si_qi_load, CODE_FOR_fusion_gpr_si_qi_store }, - { HImode, DImode, RELOAD_REG_GPR, + { E_HImode, E_DImode, RELOAD_REG_GPR, CODE_FOR_fusion_gpr_di_hi_load, CODE_FOR_fusion_gpr_di_hi_store }, - { HImode, SImode, RELOAD_REG_GPR, + { E_HImode, E_SImode, RELOAD_REG_GPR, CODE_FOR_fusion_gpr_si_hi_load, CODE_FOR_fusion_gpr_si_hi_store }, - { SImode, DImode, RELOAD_REG_GPR, + { E_SImode, E_DImode, RELOAD_REG_GPR, CODE_FOR_fusion_gpr_di_si_load, CODE_FOR_fusion_gpr_di_si_store }, - { SImode, SImode, RELOAD_REG_GPR, + { E_SImode, E_SImode, RELOAD_REG_GPR, CODE_FOR_fusion_gpr_si_si_load, CODE_FOR_fusion_gpr_si_si_store }, - { SFmode, DImode, RELOAD_REG_GPR, + { E_SFmode, E_DImode, RELOAD_REG_GPR, CODE_FOR_fusion_gpr_di_sf_load, CODE_FOR_fusion_gpr_di_sf_store }, - { SFmode, SImode, RELOAD_REG_GPR, + { E_SFmode, E_SImode, RELOAD_REG_GPR, CODE_FOR_fusion_gpr_si_sf_load, CODE_FOR_fusion_gpr_si_sf_store }, - { DImode, DImode, RELOAD_REG_GPR, + { E_DImode, E_DImode, RELOAD_REG_GPR, CODE_FOR_fusion_gpr_di_di_load, CODE_FOR_fusion_gpr_di_di_store }, - { DFmode, DImode, RELOAD_REG_GPR, + { E_DFmode, E_DImode, RELOAD_REG_GPR, CODE_FOR_fusion_gpr_di_df_load, CODE_FOR_fusion_gpr_di_df_store }, }; @@ -15457,7 +15457,7 @@ htm_expand_builtin (tree exp, rtx target, bool * expandedp) if (nonvoid) { - machine_mode tmode = (uses_spr) ? insn_op->mode : SImode; + machine_mode tmode = (uses_spr) ? insn_op->mode : E_SImode; if (!target || GET_MODE (target) != tmode || (uses_spr && !(*insn_op->predicate) (target, tmode))) diff --git a/gcc/config/rl78/rl78.c b/gcc/config/rl78/rl78.c index 9592cd9..01e0591 100644 --- a/gcc/config/rl78/rl78.c +++ b/gcc/config/rl78/rl78.c @@ -87,12 +87,12 @@ struct mduc_reg_type struct mduc_reg_type mduc_regs[] = { - {0xf00e8, QImode}, - {0xffff0, HImode}, - {0xffff2, HImode}, - {0xf2224, HImode}, - {0xf00e0, HImode}, - {0xf00e2, HImode} + {0xf00e8, E_QImode}, + {0xffff0, E_HImode}, + {0xffff2, E_HImode}, + {0xf2224, E_HImode}, + {0xf00e0, E_HImode}, + {0xf00e2, E_HImode} }; struct GTY(()) machine_function diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index a55c657..92cd0b4 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -3460,67 +3460,67 @@ rs6000_init_hard_regno_mode_ok (bool global_init_p) }; static const struct fuse_insns addis_insns[] = { - { SFmode, DImode, RELOAD_REG_FPR, + { E_SFmode, E_DImode, RELOAD_REG_FPR, CODE_FOR_fusion_vsx_di_sf_load, CODE_FOR_fusion_vsx_di_sf_store }, - { SFmode, SImode, RELOAD_REG_FPR, + { E_SFmode, E_SImode, RELOAD_REG_FPR, CODE_FOR_fusion_vsx_si_sf_load, CODE_FOR_fusion_vsx_si_sf_store }, - { DFmode, DImode, RELOAD_REG_FPR, + { E_DFmode, E_DImode, RELOAD_REG_FPR, CODE_FOR_fusion_vsx_di_df_load, CODE_FOR_fusion_vsx_di_df_store }, - { DFmode, SImode, RELOAD_REG_FPR, + { E_DFmode, E_SImode, RELOAD_REG_FPR, CODE_FOR_fusion_vsx_si_df_load, CODE_FOR_fusion_vsx_si_df_store }, - { DImode, DImode, RELOAD_REG_FPR, + { E_DImode, E_DImode, RELOAD_REG_FPR, CODE_FOR_fusion_vsx_di_di_load, CODE_FOR_fusion_vsx_di_di_store }, - { DImode, SImode, RELOAD_REG_FPR, + { E_DImode, E_SImode, RELOAD_REG_FPR, CODE_FOR_fusion_vsx_si_di_load, CODE_FOR_fusion_vsx_si_di_store }, - { QImode, DImode, RELOAD_REG_GPR, + { E_QImode, E_DImode, RELOAD_REG_GPR, CODE_FOR_fusion_gpr_di_qi_load, CODE_FOR_fusion_gpr_di_qi_store }, - { QImode, SImode, RELOAD_REG_GPR, + { E_QImode, E_SImode, RELOAD_REG_GPR, CODE_FOR_fusion_gpr_si_qi_load, CODE_FOR_fusion_gpr_si_qi_store }, - { HImode, DImode, RELOAD_REG_GPR, + { E_HImode, E_DImode, RELOAD_REG_GPR, CODE_FOR_fusion_gpr_di_hi_load, CODE_FOR_fusion_gpr_di_hi_store }, - { HImode, SImode, RELOAD_REG_GPR, + { E_HImode, E_SImode, RELOAD_REG_GPR, CODE_FOR_fusion_gpr_si_hi_load, CODE_FOR_fusion_gpr_si_hi_store }, - { SImode, DImode, RELOAD_REG_GPR, + { E_SImode, E_DImode, RELOAD_REG_GPR, CODE_FOR_fusion_gpr_di_si_load, CODE_FOR_fusion_gpr_di_si_store }, - { SImode, SImode, RELOAD_REG_GPR, + { E_SImode, E_SImode, RELOAD_REG_GPR, CODE_FOR_fusion_gpr_si_si_load, CODE_FOR_fusion_gpr_si_si_store }, - { SFmode, DImode, RELOAD_REG_GPR, + { E_SFmode, E_DImode, RELOAD_REG_GPR, CODE_FOR_fusion_gpr_di_sf_load, CODE_FOR_fusion_gpr_di_sf_store }, - { SFmode, SImode, RELOAD_REG_GPR, + { E_SFmode, E_SImode, RELOAD_REG_GPR, CODE_FOR_fusion_gpr_si_sf_load, CODE_FOR_fusion_gpr_si_sf_store }, - { DImode, DImode, RELOAD_REG_GPR, + { E_DImode, E_DImode, RELOAD_REG_GPR, CODE_FOR_fusion_gpr_di_di_load, CODE_FOR_fusion_gpr_di_di_store }, - { DFmode, DImode, RELOAD_REG_GPR, + { E_DFmode, E_DImode, RELOAD_REG_GPR, CODE_FOR_fusion_gpr_di_df_load, CODE_FOR_fusion_gpr_di_df_store }, }; @@ -14693,7 +14693,7 @@ htm_expand_builtin (tree exp, rtx target, bool * expandedp) if (nonvoid) { - machine_mode tmode = (uses_spr) ? insn_op->mode : SImode; + machine_mode tmode = (uses_spr) ? insn_op->mode : E_SImode; if (!target || GET_MODE (target) != tmode || (uses_spr && !(*insn_op->predicate) (target, tmode))) diff --git a/gcc/config/sh/sh.h b/gcc/config/sh/sh.h index b13d1b3..d90e857 100644 --- a/gcc/config/sh/sh.h +++ b/gcc/config/sh/sh.h @@ -689,7 +689,8 @@ extern char sh_additional_register_names[ADDREGNAMES_SIZE] \ /* The mode that should be generally used to store a register by itself in the stack, or to load it back. */ #define REGISTER_NATURAL_MODE(REGNO) \ - (FP_REGISTER_P (REGNO) ? SFmode : XD_REGISTER_P (REGNO) ? DFmode : SImode) + (FP_REGISTER_P (REGNO) ? E_SFmode \ + : XD_REGISTER_P (REGNO) ? E_DFmode : E_SImode) #define FIRST_PSEUDO_REGISTER 156 diff --git a/gcc/config/sparc/sparc.c b/gcc/config/sparc/sparc.c index 911cb34..5885288 100644 --- a/gcc/config/sparc/sparc.c +++ b/gcc/config/sparc/sparc.c @@ -5512,17 +5512,17 @@ emit_save_or_restore_regs (unsigned int low, unsigned int high, rtx base, if (reg0 && reg1) { - mode = SPARC_INT_REG_P (i) ? DImode : DFmode; + mode = SPARC_INT_REG_P (i) ? E_DImode : E_DFmode; regno = i; } else if (reg0) { - mode = SPARC_INT_REG_P (i) ? SImode : SFmode; + mode = SPARC_INT_REG_P (i) ? E_SImode : E_SFmode; regno = i; } else if (reg1) { - mode = SPARC_INT_REG_P (i) ? SImode : SFmode; + mode = SPARC_INT_REG_P (i) ? E_SImode : E_SFmode; regno = i + 1; offset += 4; } diff --git a/gcc/config/xtensa/xtensa.c b/gcc/config/xtensa/xtensa.c index 7c36e68..2ef7409 100644 --- a/gcc/config/xtensa/xtensa.c +++ b/gcc/config/xtensa/xtensa.c @@ -2332,7 +2332,8 @@ print_operand (FILE *file, rtx x, int letter) if (GET_CODE (x) == MEM && (GET_MODE (x) == DFmode || GET_MODE (x) == DImode)) { - x = adjust_address (x, GET_MODE (x) == DFmode ? SFmode : SImode, 4); + x = adjust_address (x, GET_MODE (x) == DFmode ? E_SFmode : E_SImode, + 4); output_address (GET_MODE (x), XEXP (x, 0)); } else |