summaryrefslogtreecommitdiff
path: root/gcc/config/tilepro
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@arm.com>2015-05-07 16:58:46 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2015-05-07 16:58:46 +0000
commitf7df4a840c47845783129279750f1c214e74e7d1 (patch)
treed586b7005253121ffef57e4f1d75d48de1056334 /gcc/config/tilepro
parentd5449acf6b952794ecfacfbdbb8291f37dfd57d1 (diff)
downloadgcc-f7df4a840c47845783129279750f1c214e74e7d1.tar.gz
rtl.h (always_void_p): New function.
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. From-SVN: r222883
Diffstat (limited to 'gcc/config/tilepro')
-rw-r--r--gcc/config/tilepro/tilepro.c21
-rw-r--r--gcc/config/tilepro/tilepro.md8
2 files changed, 14 insertions, 15 deletions
diff --git a/gcc/config/tilepro/tilepro.c b/gcc/config/tilepro/tilepro.c
index f534b036e33..6ed4a04df9f 100644
--- a/gcc/config/tilepro/tilepro.c
+++ b/gcc/config/tilepro/tilepro.c
@@ -2279,8 +2279,7 @@ tilepro_emit_setcc_internal (rtx res, enum rtx_code code, rtx op0, rtx op1,
op1 = force_reg (SImode, op1);
/* Return the setcc comparison. */
- emit_insn (gen_rtx_SET (VOIDmode, res,
- gen_rtx_fmt_ee (code, SImode, op0, op1)));
+ emit_insn (gen_rtx_SET (res, gen_rtx_fmt_ee (code, SImode, op0, op1)));
return true;
}
@@ -2431,7 +2430,7 @@ tilepro_emit_conditional_branch (rtx operands[], machine_mode cmp_mode)
rtx cmp_rtx =
tilepro_emit_cc_test (GET_CODE (operands[0]), operands[1], operands[2],
cmp_mode, false);
- rtx branch_rtx = gen_rtx_SET (VOIDmode, pc_rtx,
+ rtx branch_rtx = gen_rtx_SET (pc_rtx,
gen_rtx_IF_THEN_ELSE (VOIDmode, cmp_rtx,
gen_rtx_LABEL_REF
(VOIDmode,
@@ -3324,7 +3323,7 @@ frame_emit_store (int regno, int regno_note, rtx addr, rtx cfa,
rtx reg_note = gen_rtx_REG (Pmode, regno_note);
rtx cfa_relative_addr = gen_rtx_PLUS (Pmode, cfa, gen_int_si (cfa_offset));
rtx cfa_relative_mem = gen_frame_mem (Pmode, cfa_relative_addr);
- rtx real = gen_rtx_SET (VOIDmode, cfa_relative_mem, reg_note);
+ rtx real = gen_rtx_SET (cfa_relative_mem, reg_note);
add_reg_note (mov, REG_CFA_OFFSET, real);
return emit_insn (mov);
@@ -3415,7 +3414,7 @@ emit_sp_adjust (int offset, int *next_scratch_regno, bool frame_related,
/* Describe what just happened in a way that dwarf understands. */
if (frame_related)
{
- rtx real = gen_rtx_SET (VOIDmode, stack_pointer_rtx,
+ rtx real = gen_rtx_SET (stack_pointer_rtx,
gen_rtx_PLUS (Pmode, stack_pointer_rtx,
imm_rtx));
RTX_FRAME_RELATED_P (insn) = 1;
@@ -3497,7 +3496,7 @@ compute_frame_addr (int offset_from_fp, int *next_scratch_regno)
if (!tilepro_expand_addsi (tmp_reg_rtx, base_reg_rtx, offset_rtx))
{
- emit_insn (gen_rtx_SET (VOIDmode, tmp_reg_rtx,
+ emit_insn (gen_rtx_SET (tmp_reg_rtx,
gen_rtx_PLUS (Pmode, base_reg_rtx,
offset_rtx)));
}
@@ -3635,7 +3634,7 @@ tilepro_expand_prologue (void)
original stack pointer, not the one after we have pushed
the frame. */
rtx p = gen_rtx_PLUS (Pmode, stack_pointer_rtx, size_rtx);
- emit_insn (gen_rtx_SET (VOIDmode, chain_addr, p));
+ emit_insn (gen_rtx_SET (chain_addr, p));
emit_sp_adjust (-total_size, &next_scratch_regno,
!frame_pointer_needed, NULL_RTX);
}
@@ -3648,7 +3647,7 @@ tilepro_expand_prologue (void)
!frame_pointer_needed, NULL_RTX);
p = gen_rtx_PLUS (Pmode, stack_pointer_rtx,
GEN_INT (UNITS_PER_WORD));
- emit_insn (gen_rtx_SET (VOIDmode, chain_addr, p));
+ emit_insn (gen_rtx_SET (chain_addr, p));
}
/* Save our frame pointer for backtrace chaining. */
@@ -3675,14 +3674,14 @@ tilepro_expand_prologue (void)
r = gen_rtx_REG (word_mode, next_scratch_regno--);
reg_save_addr[which_scratch] = r;
- emit_insn (gen_rtx_SET (VOIDmode, r, p));
+ emit_insn (gen_rtx_SET (r, p));
}
else
{
/* Advance to the next stack slot to store this register. */
int stride = ROUND_ROBIN_SIZE * -UNITS_PER_WORD;
rtx p = gen_rtx_PLUS (Pmode, r, GEN_INT (stride));
- emit_insn (gen_rtx_SET (VOIDmode, r, p));
+ emit_insn (gen_rtx_SET (r, p));
}
/* Save this register to the stack (but use the old fp value
@@ -3776,7 +3775,7 @@ tilepro_expand_epilogue (bool sibcall_p)
register. */
int stride = ROUND_ROBIN_SIZE * -UNITS_PER_WORD;
rtx p = gen_rtx_PLUS (Pmode, r, GEN_INT (stride));
- emit_insn (gen_rtx_SET (VOIDmode, r, p));
+ emit_insn (gen_rtx_SET (r, p));
}
if (fp_copy_regno >= 0 && regno == HARD_FRAME_POINTER_REGNUM)
diff --git a/gcc/config/tilepro/tilepro.md b/gcc/config/tilepro/tilepro.md
index 21807db7ee9..a97ebf9eb22 100644
--- a/gcc/config/tilepro/tilepro.md
+++ b/gcc/config/tilepro/tilepro.md
@@ -1336,7 +1336,7 @@
emit_move_insn (s0, gen_rtx_PLUS (SImode, s0, GEN_INT (-1)));
bcomp = gen_rtx_NE(SImode, s0, const0_rtx);
loc_ref = gen_rtx_LABEL_REF (VOIDmode, operands [1]);
- emit_jump_insn (gen_rtx_SET (VOIDmode, pc_rtx,
+ emit_jump_insn (gen_rtx_SET (pc_rtx,
gen_rtx_IF_THEN_ELSE (VOIDmode, bcomp,
loc_ref, pc_rtx)));
DONE;
@@ -3741,7 +3741,7 @@
rtx ssp_addr = gen_rtx_PLUS (Pmode, tp, GEN_INT (TARGET_THREAD_SSP_OFFSET));
rtx ssp = gen_reg_rtx (Pmode);
- emit_insn (gen_rtx_SET (VOIDmode, ssp, ssp_addr));
+ emit_insn (gen_rtx_SET (ssp, ssp_addr));
operands[1] = gen_rtx_MEM (Pmode, ssp);
#endif
@@ -3776,7 +3776,7 @@
rtx ssp_addr = gen_rtx_PLUS (Pmode, tp, GEN_INT (TARGET_THREAD_SSP_OFFSET));
rtx ssp = gen_reg_rtx (Pmode);
- emit_insn (gen_rtx_SET (VOIDmode, ssp, ssp_addr));
+ emit_insn (gen_rtx_SET (ssp, ssp_addr));
operands[1] = gen_rtx_MEM (Pmode, ssp);
#endif
@@ -3790,7 +3790,7 @@
loc_ref = gen_rtx_LABEL_REF (VOIDmode, operands[2]);
- emit_jump_insn (gen_rtx_SET (VOIDmode, pc_rtx,
+ emit_jump_insn (gen_rtx_SET (pc_rtx,
gen_rtx_IF_THEN_ELSE (VOIDmode, bcomp,
loc_ref, pc_rtx)));