diff options
author | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-05-07 16:58:46 +0000 |
---|---|---|
committer | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-05-07 16:58:46 +0000 |
commit | d1f9b275e42cf5c753e9f05789d89cc132726607 (patch) | |
tree | d586b7005253121ffef57e4f1d75d48de1056334 /gcc/config/m68k | |
parent | 3dd2833b51262c109ebc4b6f3f93973c286cd7cd (diff) | |
download | gcc-d1f9b275e42cf5c753e9f05789d89cc132726607.tar.gz |
gcc/
* rtl.h (always_void_p): New function.
* gengenrtl.c (always_void_p): Likewise.
(genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
with code foo are always VOIDmode.
* genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
* builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
compare-elim.c, config/aarch64/aarch64.c,
config/aarch64/aarch64.md, config/alpha/alpha.c,
config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
config/ia64/vect.md, config/iq2000/iq2000.c,
config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
config/mep/mep.c, config/microblaze/microblaze.c,
config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
config/mn10300/mn10300.c, config/msp430/msp430.c,
config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
config/rs6000/altivec.md, config/rs6000/rs6000.c,
config/rs6000/rs6000.md, config/rs6000/vector.md,
config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
config/sh/sh.md, config/sh/sh_treg_combine.cc,
config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
config/spu/spu.md, config/stormy16/stormy16.c,
config/tilegx/tilegx.c, config/tilegx/tilegx.md,
config/tilepro/tilepro.c, config/tilepro/tilepro.md,
config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
var-tracking.c: Update calls accordingly.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@222883 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/m68k')
-rw-r--r-- | gcc/config/m68k/m68k.c | 17 | ||||
-rw-r--r-- | gcc/config/m68k/m68k.md | 8 |
2 files changed, 11 insertions, 14 deletions
diff --git a/gcc/config/m68k/m68k.c b/gcc/config/m68k/m68k.c index fb82105a9a7..87d9ef9307d 100644 --- a/gcc/config/m68k/m68k.c +++ b/gcc/config/m68k/m68k.c @@ -959,7 +959,7 @@ m68k_emit_movem (rtx base, HOST_WIDE_INT offset, (count * GET_MODE_SIZE (mode) * (HOST_WIDE_INT) (store_p ? -1 : 1))); - XVECEXP (body, 0, i++) = gen_rtx_SET (VOIDmode, base, src); + XVECEXP (body, 0, i++) = gen_rtx_SET (base, src); } for (; mask != 0; mask >>= 1, regno++) @@ -969,7 +969,7 @@ m68k_emit_movem (rtx base, HOST_WIDE_INT offset, operands[!store_p] = gen_frame_mem (mode, addr); operands[store_p] = gen_rtx_REG (mode, regno); XVECEXP (body, 0, i++) - = gen_rtx_SET (VOIDmode, operands[0], operands[1]); + = gen_rtx_SET (operands[0], operands[1]); offset += GET_MODE_SIZE (mode); } gcc_assert (i == XVECLEN (body, 0)); @@ -3740,8 +3740,7 @@ emit_move_sequence (rtx *operands, machine_mode mode, rtx scratch_reg) } else emit_move_insn (scratch_reg, XEXP (operand1, 0)); - emit_insn (gen_rtx_SET (VOIDmode, operand0, - gen_rtx_MEM (mode, scratch_reg))); + emit_insn (gen_rtx_SET (operand0, gen_rtx_MEM (mode, scratch_reg))); return 1; } else if (fp_reg_operand (operand1, mode) @@ -3774,8 +3773,7 @@ emit_move_sequence (rtx *operands, machine_mode mode, rtx scratch_reg) } else emit_move_insn (scratch_reg, XEXP (operand0, 0)); - emit_insn (gen_rtx_SET (VOIDmode, gen_rtx_MEM (mode, scratch_reg), - operand1)); + emit_insn (gen_rtx_SET (gen_rtx_MEM (mode, scratch_reg), operand1)); return 1; } /* Handle secondary reloads for loads of FP registers from constant @@ -3802,11 +3800,10 @@ emit_move_sequence (rtx *operands, machine_mode mode, rtx scratch_reg) memory location into scratch_reg. */ xoperands[0] = scratch_reg; xoperands[1] = XEXP (force_const_mem (mode, operand1), 0); - emit_insn (gen_rtx_SET (mode, scratch_reg, xoperands[1])); + emit_insn (gen_rtx_SET (scratch_reg, xoperands[1])); /* Now load the destination register. */ - emit_insn (gen_rtx_SET (mode, operand0, - gen_rtx_MEM (mode, scratch_reg))); + emit_insn (gen_rtx_SET (operand0, gen_rtx_MEM (mode, scratch_reg))); return 1; } @@ -5101,7 +5098,7 @@ m68k_output_mi_thunk (FILE *file, tree thunk ATTRIBUTE_UNUSED, addr = plus_constant (Pmode, tmp, vcall_offset); if (!m68k_legitimate_address_p (Pmode, addr, true)) { - emit_insn (gen_rtx_SET (VOIDmode, tmp, addr)); + emit_insn (gen_rtx_SET (tmp, addr)); addr = tmp; } diff --git a/gcc/config/m68k/m68k.md b/gcc/config/m68k/m68k.md index 6bb296e9e0d..7f4195a9f2f 100644 --- a/gcc/config/m68k/m68k.md +++ b/gcc/config/m68k/m68k.md @@ -1134,7 +1134,7 @@ DONE; /* We don't want the clobber emitted, so handle this ourselves. */ - emit_insn (gen_rtx_SET (VOIDmode, operands[0], operands[1])); + emit_insn (gen_rtx_SET (operands[0], operands[1])); DONE; }) @@ -1148,7 +1148,7 @@ DONE; /* We don't want the clobber emitted, so handle this ourselves. */ - emit_insn (gen_rtx_SET (VOIDmode, operands[0], operands[1])); + emit_insn (gen_rtx_SET (operands[0], operands[1])); DONE; }) @@ -1277,7 +1277,7 @@ DONE; /* We don't want the clobber emitted, so handle this ourselves. */ - emit_insn (gen_rtx_SET (VOIDmode, operands[0], operands[1])); + emit_insn (gen_rtx_SET (operands[0], operands[1])); DONE; }) @@ -1291,7 +1291,7 @@ DONE; /* We don't want the clobber emitted, so handle this ourselves. */ - emit_insn (gen_rtx_SET (VOIDmode, operands[0], operands[1])); + emit_insn (gen_rtx_SET (operands[0], operands[1])); DONE; }) |