diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2015-05-07 16:58:46 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2015-05-07 16:58:46 +0000 |
commit | f7df4a840c47845783129279750f1c214e74e7d1 (patch) | |
tree | d586b7005253121ffef57e4f1d75d48de1056334 /gcc/config/pa | |
parent | d5449acf6b952794ecfacfbdbb8291f37dfd57d1 (diff) | |
download | gcc-f7df4a840c47845783129279750f1c214e74e7d1.zip gcc-f7df4a840c47845783129279750f1c214e74e7d1.tar.gz gcc-f7df4a840c47845783129279750f1c214e74e7d1.tar.bz2 |
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/pa')
-rw-r--r-- | gcc/config/pa/pa.c | 54 | ||||
-rw-r--r-- | gcc/config/pa/pa.md | 46 |
2 files changed, 47 insertions, 53 deletions
diff --git a/gcc/config/pa/pa.c b/gcc/config/pa/pa.c index d5b0c50..42ead8f 100644 --- a/gcc/config/pa/pa.c +++ b/gcc/config/pa/pa.c @@ -806,7 +806,7 @@ legitimize_pic_address (rtx orig, machine_mode mode, rtx reg) So instead we just emit the raw set, which avoids the movXX expanders completely. */ mark_reg_pointer (reg, BITS_PER_UNIT); - insn = emit_insn (gen_rtx_SET (VOIDmode, reg, orig)); + insn = emit_insn (gen_rtx_SET (reg, orig)); /* Put a REG_EQUAL note on this insn, so that it can be optimized. */ add_reg_note (insn, REG_EQUAL, orig); @@ -1699,7 +1699,7 @@ pa_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, + emit_insn (gen_rtx_SET (operand0, replace_equiv_address (operand1, scratch_reg))); return 1; } @@ -1735,8 +1735,7 @@ pa_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, - replace_equiv_address (operand0, scratch_reg), + emit_insn (gen_rtx_SET (replace_equiv_address (operand0, scratch_reg), operand1)); return 1; } @@ -1753,7 +1752,7 @@ pa_emit_move_sequence (rtx *operands, machine_mode mode, rtx scratch_reg) if (operand1 == CONST0_RTX (mode)) { - emit_insn (gen_rtx_SET (VOIDmode, operand0, operand1)); + emit_insn (gen_rtx_SET (operand0, operand1)); return 1; } @@ -1770,7 +1769,7 @@ pa_emit_move_sequence (rtx *operands, machine_mode mode, rtx scratch_reg) pa_emit_move_sequence (xoperands, Pmode, 0); /* Now load the destination register. */ - emit_insn (gen_rtx_SET (mode, operand0, + emit_insn (gen_rtx_SET (operand0, replace_equiv_address (const_mem, scratch_reg))); return 1; } @@ -1892,7 +1891,7 @@ pa_emit_move_sequence (rtx *operands, machine_mode mode, rtx scratch_reg) } } - emit_insn (gen_rtx_SET (VOIDmode, operand0, operand1)); + emit_insn (gen_rtx_SET (operand0, operand1)); return 1; } } @@ -1903,14 +1902,14 @@ pa_emit_move_sequence (rtx *operands, machine_mode mode, rtx scratch_reg) { rtx temp = gen_reg_rtx (DFmode); - emit_insn (gen_rtx_SET (VOIDmode, temp, operand1)); - emit_insn (gen_rtx_SET (VOIDmode, operand0, temp)); + emit_insn (gen_rtx_SET (temp, operand1)); + emit_insn (gen_rtx_SET (operand0, temp)); return 1; } if (register_operand (operand1, mode) || operand1 == CONST0_RTX (mode)) { /* Run this case quickly. */ - emit_insn (gen_rtx_SET (VOIDmode, operand0, operand1)); + emit_insn (gen_rtx_SET (operand0, operand1)); return 1; } if (! (reload_in_progress || reload_completed)) @@ -2077,15 +2076,12 @@ pa_emit_move_sequence (rtx *operands, machine_mode mode, rtx scratch_reg) mark_reg_pointer (temp, BITS_PER_UNIT); if (ishighonly) - set = gen_rtx_SET (mode, operand0, temp); + set = gen_rtx_SET (operand0, temp); else - set = gen_rtx_SET (VOIDmode, - operand0, + set = gen_rtx_SET (operand0, gen_rtx_LO_SUM (mode, temp, operand1)); - emit_insn (gen_rtx_SET (VOIDmode, - temp, - gen_rtx_HIGH (mode, operand1))); + emit_insn (gen_rtx_SET (temp, gen_rtx_HIGH (mode, operand1))); emit_insn (set); } @@ -2181,13 +2177,12 @@ pa_emit_move_sequence (rtx *operands, machine_mode mode, rtx scratch_reg) low = value - high; - emit_insn (gen_rtx_SET (VOIDmode, temp, GEN_INT (high))); + emit_insn (gen_rtx_SET (temp, GEN_INT (high))); operands[1] = gen_rtx_PLUS (mode, temp, GEN_INT (low)); } else { - emit_insn (gen_rtx_SET (VOIDmode, temp, - gen_rtx_HIGH (mode, operand1))); + emit_insn (gen_rtx_SET (temp, gen_rtx_HIGH (mode, operand1))); operands[1] = gen_rtx_LO_SUM (mode, temp, operand1); } @@ -2209,7 +2204,7 @@ pa_emit_move_sequence (rtx *operands, machine_mode mode, rtx scratch_reg) { operand1 = GEN_INT (insv); - emit_insn (gen_rtx_SET (VOIDmode, temp, + emit_insn (gen_rtx_SET (temp, gen_rtx_HIGH (mode, operand1))); emit_move_insn (temp, gen_rtx_LO_SUM (mode, temp, operand1)); if (mode == DImode) @@ -3560,7 +3555,7 @@ store_reg (int reg, HOST_WIDE_INT disp, int base) if (DO_FRAME_NOTES) { add_reg_note (insn, REG_FRAME_RELATED_EXPR, - gen_rtx_SET (VOIDmode, tmpreg, + gen_rtx_SET (tmpreg, gen_rtx_PLUS (Pmode, basereg, delta))); RTX_FRAME_RELATED_P (insn) = 1; } @@ -3578,8 +3573,7 @@ store_reg (int reg, HOST_WIDE_INT disp, int base) insn = emit_move_insn (dest, src); if (DO_FRAME_NOTES) add_reg_note (insn, REG_FRAME_RELATED_EXPR, - gen_rtx_SET (VOIDmode, - gen_rtx_MEM (word_mode, + gen_rtx_SET (gen_rtx_MEM (word_mode, gen_rtx_PLUS (word_mode, basereg, delta)), @@ -3646,7 +3640,7 @@ set_reg_plus_d (int reg, int base, HOST_WIDE_INT disp, int note) gen_rtx_PLUS (Pmode, tmpreg, basereg)); if (DO_FRAME_NOTES) add_reg_note (insn, REG_FRAME_RELATED_EXPR, - gen_rtx_SET (VOIDmode, tmpreg, + gen_rtx_SET (tmpreg, gen_rtx_PLUS (Pmode, basereg, delta))); } else @@ -4078,7 +4072,7 @@ pa_expand_prologue (void) plus_constant (Pmode, base, offset)); add_reg_note (insn, REG_FRAME_RELATED_EXPR, - gen_rtx_SET (VOIDmode, mem, reg)); + gen_rtx_SET (mem, reg)); } else { @@ -4090,8 +4084,8 @@ pa_expand_prologue (void) offset + 4)); rtx regl = gen_rtx_REG (SFmode, i); rtx regr = gen_rtx_REG (SFmode, i + 1); - rtx setl = gen_rtx_SET (VOIDmode, meml, regl); - rtx setr = gen_rtx_SET (VOIDmode, memr, regr); + rtx setl = gen_rtx_SET (meml, regl); + rtx setr = gen_rtx_SET (memr, regr); rtvec vec; RTX_FRAME_RELATED_P (setl) = 1; @@ -4673,10 +4667,10 @@ pa_emit_bcond_fp (rtx operands[]) rtx operand1 = operands[2]; rtx label = operands[3]; - emit_insn (gen_rtx_SET (VOIDmode, gen_rtx_REG (CCFPmode, 0), + emit_insn (gen_rtx_SET (gen_rtx_REG (CCFPmode, 0), gen_rtx_fmt_ee (code, CCFPmode, operand0, operand1))); - emit_jump_insn (gen_rtx_SET (VOIDmode, pc_rtx, + emit_jump_insn (gen_rtx_SET (pc_rtx, gen_rtx_IF_THEN_ELSE (VOIDmode, gen_rtx_fmt_ee (NE, VOIDmode, @@ -5768,7 +5762,7 @@ pa_emit_hpdiv_const (rtx *operands, int unsignedp) emit (gen_rtx_PARALLEL (VOIDmode, - gen_rtvec (6, gen_rtx_SET (VOIDmode, gen_rtx_REG (SImode, 29), + gen_rtvec (6, gen_rtx_SET (gen_rtx_REG (SImode, 29), gen_rtx_fmt_ee (unsignedp ? UDIV : DIV, SImode, gen_rtx_REG (SImode, 26), diff --git a/gcc/config/pa/pa.md b/gcc/config/pa/pa.md index 2fd2059..0e9b2f6 100644 --- a/gcc/config/pa/pa.md +++ b/gcc/config/pa/pa.md @@ -2163,7 +2163,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; }") @@ -2180,7 +2180,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; }") @@ -2197,7 +2197,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; }") @@ -2879,7 +2879,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; }") @@ -2896,7 +2896,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; }") @@ -3039,7 +3039,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; }") @@ -3056,7 +3056,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; }") @@ -3341,7 +3341,7 @@ operands[7] = addr; else { - emit_insn (gen_rtx_SET (VOIDmode, operands[7], addr)); + emit_insn (gen_rtx_SET (operands[7], addr)); operands[0] = replace_equiv_address (operands[0], operands[7]); } @@ -3350,7 +3350,7 @@ operands[8] = addr; else { - emit_insn (gen_rtx_SET (VOIDmode, operands[8], addr)); + emit_insn (gen_rtx_SET (operands[8], addr)); operands[1] = replace_equiv_address (operands[1], operands[8]); } }") @@ -3529,7 +3529,7 @@ operands[7] = addr; else { - emit_insn (gen_rtx_SET (VOIDmode, operands[7], addr)); + emit_insn (gen_rtx_SET (operands[7], addr)); operands[0] = replace_equiv_address (operands[0], operands[7]); } @@ -3538,7 +3538,7 @@ operands[8] = addr; else { - emit_insn (gen_rtx_SET (VOIDmode, operands[8], addr)); + emit_insn (gen_rtx_SET (operands[8], addr)); operands[1] = replace_equiv_address (operands[1], operands[8]); } }") @@ -3655,7 +3655,7 @@ operands[4] = addr; else { - emit_insn (gen_rtx_SET (VOIDmode, operands[4], addr)); + emit_insn (gen_rtx_SET (operands[4], addr)); operands[0] = replace_equiv_address (operands[0], operands[4]); } }") @@ -3769,7 +3769,7 @@ operands[4] = addr; else { - emit_insn (gen_rtx_SET (VOIDmode, operands[4], addr)); + emit_insn (gen_rtx_SET (operands[4], addr)); operands[0] = replace_equiv_address (operands[0], operands[4]); } }") @@ -3810,7 +3810,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; }") @@ -3827,7 +3827,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; }") @@ -3844,7 +3844,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; }") @@ -4083,7 +4083,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; }") @@ -4100,7 +4100,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; }") @@ -4117,7 +4117,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; }") @@ -4361,7 +4361,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; }") @@ -4378,7 +4378,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; }") @@ -4395,7 +4395,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; }") @@ -5161,7 +5161,7 @@ } else if (pa_cint_ok_for_move (-intval)) { - emit_insn (gen_rtx_SET (VOIDmode, operands[4], GEN_INT (-intval))); + emit_insn (gen_rtx_SET (operands[4], GEN_INT (-intval))); emit_insn (gen_subsi3 (operands[0], operands[1], operands[4])); DONE; } |