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/i386 | |
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/i386')
-rw-r--r-- | gcc/config/i386/i386.c | 398 | ||||
-rw-r--r-- | gcc/config/i386/i386.md | 30 | ||||
-rw-r--r-- | gcc/config/i386/sse.md | 37 |
3 files changed, 204 insertions, 261 deletions
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 627ef6537dd..7bd9ff307b6 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -9877,8 +9877,7 @@ gen_push (rtx arg) if (REG_P (arg) && GET_MODE (arg) != word_mode) arg = gen_rtx_REG (word_mode, REGNO (arg)); - return gen_rtx_SET (VOIDmode, - gen_rtx_MEM (word_mode, + return gen_rtx_SET (gen_rtx_MEM (word_mode, gen_rtx_PRE_DEC (Pmode, stack_pointer_rtx)), arg); @@ -9892,8 +9891,7 @@ gen_pop (rtx arg) if (REG_P (arg) && GET_MODE (arg) != word_mode) arg = gen_rtx_REG (word_mode, REGNO (arg)); - return gen_rtx_SET (VOIDmode, - arg, + return gen_rtx_SET (arg, gen_rtx_MEM (word_mode, gen_rtx_POST_INC (Pmode, stack_pointer_rtx))); @@ -10448,8 +10446,7 @@ ix86_emit_save_reg_using_mov (machine_mode mode, unsigned int regno, addr = plus_constant (Pmode, hard_frame_pointer_rtx, cfun->machine->fs.fp_offset - cfa_offset); mem = gen_rtx_MEM (mode, addr); - add_reg_note (insn, REG_CFA_EXPRESSION, - gen_rtx_SET (VOIDmode, mem, reg)); + add_reg_note (insn, REG_CFA_EXPRESSION, gen_rtx_SET (mem, reg)); } } @@ -10461,7 +10458,7 @@ ix86_emit_save_reg_using_mov (machine_mode mode, unsigned int regno, addr = plus_constant (Pmode, m->fs.cfa_reg, m->fs.cfa_offset - cfa_offset); mem = gen_rtx_MEM (mode, addr); - add_reg_note (insn, REG_CFA_OFFSET, gen_rtx_SET (VOIDmode, mem, reg)); + add_reg_note (insn, REG_CFA_OFFSET, gen_rtx_SET (mem, reg)); } } @@ -10567,7 +10564,7 @@ pro_epilogue_adjust_stack (rtx dest, rtx src, rtx offset, && dest != hard_frame_pointer_rtx); tmp = hard_frame_pointer_rtx; } - insn = emit_insn (gen_rtx_SET (DImode, tmp, offset)); + insn = emit_insn (gen_rtx_SET (tmp, offset)); if (style < 0) add_frame_related_expr = true; @@ -10587,7 +10584,7 @@ pro_epilogue_adjust_stack (rtx dest, rtx src, rtx offset, m->fs.cfa_reg = dest; r = gen_rtx_PLUS (Pmode, src, offset); - r = gen_rtx_SET (VOIDmode, dest, r); + r = gen_rtx_SET (dest, r); add_reg_note (insn, REG_CFA_ADJUST_CFA, r); RTX_FRAME_RELATED_P (insn) = 1; } @@ -10597,7 +10594,7 @@ pro_epilogue_adjust_stack (rtx dest, rtx src, rtx offset, if (add_frame_related_expr) { rtx r = gen_rtx_PLUS (Pmode, src, offset); - r = gen_rtx_SET (VOIDmode, dest, r); + r = gen_rtx_SET (dest, r); add_reg_note (insn, REG_FRAME_RELATED_EXPR, r); } } @@ -10871,7 +10868,7 @@ release_scratch_register_on_entry (struct scratch_reg *sr) /* The RTX_FRAME_RELATED_P mechanism doesn't know about pop. */ RTX_FRAME_RELATED_P (insn) = 1; x = gen_rtx_PLUS (Pmode, stack_pointer_rtx, GEN_INT (UNITS_PER_WORD)); - x = gen_rtx_SET (VOIDmode, stack_pointer_rtx, x); + x = gen_rtx_SET (stack_pointer_rtx, x); add_reg_note (insn, REG_FRAME_RELATED_EXPR, x); m->fs.sp_offset -= UNITS_PER_WORD; } @@ -10913,7 +10910,7 @@ ix86_adjust_stack_and_probe (const HOST_WIDE_INT size) else adjust = PROBE_INTERVAL; - emit_insn (gen_rtx_SET (VOIDmode, stack_pointer_rtx, + emit_insn (gen_rtx_SET (stack_pointer_rtx, plus_constant (Pmode, stack_pointer_rtx, -adjust))); emit_stack_probe (stack_pointer_rtx); @@ -10924,13 +10921,13 @@ ix86_adjust_stack_and_probe (const HOST_WIDE_INT size) else adjust = size + PROBE_INTERVAL - i; - emit_insn (gen_rtx_SET (VOIDmode, stack_pointer_rtx, + emit_insn (gen_rtx_SET (stack_pointer_rtx, plus_constant (Pmode, stack_pointer_rtx, -adjust))); emit_stack_probe (stack_pointer_rtx); /* Adjust back to account for the additional first interval. */ - last = emit_insn (gen_rtx_SET (VOIDmode, stack_pointer_rtx, + last = emit_insn (gen_rtx_SET (stack_pointer_rtx, plus_constant (Pmode, stack_pointer_rtx, PROBE_INTERVAL + dope))); } @@ -10956,13 +10953,13 @@ ix86_adjust_stack_and_probe (const HOST_WIDE_INT size) /* Step 2: compute initial and final value of the loop counter. */ /* SP = SP_0 + PROBE_INTERVAL. */ - emit_insn (gen_rtx_SET (VOIDmode, stack_pointer_rtx, + emit_insn (gen_rtx_SET (stack_pointer_rtx, plus_constant (Pmode, stack_pointer_rtx, - (PROBE_INTERVAL + dope)))); /* LAST_ADDR = SP_0 + PROBE_INTERVAL + ROUNDED_SIZE. */ emit_move_insn (sr.reg, GEN_INT (-rounded_size)); - emit_insn (gen_rtx_SET (VOIDmode, sr.reg, + emit_insn (gen_rtx_SET (sr.reg, gen_rtx_PLUS (Pmode, sr.reg, stack_pointer_rtx))); @@ -10986,14 +10983,14 @@ ix86_adjust_stack_and_probe (const HOST_WIDE_INT size) if (size != rounded_size) { - emit_insn (gen_rtx_SET (VOIDmode, stack_pointer_rtx, + emit_insn (gen_rtx_SET (stack_pointer_rtx, plus_constant (Pmode, stack_pointer_rtx, rounded_size - size))); emit_stack_probe (stack_pointer_rtx); } /* Adjust back to account for the additional first interval. */ - last = emit_insn (gen_rtx_SET (VOIDmode, stack_pointer_rtx, + last = emit_insn (gen_rtx_SET (stack_pointer_rtx, plus_constant (Pmode, stack_pointer_rtx, PROBE_INTERVAL + dope))); @@ -11009,10 +11006,10 @@ ix86_adjust_stack_and_probe (const HOST_WIDE_INT size) { rtx expr = gen_rtx_SEQUENCE (VOIDmode, rtvec_alloc (2)); XVECEXP (expr, 0, 0) - = gen_rtx_SET (VOIDmode, stack_pointer_rtx, + = gen_rtx_SET (stack_pointer_rtx, plus_constant (Pmode, stack_pointer_rtx, -size)); XVECEXP (expr, 0, 1) - = gen_rtx_SET (VOIDmode, stack_pointer_rtx, + = gen_rtx_SET (stack_pointer_rtx, plus_constant (Pmode, stack_pointer_rtx, PROBE_INTERVAL + dope + size)); add_reg_note (last, REG_FRAME_RELATED_EXPR, expr); @@ -11390,7 +11387,7 @@ ix86_expand_prologue (void) insn = emit_insn (gen_blockage ()); push = gen_push (hard_frame_pointer_rtx); - mov = gen_rtx_SET (VOIDmode, hard_frame_pointer_rtx, + mov = gen_rtx_SET (hard_frame_pointer_rtx, stack_pointer_rtx); RTX_FRAME_RELATED_P (push) = 1; RTX_FRAME_RELATED_P (mov) = 1; @@ -11425,7 +11422,7 @@ ix86_expand_prologue (void) only as a stack adjustment. The real copy of the register as a save will be done later, if needed. */ t = plus_constant (Pmode, stack_pointer_rtx, -UNITS_PER_WORD); - t = gen_rtx_SET (VOIDmode, stack_pointer_rtx, t); + t = gen_rtx_SET (stack_pointer_rtx, t); add_reg_note (insn, REG_CFA_ADJUST_CFA, t); RTX_FRAME_RELATED_P (insn) = 1; } @@ -11446,7 +11443,7 @@ ix86_expand_prologue (void) /* Grab the argument pointer. */ t = plus_constant (Pmode, stack_pointer_rtx, m->fs.sp_offset); - insn = emit_insn (gen_rtx_SET (VOIDmode, crtl->drap_reg, t)); + insn = emit_insn (gen_rtx_SET (crtl->drap_reg, t)); RTX_FRAME_RELATED_P (insn) = 1; m->fs.cfa_reg = crtl->drap_reg; m->fs.cfa_offset = 0; @@ -11682,7 +11679,7 @@ ix86_expand_prologue (void) m->fs.cfa_offset += UNITS_PER_WORD; RTX_FRAME_RELATED_P (insn) = 1; add_reg_note (insn, REG_FRAME_RELATED_EXPR, - gen_rtx_SET (VOIDmode, stack_pointer_rtx, + gen_rtx_SET (stack_pointer_rtx, plus_constant (Pmode, stack_pointer_rtx, -UNITS_PER_WORD))); } @@ -11699,7 +11696,7 @@ ix86_expand_prologue (void) m->fs.cfa_offset += UNITS_PER_WORD; RTX_FRAME_RELATED_P (insn) = 1; add_reg_note (insn, REG_FRAME_RELATED_EXPR, - gen_rtx_SET (VOIDmode, stack_pointer_rtx, + gen_rtx_SET (stack_pointer_rtx, plus_constant (Pmode, stack_pointer_rtx, -UNITS_PER_WORD))); } @@ -11722,7 +11719,7 @@ ix86_expand_prologue (void) m->fs.cfa_offset += allocate; RTX_FRAME_RELATED_P (insn) = 1; add_reg_note (insn, REG_FRAME_RELATED_EXPR, - gen_rtx_SET (VOIDmode, stack_pointer_rtx, + gen_rtx_SET (stack_pointer_rtx, plus_constant (Pmode, stack_pointer_rtx, -allocate))); } @@ -11790,7 +11787,7 @@ ix86_expand_prologue (void) isn't necessary, here we will emit prologue to setup DRAP without stack realign adjustment */ t = choose_baseaddr (0); - emit_insn (gen_rtx_SET (VOIDmode, crtl->drap_reg, t)); + emit_insn (gen_rtx_SET (crtl->drap_reg, t)); } /* Prevent instructions from being scheduled into register save push @@ -11844,7 +11841,7 @@ ix86_emit_restore_reg_using_pop (rtx reg) if (m->fs.cfa_reg == stack_pointer_rtx) { rtx x = plus_constant (Pmode, stack_pointer_rtx, UNITS_PER_WORD); - x = gen_rtx_SET (VOIDmode, stack_pointer_rtx, x); + x = gen_rtx_SET (stack_pointer_rtx, x); add_reg_note (insn, REG_CFA_ADJUST_CFA, x); RTX_FRAME_RELATED_P (insn) = 1; @@ -12111,7 +12108,7 @@ ix86_expand_epilogue (int style) { t = gen_rtx_PLUS (Pmode, hard_frame_pointer_rtx, sa); t = plus_constant (Pmode, t, m->fs.fp_offset - UNITS_PER_WORD); - emit_insn (gen_rtx_SET (VOIDmode, sa, t)); + emit_insn (gen_rtx_SET (sa, t)); t = gen_frame_mem (Pmode, hard_frame_pointer_rtx); insn = emit_move_insn (hard_frame_pointer_rtx, t); @@ -12141,7 +12138,7 @@ ix86_expand_epilogue (int style) { t = gen_rtx_PLUS (Pmode, stack_pointer_rtx, sa); t = plus_constant (Pmode, t, m->fs.sp_offset - UNITS_PER_WORD); - insn = emit_insn (gen_rtx_SET (VOIDmode, stack_pointer_rtx, t)); + insn = emit_insn (gen_rtx_SET (stack_pointer_rtx, t)); ix86_add_queued_cfa_restore_notes (insn); gcc_assert (m->fs.cfa_reg == stack_pointer_rtx); @@ -12238,7 +12235,7 @@ ix86_expand_epilogue (int style) param_ptr_offset += UNITS_PER_WORD; insn = emit_insn (gen_rtx_SET - (VOIDmode, stack_pointer_rtx, + (stack_pointer_rtx, gen_rtx_PLUS (Pmode, crtl->drap_reg, GEN_INT (-param_ptr_offset)))); @@ -12300,10 +12297,9 @@ ix86_expand_epilogue (int style) m->fs.sp_offset -= UNITS_PER_WORD; rtx x = plus_constant (Pmode, stack_pointer_rtx, UNITS_PER_WORD); - x = gen_rtx_SET (VOIDmode, stack_pointer_rtx, x); + x = gen_rtx_SET (stack_pointer_rtx, x); add_reg_note (insn, REG_CFA_ADJUST_CFA, x); - add_reg_note (insn, REG_CFA_REGISTER, - gen_rtx_SET (VOIDmode, ecx, pc_rtx)); + add_reg_note (insn, REG_CFA_REGISTER, gen_rtx_SET (ecx, pc_rtx)); RTX_FRAME_RELATED_P (insn) = 1; pro_epilogue_adjust_stack (stack_pointer_rtx, stack_pointer_rtx, @@ -12492,7 +12488,7 @@ ix86_expand_split_stack_prologue (void) /* We don't use ix86_gen_add3 in this case because it will want to split to lea, but when not optimizing the insn will not be split after this point. */ - emit_insn (gen_rtx_SET (VOIDmode, scratch_reg, + emit_insn (gen_rtx_SET (scratch_reg, gen_rtx_PLUS (Pmode, stack_pointer_rtx, offset))); } @@ -12664,7 +12660,7 @@ ix86_expand_split_stack_prologue (void) So we add five words to get to the stack arguments. */ words = TARGET_64BIT ? 3 : 5; - emit_insn (gen_rtx_SET (VOIDmode, scratch_reg, + emit_insn (gen_rtx_SET (scratch_reg, gen_rtx_PLUS (Pmode, frame_reg, GEN_INT (words * UNITS_PER_WORD)))); @@ -12683,7 +12679,7 @@ ix86_expand_split_stack_prologue (void) case we need to set it based on the stack pointer. */ if (cfun->machine->split_stack_varargs_pointer != NULL_RTX) { - emit_insn (gen_rtx_SET (VOIDmode, scratch_reg, + emit_insn (gen_rtx_SET (scratch_reg, gen_rtx_PLUS (Pmode, stack_pointer_rtx, GEN_INT (UNITS_PER_WORD)))); @@ -17229,7 +17225,7 @@ ix86_expand_clear (rtx dest) /* Avoid HImode and its attendant prefix byte. */ if (GET_MODE_SIZE (GET_MODE (dest)) < 4) dest = gen_rtx_REG (SImode, REGNO (dest)); - tmp = gen_rtx_SET (VOIDmode, dest, const0_rtx); + tmp = gen_rtx_SET (dest, const0_rtx); if (!TARGET_USE_MOV0 || optimize_insn_for_size_p ()) { @@ -17322,7 +17318,7 @@ ix86_expand_move (machine_mode mode, rtx operands[]) } if (op0 != op1 && GET_CODE (op0) != MEM) { - rtx insn = gen_rtx_SET (VOIDmode, op0, op1); + rtx insn = gen_rtx_SET (op0, op1); emit_insn (insn); return; } @@ -17388,14 +17384,14 @@ ix86_expand_move (machine_mode mode, rtx operands[]) if (!register_operand (op0, mode)) { rtx temp = gen_reg_rtx (mode); - emit_insn (gen_rtx_SET (VOIDmode, temp, op1)); + emit_insn (gen_rtx_SET (temp, op1)); emit_move_insn (op0, temp); return; } } } - emit_insn (gen_rtx_SET (VOIDmode, op0, op1)); + emit_insn (gen_rtx_SET (op0, op1)); } void @@ -17453,7 +17449,7 @@ ix86_expand_vector_move (machine_mode mode, rtx operands[]) return; } - emit_insn (gen_rtx_SET (VOIDmode, op0, op1)); + emit_insn (gen_rtx_SET (op0, op1)); } /* Split 32-byte AVX unaligned load and store if needed. */ @@ -17508,7 +17504,7 @@ ix86_avx256_split_vector_move_misalign (rtx op0, rtx op1) is true, and without the UNSPEC it can be combined with arithmetic instructions. */ else if (misaligned_operand (op1, GET_MODE (op1))) - emit_insn (gen_rtx_SET (VOIDmode, op0, op1)); + emit_insn (gen_rtx_SET (op0, op1)); else emit_insn (load_unaligned (op0, op1)); } @@ -17689,7 +17685,7 @@ ix86_expand_vector_move_misalign (machine_mode mode, rtx operands[]) && (GET_MODE_CLASS (mode) == MODE_VECTOR_INT || GET_MODE_CLASS (mode) == MODE_VECTOR_FLOAT) && misaligned_operand (op1, GET_MODE (op1))) - emit_insn (gen_rtx_SET (VOIDmode, op0, op1)); + emit_insn (gen_rtx_SET (op0, op1)); /* ??? If we have typed data, then it would appear that using movdqu is the only way to get unaligned data loaded with integer type. */ @@ -17960,7 +17956,7 @@ ix86_expand_binary_operator (enum rtx_code code, machine_mode mode, /* Emit the instruction. */ - op = gen_rtx_SET (VOIDmode, dst, gen_rtx_fmt_ee (code, mode, src1, src2)); + op = gen_rtx_SET (dst, gen_rtx_fmt_ee (code, mode, src1, src2)); if (reload_completed && code == PLUS @@ -18039,7 +18035,7 @@ ix86_expand_vector_logical_operator (enum rtx_code code, machine_mode mode, op1 = SUBREG_REG (op1); if (!nonimmediate_operand (op1, GET_MODE (dst))) op1 = force_reg (GET_MODE (dst), op1); - emit_insn (gen_rtx_SET (VOIDmode, dst, + emit_insn (gen_rtx_SET (dst, gen_rtx_fmt_ee (code, GET_MODE (dst), op1, op2))); emit_move_insn (operands[0], gen_lowpart (mode, dst)); @@ -18053,7 +18049,7 @@ ix86_expand_vector_logical_operator (enum rtx_code code, machine_mode mode, if (!nonimmediate_operand (operands[2], mode)) operands[2] = force_reg (mode, operands[2]); ix86_fixup_binary_operands_no_copy (code, mode, operands); - emit_insn (gen_rtx_SET (VOIDmode, operands[0], + emit_insn (gen_rtx_SET (operands[0], gen_rtx_fmt_ee (code, mode, operands[1], operands[2]))); } @@ -18127,7 +18123,7 @@ ix86_expand_unary_operator (enum rtx_code code, machine_mode mode, /* Emit the instruction. */ - op = gen_rtx_SET (VOIDmode, dst, gen_rtx_fmt_e (code, mode, src)); + op = gen_rtx_SET (dst, gen_rtx_fmt_e (code, mode, src)); if (code == NOT) emit_insn (op); @@ -18188,7 +18184,7 @@ ix86_split_idivmod (machine_mode mode, rtx operands[], tmp0 = gen_rtx_IF_THEN_ELSE (VOIDmode, tmp0, gen_rtx_LABEL_REF (VOIDmode, qimode_label), pc_rtx); - insn = emit_jump_insn (gen_rtx_SET (VOIDmode, pc_rtx, tmp0)); + insn = emit_jump_insn (gen_rtx_SET (pc_rtx, tmp0)); predict_jump (REG_BR_PROB_BASE * 50 / 100); JUMP_LABEL (insn) = qimode_label; @@ -18805,7 +18801,7 @@ ix86_emit_binop (enum rtx_code code, machine_mode mode, { rtx op, clob; - op = gen_rtx_SET (VOIDmode, dst, gen_rtx_fmt_ee (code, mode, dst, src)); + op = gen_rtx_SET (dst, gen_rtx_fmt_ee (code, mode, dst, src)); clob = gen_rtx_CLOBBER (VOIDmode, gen_rtx_REG (CCmode, FLAGS_REG)); emit_insn (gen_rtx_PARALLEL (VOIDmode, gen_rtvec (2, op, clob))); @@ -18894,7 +18890,7 @@ ix86_split_lea_for_addr (rtx_insn *insn, rtx operands[], machine_mode mode) { /* r1 = r2 + r3 * C case. Need to move r3 into r1. */ if (regno0 != regno2) - emit_insn (gen_rtx_SET (VOIDmode, target, parts.index)); + emit_insn (gen_rtx_SET (target, parts.index)); /* Use shift for scaling. */ ix86_emit_binop (ASHIFT, mode, target, @@ -18910,19 +18906,19 @@ ix86_split_lea_for_addr (rtx_insn *insn, rtx operands[], machine_mode mode) else if (!parts.base && !parts.index) { gcc_assert(parts.disp); - emit_insn (gen_rtx_SET (VOIDmode, target, parts.disp)); + emit_insn (gen_rtx_SET (target, parts.disp)); } else { if (!parts.base) { if (regno0 != regno2) - emit_insn (gen_rtx_SET (VOIDmode, target, parts.index)); + emit_insn (gen_rtx_SET (target, parts.index)); } else if (!parts.index) { if (regno0 != regno1) - emit_insn (gen_rtx_SET (VOIDmode, target, parts.base)); + emit_insn (gen_rtx_SET (target, parts.base)); } else { @@ -18941,7 +18937,7 @@ ix86_split_lea_for_addr (rtx_insn *insn, rtx operands[], machine_mode mode) else tmp = parts.base, tmp1 = parts.index; - emit_insn (gen_rtx_SET (VOIDmode, target, tmp)); + emit_insn (gen_rtx_SET (target, tmp)); if (parts.disp && parts.disp != const0_rtx) ix86_emit_binop (PLUS, mode, target, parts.disp); @@ -19128,13 +19124,13 @@ ix86_split_convert_uns_si_sse (rtx operands[]) emit_move_insn (zero_or_two31, MEM_P (two31) ? large : two31); x = gen_rtx_fmt_ee (LE, vecmode, large, value); - emit_insn (gen_rtx_SET (VOIDmode, large, x)); + emit_insn (gen_rtx_SET (large, x)); x = gen_rtx_AND (vecmode, zero_or_two31, large); - emit_insn (gen_rtx_SET (VOIDmode, zero_or_two31, x)); + emit_insn (gen_rtx_SET (zero_or_two31, x)); x = gen_rtx_MINUS (vecmode, value, zero_or_two31); - emit_insn (gen_rtx_SET (VOIDmode, value, x)); + emit_insn (gen_rtx_SET (value, x)); large = gen_rtx_REG (V4SImode, REGNO (large)); emit_insn (gen_ashlv4si3 (large, large, GEN_INT (31))); @@ -19534,7 +19530,7 @@ ix86_expand_fp_absneg_operator (enum rtx_code code, machine_mode mode, src = operands[1]; set = gen_rtx_fmt_e (code, mode, src); - set = gen_rtx_SET (VOIDmode, dst, set); + set = gen_rtx_SET (dst, set); if (mask) { @@ -19644,12 +19640,12 @@ ix86_split_copysign_const (rtx operands[]) dest = simplify_gen_subreg (vmode, dest, mode, 0); x = gen_rtx_AND (vmode, dest, mask); - emit_insn (gen_rtx_SET (VOIDmode, dest, x)); + emit_insn (gen_rtx_SET (dest, x)); if (op0 != CONST0_RTX (vmode)) { x = gen_rtx_IOR (vmode, dest, op0); - emit_insn (gen_rtx_SET (VOIDmode, dest, x)); + emit_insn (gen_rtx_SET (dest, x)); } } @@ -19685,13 +19681,13 @@ ix86_split_copysign_var (rtx operands[]) gcc_assert (REGNO (op1) == REGNO (scratch)); x = gen_rtx_AND (vmode, scratch, mask); - emit_insn (gen_rtx_SET (VOIDmode, scratch, x)); + emit_insn (gen_rtx_SET (scratch, x)); dest = mask; op0 = simplify_gen_subreg (vmode, op0, mode, 0); x = gen_rtx_NOT (vmode, dest); x = gen_rtx_AND (vmode, x, op0); - emit_insn (gen_rtx_SET (VOIDmode, dest, x)); + emit_insn (gen_rtx_SET (dest, x)); } else { @@ -19705,7 +19701,7 @@ ix86_split_copysign_var (rtx operands[]) op1 = simplify_gen_subreg (vmode, op1, mode, 0); x = gen_rtx_AND (vmode, scratch, op1); } - emit_insn (gen_rtx_SET (VOIDmode, scratch, x)); + emit_insn (gen_rtx_SET (scratch, x)); if (REGNO (op0) == REGNO (dest)) /* alternative 1,2 */ { @@ -19719,11 +19715,11 @@ ix86_split_copysign_var (rtx operands[]) op0 = simplify_gen_subreg (vmode, op0, mode, 0); x = gen_rtx_AND (vmode, dest, op0); } - emit_insn (gen_rtx_SET (VOIDmode, dest, x)); + emit_insn (gen_rtx_SET (dest, x)); } x = gen_rtx_IOR (vmode, dest, scratch); - emit_insn (gen_rtx_SET (VOIDmode, dest, x)); + emit_insn (gen_rtx_SET (dest, x)); } /* Return TRUE or FALSE depending on whether the first SET in INSN @@ -19795,7 +19791,7 @@ ix86_expand_int_compare (enum rtx_code code, rtx op0, rtx op1) /* This is very simple, but making the interface the same as in the FP case makes the rest of the code easier. */ tmp = gen_rtx_COMPARE (cmpmode, op0, op1); - emit_insn (gen_rtx_SET (VOIDmode, flags, tmp)); + emit_insn (gen_rtx_SET (flags, tmp)); /* Return the test that should be put into the flags user, i.e. the bcc, scc, or cmov instruction. */ @@ -20167,16 +20163,14 @@ ix86_expand_fp_compare (enum rtx_code code, rtx op0, rtx op1, rtx scratch) case IX86_FPCMP_COMI: intcmp_mode = fpcmp_mode; tmp = gen_rtx_COMPARE (fpcmp_mode, op0, op1); - tmp = gen_rtx_SET (VOIDmode, gen_rtx_REG (fpcmp_mode, FLAGS_REG), - tmp); + tmp = gen_rtx_SET (gen_rtx_REG (fpcmp_mode, FLAGS_REG), tmp); emit_insn (tmp); break; case IX86_FPCMP_SAHF: intcmp_mode = fpcmp_mode; tmp = gen_rtx_COMPARE (fpcmp_mode, op0, op1); - tmp = gen_rtx_SET (VOIDmode, gen_rtx_REG (fpcmp_mode, FLAGS_REG), - tmp); + tmp = gen_rtx_SET (gen_rtx_REG (fpcmp_mode, FLAGS_REG), tmp); if (!scratch) scratch = gen_reg_rtx (HImode); @@ -20190,7 +20184,7 @@ ix86_expand_fp_compare (enum rtx_code code, rtx op0, rtx op1, rtx scratch) tmp2 = gen_rtx_UNSPEC (HImode, gen_rtvec (1, tmp), UNSPEC_FNSTSW); if (!scratch) scratch = gen_reg_rtx (HImode); - emit_insn (gen_rtx_SET (VOIDmode, scratch, tmp2)); + emit_insn (gen_rtx_SET (scratch, tmp2)); /* In the unordered case, we have to check C2 for NaN's, which doesn't happen to work out to anything nice combination-wise. @@ -20355,7 +20349,7 @@ ix86_expand_branch (enum rtx_code code, rtx op0, rtx op1, rtx label) tmp = gen_rtx_IF_THEN_ELSE (VOIDmode, tmp, gen_rtx_LABEL_REF (VOIDmode, label), pc_rtx); - emit_jump_insn (gen_rtx_SET (VOIDmode, pc_rtx, tmp)); + emit_jump_insn (gen_rtx_SET (pc_rtx, tmp)); return; case DImode: @@ -20502,7 +20496,7 @@ ix86_split_fp_branch (enum rtx_code code, rtx op1, rtx op2, tmp); i = emit_jump_insn (gen_rtx_SET - (VOIDmode, pc_rtx, + (pc_rtx, gen_rtx_IF_THEN_ELSE (VOIDmode, condition, target1, target2))); if (split_branch_probability >= 0) @@ -20518,7 +20512,7 @@ ix86_expand_setcc (rtx dest, enum rtx_code code, rtx op0, rtx op1) ret = ix86_expand_compare (code, op0, op1); PUT_MODE (ret, QImode); - emit_insn (gen_rtx_SET (VOIDmode, dest, ret)); + emit_insn (gen_rtx_SET (dest, ret)); } /* Expand comparison setting or clearing carry flag. Return true when @@ -20959,7 +20953,7 @@ ix86_expand_int_movcc (rtx operands[]) if (nops == 1) out = force_operand (tmp, copy_rtx (out)); else - emit_insn (gen_rtx_SET (VOIDmode, copy_rtx (out), copy_rtx (tmp))); + emit_insn (gen_rtx_SET (copy_rtx (out), copy_rtx (tmp))); } if (!rtx_equal_p (out, operands[0])) emit_move_insn (operands[0], copy_rtx (out)); @@ -21142,7 +21136,7 @@ ix86_expand_int_movcc (rtx operands[]) operands[3] = force_reg (mode, operands[3]); emit_insn (compare_seq); - emit_insn (gen_rtx_SET (VOIDmode, operands[0], + emit_insn (gen_rtx_SET (operands[0], gen_rtx_IF_THEN_ELSE (mode, compare_op, operands[2], operands[3]))); @@ -21261,7 +21255,7 @@ ix86_expand_sse_fp_minmax (rtx dest, enum rtx_code code, rtx cmp_op0, tmp = gen_rtx_fmt_ee (code, mode, if_true, if_false); } - emit_insn (gen_rtx_SET (VOIDmode, dest, tmp)); + emit_insn (gen_rtx_SET (dest, tmp)); return true; } @@ -21340,7 +21334,7 @@ ix86_expand_sse_cmp (rtx dest, enum rtx_code code, rtx cmp_op0, rtx cmp_op1, convert_move (dest, x, false); } else - emit_insn (gen_rtx_SET (VOIDmode, dest, x)); + emit_insn (gen_rtx_SET (dest, x)); return dest; } @@ -21363,14 +21357,14 @@ ix86_expand_sse_movcc (rtx dest, rtx cmp, rtx op_true, rtx op_false) && rtx_equal_p (op_false, CONST0_RTX (mode)) && !maskcmp) { - emit_insn (gen_rtx_SET (VOIDmode, dest, cmp)); + emit_insn (gen_rtx_SET (dest, cmp)); } else if (op_false == CONST0_RTX (mode) && !maskcmp) { op_true = force_reg (mode, op_true); x = gen_rtx_AND (mode, cmp, op_true); - emit_insn (gen_rtx_SET (VOIDmode, dest, x)); + emit_insn (gen_rtx_SET (dest, x)); } else if (op_true == CONST0_RTX (mode) && !maskcmp) @@ -21378,14 +21372,14 @@ ix86_expand_sse_movcc (rtx dest, rtx cmp, rtx op_true, rtx op_false) op_false = force_reg (mode, op_false); x = gen_rtx_NOT (mode, cmp); x = gen_rtx_AND (mode, x, op_false); - emit_insn (gen_rtx_SET (VOIDmode, dest, x)); + emit_insn (gen_rtx_SET (dest, x)); } else if (INTEGRAL_MODE_P (mode) && op_true == CONSTM1_RTX (mode) && !maskcmp) { op_false = force_reg (mode, op_false); x = gen_rtx_IOR (mode, cmp, op_false); - emit_insn (gen_rtx_SET (VOIDmode, dest, x)); + emit_insn (gen_rtx_SET (dest, x)); } else if (TARGET_XOP && !maskcmp) @@ -21395,10 +21389,9 @@ ix86_expand_sse_movcc (rtx dest, rtx cmp, rtx op_true, rtx op_false) if (!nonimmediate_operand (op_false, mode)) op_false = force_reg (mode, op_false); - emit_insn (gen_rtx_SET (mode, dest, - gen_rtx_IF_THEN_ELSE (mode, cmp, - op_true, - op_false))); + emit_insn (gen_rtx_SET (dest, gen_rtx_IF_THEN_ELSE (mode, cmp, + op_true, + op_false))); } else { @@ -21497,14 +21490,14 @@ ix86_expand_sse_movcc (rtx dest, rtx cmp, rtx op_true, rtx op_false) t3 = dest; x = gen_rtx_AND (mode, op_true, cmp); - emit_insn (gen_rtx_SET (VOIDmode, t2, x)); + emit_insn (gen_rtx_SET (t2, x)); x = gen_rtx_NOT (mode, cmp); x = gen_rtx_AND (mode, x, op_false); - emit_insn (gen_rtx_SET (VOIDmode, t3, x)); + emit_insn (gen_rtx_SET (t3, x)); x = gen_rtx_IOR (mode, t3, t2); - emit_insn (gen_rtx_SET (VOIDmode, dest, x)); + emit_insn (gen_rtx_SET (dest, x)); } } } @@ -21564,7 +21557,7 @@ ix86_expand_fp_movcc (rtx operands[]) compare_op = ix86_expand_compare (NE, tmp, const0_rtx); } - emit_insn (gen_rtx_SET (VOIDmode, operands[0], + emit_insn (gen_rtx_SET (operands[0], gen_rtx_IF_THEN_ELSE (mode, compare_op, operands[2], operands[3]))); @@ -21787,8 +21780,7 @@ ix86_expand_int_vcond (rtx operands[]) case V8HImode: /* Perform a parallel unsigned saturating subtraction. */ x = gen_reg_rtx (mode); - emit_insn (gen_rtx_SET (VOIDmode, x, - gen_rtx_US_MINUS (mode, cop0, cop1))); + emit_insn (gen_rtx_SET (x, gen_rtx_US_MINUS (mode, cop0, cop1))); cop0 = x; cop1 = CONST0_RTX (mode); @@ -22846,7 +22838,7 @@ ix86_split_long_move (rtx operands[]) if (GET_MODE (base) != Pmode) base = gen_rtx_REG (Pmode, REGNO (base)); - emit_insn (gen_rtx_SET (VOIDmode, base, XEXP (part[1][0], 0))); + emit_insn (gen_rtx_SET (base, XEXP (part[1][0], 0))); part[1][0] = replace_equiv_address (part[1][0], base); for (i = 1; i < nparts; i++) { @@ -23028,12 +23020,12 @@ ix86_split_ashl (rtx *operands, rtx scratch, machine_mode mode) d = gen_lowpart (QImode, low[0]); d = gen_rtx_STRICT_LOW_PART (VOIDmode, d); s = gen_rtx_EQ (QImode, flags, const0_rtx); - emit_insn (gen_rtx_SET (VOIDmode, d, s)); + emit_insn (gen_rtx_SET (d, s)); d = gen_lowpart (QImode, high[0]); d = gen_rtx_STRICT_LOW_PART (VOIDmode, d); s = gen_rtx_NE (QImode, flags, const0_rtx); - emit_insn (gen_rtx_SET (VOIDmode, d, s)); + emit_insn (gen_rtx_SET (d, s)); } /* Otherwise, we can get the same results by manually performing @@ -23071,7 +23063,7 @@ ix86_split_ashl (rtx *operands, rtx scratch, machine_mode mode) x = gen_rtx_ZERO_EXTEND (half_mode, operands[2]); else x = gen_lowpart (half_mode, operands[2]); - emit_insn (gen_rtx_SET (VOIDmode, high[0], x)); + emit_insn (gen_rtx_SET (high[0], x)); emit_insn (gen_lshr3 (high[0], high[0], GEN_INT (bits))); emit_insn (gen_and3 (high[0], high[0], const1_rtx)); @@ -25311,17 +25303,16 @@ ix86_expand_strlensi_unroll_1 (rtx out, rtx src, rtx align_rtx) emit_insn (gen_testsi_ccno_1 (tmpreg, GEN_INT (0x8080))); tmp = gen_rtx_REG (CCNOmode, FLAGS_REG); tmp = gen_rtx_EQ (VOIDmode, tmp, const0_rtx); - emit_insn (gen_rtx_SET (VOIDmode, tmpreg, + emit_insn (gen_rtx_SET (tmpreg, gen_rtx_IF_THEN_ELSE (SImode, tmp, reg, tmpreg))); /* Emit lea manually to avoid clobbering of flags. */ - emit_insn (gen_rtx_SET (SImode, reg2, - gen_rtx_PLUS (Pmode, out, const2_rtx))); + emit_insn (gen_rtx_SET (reg2, gen_rtx_PLUS (Pmode, out, const2_rtx))); tmp = gen_rtx_REG (CCNOmode, FLAGS_REG); tmp = gen_rtx_EQ (VOIDmode, tmp, const0_rtx); - emit_insn (gen_rtx_SET (VOIDmode, out, + emit_insn (gen_rtx_SET (out, gen_rtx_IF_THEN_ELSE (Pmode, tmp, reg2, out))); @@ -25337,7 +25328,7 @@ ix86_expand_strlensi_unroll_1 (rtx out, rtx src, rtx align_rtx) tmp = gen_rtx_IF_THEN_ELSE (VOIDmode, tmp, gen_rtx_LABEL_REF (VOIDmode, end_2_label), pc_rtx); - tmp = emit_jump_insn (gen_rtx_SET (VOIDmode, pc_rtx, tmp)); + tmp = emit_jump_insn (gen_rtx_SET (pc_rtx, tmp)); JUMP_LABEL (tmp) = end_2_label; /* Not in the first two. Move two bytes forward. */ @@ -25531,14 +25522,14 @@ ix86_expand_call (rtx retval, rtx fnaddr, rtx callarg1, } } - call = gen_rtx_SET (VOIDmode, retval, call); + call = gen_rtx_SET (retval, call); } vec[vec_len++] = call; if (pop) { pop = gen_rtx_PLUS (Pmode, stack_pointer_rtx, pop); - pop = gen_rtx_SET (VOIDmode, stack_pointer_rtx, pop); + pop = gen_rtx_SET (stack_pointer_rtx, pop); vec[vec_len++] = pop; } @@ -36166,8 +36157,7 @@ ix86_expand_sse_comi (const struct builtin_description *d, tree exp, if (! pat) return 0; emit_insn (pat); - emit_insn (gen_rtx_SET (VOIDmode, - gen_rtx_STRICT_LOW_PART (VOIDmode, target), + emit_insn (gen_rtx_SET (gen_rtx_STRICT_LOW_PART (VOIDmode, target), gen_rtx_fmt_ee (comparison, QImode, SET_DEST (pat), const0_rtx))); @@ -36281,8 +36271,7 @@ ix86_expand_sse_ptest (const struct builtin_description *d, tree exp, if (! pat) return 0; emit_insn (pat); - emit_insn (gen_rtx_SET (VOIDmode, - gen_rtx_STRICT_LOW_PART (VOIDmode, target), + emit_insn (gen_rtx_SET (gen_rtx_STRICT_LOW_PART (VOIDmode, target), gen_rtx_fmt_ee (comparison, QImode, SET_DEST (pat), const0_rtx))); @@ -36383,7 +36372,7 @@ ix86_expand_sse_pcmpestr (const struct builtin_description *d, target = gen_rtx_SUBREG (QImode, target, 0); emit_insn - (gen_rtx_SET (VOIDmode, gen_rtx_STRICT_LOW_PART (VOIDmode, target), + (gen_rtx_SET (gen_rtx_STRICT_LOW_PART (VOIDmode, target), gen_rtx_fmt_ee (EQ, QImode, gen_rtx_REG ((machine_mode) d->flag, FLAGS_REG), @@ -36478,7 +36467,7 @@ ix86_expand_sse_pcmpistr (const struct builtin_description *d, target = gen_rtx_SUBREG (QImode, target, 0); emit_insn - (gen_rtx_SET (VOIDmode, gen_rtx_STRICT_LOW_PART (VOIDmode, target), + (gen_rtx_SET (gen_rtx_STRICT_LOW_PART (VOIDmode, target), gen_rtx_fmt_ee (EQ, QImode, gen_rtx_REG ((machine_mode) d->flag, FLAGS_REG), @@ -37618,8 +37607,7 @@ ix86_expand_sse_comi_round (const struct builtin_description *d, } emit_insn (pat); - emit_insn (gen_rtx_SET (VOIDmode, - gen_rtx_STRICT_LOW_PART (VOIDmode, target), + emit_insn (gen_rtx_SET (gen_rtx_STRICT_LOW_PART (VOIDmode, target), gen_rtx_fmt_ee (comparison, QImode, set_dst, const0_rtx))); @@ -38366,9 +38354,8 @@ ix86_emit_cmove (rtx dst, rtx src, enum rtx_code code, rtx op1, rtx op2) if (TARGET_CMOVE) { t = ix86_expand_compare (code, op1, op2); - emit_insn (gen_rtx_SET (VOIDmode, dst, - gen_rtx_IF_THEN_ELSE (GET_MODE (dst), t, - src, dst))); + emit_insn (gen_rtx_SET (dst, gen_rtx_IF_THEN_ELSE (GET_MODE (dst), t, + src, dst))); } else { @@ -39240,7 +39227,7 @@ rdrand_step: pat = gen_rtx_GEU (VOIDmode, gen_rtx_REG (CCCmode, FLAGS_REG), const0_rtx); - emit_insn (gen_rtx_SET (VOIDmode, target, + emit_insn (gen_rtx_SET (target, gen_rtx_IF_THEN_ELSE (SImode, pat, op2, op1))); return target; @@ -39275,7 +39262,7 @@ rdseed_step: pat = gen_rtx_LTU (QImode, gen_rtx_REG (CCCmode, FLAGS_REG), const0_rtx); - emit_insn (gen_rtx_SET (VOIDmode, op2, pat)); + emit_insn (gen_rtx_SET (op2, pat)); if (target == 0 || !register_operand (target, SImode)) @@ -39345,7 +39332,7 @@ addcarryx: target = gen_reg_rtx (QImode); PUT_MODE (pat, QImode); - emit_insn (gen_rtx_SET (VOIDmode, target, pat)); + emit_insn (gen_rtx_SET (target, pat)); return target; case IX86_BUILTIN_READ_FLAGS: @@ -39394,7 +39381,7 @@ addcarryx: op1 = simplify_gen_subreg (mode0, op1, GET_MODE (op1), 0); target = gen_reg_rtx (QImode); - emit_insn (gen_rtx_SET (mode0, target, const0_rtx)); + emit_insn (gen_rtx_SET (target, const0_rtx)); /* Emit kortest. */ emit_insn (GEN_FCN (icode) (op0, op1)); @@ -43611,7 +43598,7 @@ x86_emit_floatuns (rtx operands[2]) expand_float (f0, i0, 0); - emit_insn (gen_rtx_SET (VOIDmode, out, gen_rtx_PLUS (mode, f0, f0))); + emit_insn (gen_rtx_SET (out, gen_rtx_PLUS (mode, f0, f0))); emit_label (donelab); } @@ -43646,7 +43633,7 @@ ix86_vector_duplicate_value (machine_mode mode, rtx target, rtx val) /* First attempt to recognize VAL as-is. */ dup = gen_rtx_VEC_DUPLICATE (mode, val); - insn = emit_insn (gen_rtx_SET (VOIDmode, target, dup)); + insn = emit_insn (gen_rtx_SET (target, dup)); if (recog_memoized (insn) < 0) { rtx_insn *seq; @@ -43706,7 +43693,7 @@ ix86_expand_vector_init_duplicate (bool mmx_ok, machine_mode mode, val = gen_lowpart (SImode, val); x = gen_rtx_TRUNCATE (HImode, val); x = gen_rtx_VEC_DUPLICATE (mode, x); - emit_insn (gen_rtx_SET (VOIDmode, target, x)); + emit_insn (gen_rtx_SET (target, x)); return true; } goto widen; @@ -43793,7 +43780,7 @@ ix86_expand_vector_init_duplicate (bool mmx_ok, machine_mode mode, gcc_assert (ok); x = gen_rtx_VEC_CONCAT (mode, x, x); - emit_insn (gen_rtx_SET (VOIDmode, target, x)); + emit_insn (gen_rtx_SET (target, x)); } return true; @@ -43810,7 +43797,7 @@ ix86_expand_vector_init_duplicate (bool mmx_ok, machine_mode mode, gcc_assert (ok); x = gen_rtx_VEC_CONCAT (mode, x, x); - emit_insn (gen_rtx_SET (VOIDmode, target, x)); + emit_insn (gen_rtx_SET (target, x)); } return true; @@ -43870,7 +43857,7 @@ ix86_expand_vector_init_one_nonzero (bool mmx_ok, machine_mode mode, if (use_vector_set) { - emit_insn (gen_rtx_SET (VOIDmode, target, CONST0_RTX (mode))); + emit_insn (gen_rtx_SET (target, CONST0_RTX (mode))); var = force_reg (GET_MODE_INNER (mode), var); ix86_expand_vector_set (mmx_ok, target, var, one_var); return true; @@ -43890,7 +43877,7 @@ ix86_expand_vector_init_one_nonzero (bool mmx_ok, machine_mode mode, return false; var = force_reg (GET_MODE_INNER (mode), var); x = gen_rtx_VEC_CONCAT (mode, var, CONST0_RTX (GET_MODE_INNER (mode))); - emit_insn (gen_rtx_SET (VOIDmode, target, x)); + emit_insn (gen_rtx_SET (target, x)); return true; case V4SFmode: @@ -43902,7 +43889,7 @@ ix86_expand_vector_init_one_nonzero (bool mmx_ok, machine_mode mode, var = force_reg (GET_MODE_INNER (mode), var); x = gen_rtx_VEC_DUPLICATE (mode, var); x = gen_rtx_VEC_MERGE (mode, x, CONST0_RTX (mode), const1_rtx); - emit_insn (gen_rtx_SET (VOIDmode, new_target, x)); + emit_insn (gen_rtx_SET (new_target, x)); if (one_var != 0) { /* We need to shuffle the value to the correct position, so @@ -44130,9 +44117,8 @@ ix86_expand_vector_init_concat (machine_mode mode, ops[1] = force_reg (cmode, ops[1]); if (!register_operand (ops[0], cmode)) ops[0] = force_reg (cmode, ops[0]); - emit_insn (gen_rtx_SET (VOIDmode, target, - gen_rtx_VEC_CONCAT (mode, ops[0], - ops[1]))); + emit_insn (gen_rtx_SET (target, gen_rtx_VEC_CONCAT (mode, ops[0], + ops[1]))); break; case 4: @@ -44303,7 +44289,7 @@ ix86_expand_vector_init_interleave (machine_mode mode, op0), CONST0_RTX (V4SImode), const1_rtx); - emit_insn (gen_rtx_SET (VOIDmode, op1, op0)); + emit_insn (gen_rtx_SET (op1, op0)); /* Cast the V4SImode vector back to a vector in orignal mode. */ op0 = gen_reg_rtx (mode); @@ -44357,8 +44343,7 @@ ix86_expand_vector_init_interleave (machine_mode mode, /* Cast the SECOND_IMODE vector back to a vector on original mode. */ - emit_insn (gen_rtx_SET (VOIDmode, target, - gen_lowpart (mode, op0))); + emit_insn (gen_rtx_SET (target, gen_lowpart (mode, op0))); break; default: @@ -44422,8 +44407,7 @@ half: n >> 2); ix86_expand_vector_init_interleave (half_mode, op1, &ops [n >> 1], n >> 2); - emit_insn (gen_rtx_SET (VOIDmode, target, - gen_rtx_VEC_CONCAT (mode, op0, op1))); + emit_insn (gen_rtx_SET (target, gen_rtx_VEC_CONCAT (mode, op0, op1))); return; case V64QImode: @@ -44454,12 +44438,9 @@ quarter: &ops [n >> 1], n >> 3); ix86_expand_vector_init_interleave (quarter_mode, op3, &ops [(n >> 1) | (n >> 2)], n >> 3); - emit_insn (gen_rtx_SET (VOIDmode, op4, - gen_rtx_VEC_CONCAT (half_mode, op0, op1))); - emit_insn (gen_rtx_SET (VOIDmode, op5, - gen_rtx_VEC_CONCAT (half_mode, op2, op3))); - emit_insn (gen_rtx_SET (VOIDmode, target, - gen_rtx_VEC_CONCAT (mode, op4, op5))); + emit_insn (gen_rtx_SET (op4, gen_rtx_VEC_CONCAT (half_mode, op0, op1))); + emit_insn (gen_rtx_SET (op5, gen_rtx_VEC_CONCAT (half_mode, op2, op3))); + emit_insn (gen_rtx_SET (target, gen_rtx_VEC_CONCAT (mode, op4, op5))); return; case V16QImode: @@ -44644,7 +44625,7 @@ ix86_expand_vector_set (bool mmx_ok, rtx target, rtx val, int elt) tmp = gen_rtx_VEC_CONCAT (mode, val, tmp); else tmp = gen_rtx_VEC_CONCAT (mode, tmp, val); - emit_insn (gen_rtx_SET (VOIDmode, target, tmp)); + emit_insn (gen_rtx_SET (target, tmp)); return; } break; @@ -44660,7 +44641,7 @@ ix86_expand_vector_set (bool mmx_ok, rtx target, rtx val, int elt) tmp = gen_rtx_VEC_CONCAT (mode, val, tmp); else tmp = gen_rtx_VEC_CONCAT (mode, tmp, val); - emit_insn (gen_rtx_SET (VOIDmode, target, tmp)); + emit_insn (gen_rtx_SET (target, tmp)); return; case V2DFmode: @@ -44679,7 +44660,7 @@ ix86_expand_vector_set (bool mmx_ok, rtx target, rtx val, int elt) op0 = tmp, op1 = val; tmp = gen_rtx_VEC_CONCAT (mode, op0, op1); - emit_insn (gen_rtx_SET (VOIDmode, target, tmp)); + emit_insn (gen_rtx_SET (target, tmp)); } return; @@ -44848,8 +44829,7 @@ half: if (TARGET_AVX512F) { tmp = gen_reg_rtx (mode); - emit_insn (gen_rtx_SET (VOIDmode, tmp, - gen_rtx_VEC_DUPLICATE (mode, val))); + emit_insn (gen_rtx_SET (tmp, gen_rtx_VEC_DUPLICATE (mode, val))); emit_insn (gen_avx512f_blendmv8df (target, tmp, target, force_reg (QImode, GEN_INT (1 << elt)))); return; @@ -44860,8 +44840,7 @@ half: if (TARGET_AVX512F) { tmp = gen_reg_rtx (mode); - emit_insn (gen_rtx_SET (VOIDmode, tmp, - gen_rtx_VEC_DUPLICATE (mode, val))); + emit_insn (gen_rtx_SET (tmp, gen_rtx_VEC_DUPLICATE (mode, val))); emit_insn (gen_avx512f_blendmv8di (target, tmp, target, force_reg (QImode, GEN_INT (1 << elt)))); return; @@ -44872,8 +44851,7 @@ half: if (TARGET_AVX512F) { tmp = gen_reg_rtx (mode); - emit_insn (gen_rtx_SET (VOIDmode, tmp, - gen_rtx_VEC_DUPLICATE (mode, val))); + emit_insn (gen_rtx_SET (tmp, gen_rtx_VEC_DUPLICATE (mode, val))); emit_insn (gen_avx512f_blendmv16sf (target, tmp, target, force_reg (HImode, GEN_INT (1 << elt)))); return; @@ -44884,8 +44862,7 @@ half: if (TARGET_AVX512F) { tmp = gen_reg_rtx (mode); - emit_insn (gen_rtx_SET (VOIDmode, tmp, - gen_rtx_VEC_DUPLICATE (mode, val))); + emit_insn (gen_rtx_SET (tmp, gen_rtx_VEC_DUPLICATE (mode, val))); emit_insn (gen_avx512f_blendmv16si (target, tmp, target, force_reg (HImode, GEN_INT (1 << elt)))); return; @@ -44896,8 +44873,7 @@ half: if (TARGET_AVX512F && TARGET_AVX512BW) { tmp = gen_reg_rtx (mode); - emit_insn (gen_rtx_SET (VOIDmode, tmp, - gen_rtx_VEC_DUPLICATE (mode, val))); + emit_insn (gen_rtx_SET (tmp, gen_rtx_VEC_DUPLICATE (mode, val))); emit_insn (gen_avx512bw_blendmv32hi (target, tmp, target, force_reg (SImode, GEN_INT (1 << elt)))); return; @@ -44908,8 +44884,7 @@ half: if (TARGET_AVX512F && TARGET_AVX512BW) { tmp = gen_reg_rtx (mode); - emit_insn (gen_rtx_SET (VOIDmode, tmp, - gen_rtx_VEC_DUPLICATE (mode, val))); + emit_insn (gen_rtx_SET (tmp, gen_rtx_VEC_DUPLICATE (mode, val))); emit_insn (gen_avx512bw_blendmv64qi (target, tmp, target, force_reg (DImode, GEN_INT (1 << elt)))); return; @@ -44925,7 +44900,7 @@ half: { tmp = gen_rtx_VEC_DUPLICATE (mode, val); tmp = gen_rtx_VEC_MERGE (mode, tmp, target, GEN_INT (1 << elt)); - emit_insn (gen_rtx_SET (VOIDmode, target, tmp)); + emit_insn (gen_rtx_SET (target, tmp)); } else { @@ -45204,7 +45179,7 @@ ix86_expand_vector_extract (bool mmx_ok, rtx target, rtx vec, int elt) target = gen_lowpart (SImode, target); } - emit_insn (gen_rtx_SET (VOIDmode, target, tmp)); + emit_insn (gen_rtx_SET (target, tmp)); } else { @@ -45531,7 +45506,7 @@ ix86_emit_fp_unordered_jump (rtx label) temp = gen_rtx_IF_THEN_ELSE (VOIDmode, temp, gen_rtx_LABEL_REF (VOIDmode, label), pc_rtx); - temp = gen_rtx_SET (VOIDmode, pc_rtx, temp); + temp = gen_rtx_SET (pc_rtx, temp); emit_jump_insn (temp); predict_jump (REG_BR_PROB_BASE * 10 / 100); @@ -45629,7 +45604,7 @@ void ix86_emit_i387_round (rtx op0, rtx op1) /* round(a) = sgn(a) * floor(fabs(a) + 0.5) */ /* scratch = fxam(op1) */ - emit_insn (gen_rtx_SET (VOIDmode, scratch, + emit_insn (gen_rtx_SET (scratch, gen_rtx_UNSPEC (HImode, gen_rtvec (1, op1), UNSPEC_FXAM))); /* e1 = fabs(op1) */ @@ -45637,16 +45612,14 @@ void ix86_emit_i387_round (rtx op0, rtx op1) /* e2 = e1 + 0.5 */ half = force_reg (inmode, half); - emit_insn (gen_rtx_SET (VOIDmode, e2, - gen_rtx_PLUS (inmode, e1, half))); + emit_insn (gen_rtx_SET (e2, gen_rtx_PLUS (inmode, e1, half))); /* res = floor(e2) */ if (inmode != XFmode) { tmp1 = gen_reg_rtx (XFmode); - emit_insn (gen_rtx_SET (VOIDmode, tmp1, - gen_rtx_FLOAT_EXTEND (XFmode, e2))); + emit_insn (gen_rtx_SET (tmp1, gen_rtx_FLOAT_EXTEND (XFmode, e2))); } else tmp1 = e2; @@ -45660,7 +45633,7 @@ void ix86_emit_i387_round (rtx op0, rtx op1) emit_insn (gen_frndintxf2_floor (tmp0, tmp1)); - emit_insn (gen_rtx_SET (VOIDmode, res, + emit_insn (gen_rtx_SET (res, gen_rtx_UNSPEC (outmode, gen_rtvec (1, tmp0), UNSPEC_TRUNC_NOOP))); } @@ -45689,7 +45662,7 @@ void ix86_emit_i387_round (rtx op0, rtx op1) gen_rtx_EQ (VOIDmode, flags, const0_rtx), gen_rtx_LABEL_REF (VOIDmode, jump_label), pc_rtx); - insn = emit_jump_insn (gen_rtx_SET (VOIDmode, pc_rtx, tmp)); + insn = emit_jump_insn (gen_rtx_SET (pc_rtx, tmp)); predict_jump (REG_BR_PROB_BASE * 50 / 100); JUMP_LABEL (insn) = jump_label; @@ -45719,33 +45692,26 @@ void ix86_emit_swdivsf (rtx res, rtx a, rtx b, machine_mode mode) /* x0 = rcp(b) estimate */ if (mode == V16SFmode || mode == V8DFmode) - emit_insn (gen_rtx_SET (VOIDmode, x0, - gen_rtx_UNSPEC (mode, gen_rtvec (1, b), - UNSPEC_RCP14))); + emit_insn (gen_rtx_SET (x0, gen_rtx_UNSPEC (mode, gen_rtvec (1, b), + UNSPEC_RCP14))); else - emit_insn (gen_rtx_SET (VOIDmode, x0, - gen_rtx_UNSPEC (mode, gen_rtvec (1, b), - UNSPEC_RCP))); + emit_insn (gen_rtx_SET (x0, gen_rtx_UNSPEC (mode, gen_rtvec (1, b), + UNSPEC_RCP))); /* e0 = x0 * b */ - emit_insn (gen_rtx_SET (VOIDmode, e0, - gen_rtx_MULT (mode, x0, b))); + emit_insn (gen_rtx_SET (e0, gen_rtx_MULT (mode, x0, b))); /* e0 = x0 * e0 */ - emit_insn (gen_rtx_SET (VOIDmode, e0, - gen_rtx_MULT (mode, x0, e0))); + emit_insn (gen_rtx_SET (e0, gen_rtx_MULT (mode, x0, e0))); /* e1 = x0 + x0 */ - emit_insn (gen_rtx_SET (VOIDmode, e1, - gen_rtx_PLUS (mode, x0, x0))); + emit_insn (gen_rtx_SET (e1, gen_rtx_PLUS (mode, x0, x0))); /* x1 = e1 - e0 */ - emit_insn (gen_rtx_SET (VOIDmode, x1, - gen_rtx_MINUS (mode, e1, e0))); + emit_insn (gen_rtx_SET (x1, gen_rtx_MINUS (mode, e1, e0))); /* res = a * x1 */ - emit_insn (gen_rtx_SET (VOIDmode, res, - gen_rtx_MULT (mode, a, x1))); + emit_insn (gen_rtx_SET (res, gen_rtx_MULT (mode, a, x1))); } /* Output code to perform a Newton-Rhapson approximation of a @@ -45786,9 +45752,8 @@ void ix86_emit_swsqrtsf (rtx res, rtx a, machine_mode mode, a = force_reg (mode, a); /* x0 = rsqrt(a) estimate */ - emit_insn (gen_rtx_SET (VOIDmode, x0, - gen_rtx_UNSPEC (mode, gen_rtvec (1, a), - unspec))); + emit_insn (gen_rtx_SET (x0, gen_rtx_UNSPEC (mode, gen_rtvec (1, a), + unspec))); /* If (a == 0.0) Filter out infinity to prevent NaN for sqrt(0.0). */ if (!recip) @@ -45810,38 +45775,30 @@ void ix86_emit_swsqrtsf (rtx res, rtx a, machine_mode mode, } else { - emit_insn (gen_rtx_SET (VOIDmode, mask, - gen_rtx_NE (mode, zero, a))); + emit_insn (gen_rtx_SET (mask, gen_rtx_NE (mode, zero, a))); - emit_insn (gen_rtx_SET (VOIDmode, x0, - gen_rtx_AND (mode, x0, mask))); + emit_insn (gen_rtx_SET (x0, gen_rtx_AND (mode, x0, mask))); } } /* e0 = x0 * a */ - emit_insn (gen_rtx_SET (VOIDmode, e0, - gen_rtx_MULT (mode, x0, a))); + emit_insn (gen_rtx_SET (e0, gen_rtx_MULT (mode, x0, a))); /* e1 = e0 * x0 */ - emit_insn (gen_rtx_SET (VOIDmode, e1, - gen_rtx_MULT (mode, e0, x0))); + emit_insn (gen_rtx_SET (e1, gen_rtx_MULT (mode, e0, x0))); /* e2 = e1 - 3. */ mthree = force_reg (mode, mthree); - emit_insn (gen_rtx_SET (VOIDmode, e2, - gen_rtx_PLUS (mode, e1, mthree))); + emit_insn (gen_rtx_SET (e2, gen_rtx_PLUS (mode, e1, mthree))); mhalf = force_reg (mode, mhalf); if (recip) /* e3 = -.5 * x0 */ - emit_insn (gen_rtx_SET (VOIDmode, e3, - gen_rtx_MULT (mode, x0, mhalf))); + emit_insn (gen_rtx_SET (e3, gen_rtx_MULT (mode, x0, mhalf))); else /* e3 = -.5 * e0 */ - emit_insn (gen_rtx_SET (VOIDmode, e3, - gen_rtx_MULT (mode, e0, mhalf))); + emit_insn (gen_rtx_SET (e3, gen_rtx_MULT (mode, e0, mhalf))); /* ret = e2 * e3 */ - emit_insn (gen_rtx_SET (VOIDmode, res, - gen_rtx_MULT (mode, e2, e3))); + emit_insn (gen_rtx_SET (res, gen_rtx_MULT (mode, e2, e3))); } #ifdef TARGET_SOLARIS @@ -45963,15 +45920,13 @@ ix86_sse_copysign_to_positive (rtx result, rtx abs_value, rtx sign, rtx mask) rtx tmp = gen_rtx_PARALLEL (VOIDmode, gen_rtvec (1, const0_rtx)); tmp = gen_rtx_VEC_SELECT (mode, mask, tmp); mask = gen_reg_rtx (mode); - emit_insn (gen_rtx_SET (VOIDmode, mask, tmp)); + emit_insn (gen_rtx_SET (mask, tmp)); } } else mask = gen_rtx_NOT (mode, mask); - emit_insn (gen_rtx_SET (VOIDmode, sgn, - gen_rtx_AND (mode, mask, sign))); - emit_insn (gen_rtx_SET (VOIDmode, result, - gen_rtx_IOR (mode, abs_value, sgn))); + emit_insn (gen_rtx_SET (sgn, gen_rtx_AND (mode, mask, sign))); + emit_insn (gen_rtx_SET (result, gen_rtx_IOR (mode, abs_value, sgn))); } /* Expand fabs (OP0) and return a new rtx that holds the result. The @@ -45997,10 +45952,9 @@ ix86_expand_sse_fabs (rtx op0, rtx *smask) rtx tmp = gen_rtx_PARALLEL (VOIDmode, gen_rtvec (1, const0_rtx)); tmp = gen_rtx_VEC_SELECT (mode, mask, tmp); mask = gen_reg_rtx (mode); - emit_insn (gen_rtx_SET (VOIDmode, mask, tmp)); + emit_insn (gen_rtx_SET (mask, tmp)); } - emit_insn (gen_rtx_SET (VOIDmode, xa, - gen_rtx_AND (mode, op0, mask))); + emit_insn (gen_rtx_SET (xa, gen_rtx_AND (mode, op0, mask))); if (smask) *smask = mask; @@ -46025,12 +45979,11 @@ ix86_expand_sse_compare_and_jump (enum rtx_code code, rtx op0, rtx op1, label = gen_label_rtx (); tmp = gen_rtx_REG (fpcmp_mode, FLAGS_REG); - emit_insn (gen_rtx_SET (VOIDmode, tmp, - gen_rtx_COMPARE (fpcmp_mode, op0, op1))); + emit_insn (gen_rtx_SET (tmp, gen_rtx_COMPARE (fpcmp_mode, op0, op1))); tmp = gen_rtx_fmt_ee (code, VOIDmode, tmp, const0_rtx); tmp = gen_rtx_IF_THEN_ELSE (VOIDmode, tmp, gen_rtx_LABEL_REF (VOIDmode, label), pc_rtx); - tmp = emit_jump_insn (gen_rtx_SET (VOIDmode, pc_rtx, tmp)); + tmp = emit_jump_insn (gen_rtx_SET (pc_rtx, tmp)); JUMP_LABEL (tmp) = label; return label; @@ -46225,8 +46178,7 @@ ix86_expand_floorceildf_32 (rtx operand0, rtx operand1, bool do_floor) /* Compensate: xa = xa - (xa > operand1 ? 1 : 0) */ tmp = ix86_expand_sse_compare_mask (UNGT, xa, res, !do_floor); - emit_insn (gen_rtx_SET (VOIDmode, tmp, - gen_rtx_AND (mode, one, tmp))); + emit_insn (gen_rtx_SET (tmp, gen_rtx_AND (mode, one, tmp))); /* We always need to subtract here to preserve signed zero. */ tmp = expand_simple_binop (mode, MINUS, xa, tmp, NULL_RTX, 0, OPTAB_DIRECT); @@ -46285,8 +46237,7 @@ ix86_expand_floorceil (rtx operand0, rtx operand1, bool do_floor) /* Compensate: xa = xa - (xa > operand1 ? 1 : 0) */ tmp = ix86_expand_sse_compare_mask (UNGT, xa, res, !do_floor); - emit_insn (gen_rtx_SET (VOIDmode, tmp, - gen_rtx_AND (mode, one, tmp))); + emit_insn (gen_rtx_SET (tmp, gen_rtx_AND (mode, one, tmp))); tmp = expand_simple_binop (mode, do_floor ? MINUS : PLUS, xa, tmp, NULL_RTX, 0, OPTAB_DIRECT); emit_move_insn (res, tmp); @@ -46356,13 +46307,11 @@ ix86_expand_rounddf_32 (rtx operand0, rtx operand1) tmp = gen_reg_rtx (mode); /* xa2 = xa2 - (dxa > 0.5 ? 1 : 0) */ tmp = ix86_expand_sse_compare_mask (UNGT, dxa, half, false); - emit_insn (gen_rtx_SET (VOIDmode, tmp, - gen_rtx_AND (mode, one, tmp))); + emit_insn (gen_rtx_SET (tmp, gen_rtx_AND (mode, one, tmp))); xa2 = expand_simple_binop (mode, MINUS, xa2, tmp, NULL_RTX, 0, OPTAB_DIRECT); /* xa2 = xa2 + (dxa <= -0.5 ? 1 : 0) */ tmp = ix86_expand_sse_compare_mask (UNGE, mhalf, dxa, false); - emit_insn (gen_rtx_SET (VOIDmode, tmp, - gen_rtx_AND (mode, one, tmp))); + emit_insn (gen_rtx_SET (tmp, gen_rtx_AND (mode, one, tmp))); xa2 = expand_simple_binop (mode, PLUS, xa2, tmp, NULL_RTX, 0, OPTAB_DIRECT); /* res = copysign (xa2, operand1) */ @@ -46463,8 +46412,7 @@ ix86_expand_truncdf_32 (rtx operand0, rtx operand1) /* Compensate: res = xa2 - (res > xa ? 1 : 0) */ mask = ix86_expand_sse_compare_mask (UNGT, res, xa, false); - emit_insn (gen_rtx_SET (VOIDmode, mask, - gen_rtx_AND (mode, mask, one))); + emit_insn (gen_rtx_SET (mask, gen_rtx_AND (mode, mask, one))); tmp = expand_simple_binop (mode, MINUS, res, mask, NULL_RTX, 0, OPTAB_DIRECT); emit_move_insn (res, tmp); @@ -46712,7 +46660,7 @@ init_vselect_insn (void) XVECEXP (x, 0, i) = const0_rtx; x = gen_rtx_VEC_SELECT (V2DFmode, gen_rtx_VEC_CONCAT (V4DFmode, const0_rtx, const0_rtx), x); - x = gen_rtx_SET (VOIDmode, const0_rtx, x); + x = gen_rtx_SET (const0_rtx, x); start_sequence (); vselect_insn = emit_insn (x); end_sequence (); @@ -46967,7 +46915,7 @@ expand_vec_perm_blend (struct expand_vec_perm_d *d) /* This matches five different patterns with the different modes. */ x = gen_rtx_VEC_MERGE (vmode, op1, op0, GEN_INT (mask)); - x = gen_rtx_SET (VOIDmode, target, x); + x = gen_rtx_SET (target, x); emit_insn (x); if (target != d->target) emit_move_insn (d->target, gen_lowpart (d->vmode, target)); @@ -49861,7 +49809,7 @@ ix86_expand_mul_widen_hilo (rtx dest, rtx op1, rtx op2, ix86_expand_sse_unpack (t1, op1, uns_p, high_p); ix86_expand_sse_unpack (t2, op2, uns_p, high_p); - emit_insn (gen_rtx_SET (VOIDmode, dest, gen_rtx_MULT (wmode, t1, t2))); + emit_insn (gen_rtx_SET (dest, gen_rtx_MULT (wmode, t1, t2))); break; default: diff --git a/gcc/config/i386/i386.md b/gcc/config/i386/i386.md index fc320f67b54..938f3985493 100644 --- a/gcc/config/i386/i386.md +++ b/gcc/config/i386/i386.md @@ -1862,7 +1862,7 @@ emit_move_insn (operands[2], addr); mem = replace_equiv_address_nv (mem, operands[2]); - emit_insn (gen_rtx_SET (VOIDmode, mem, operands[1])); + emit_insn (gen_rtx_SET (mem, operands[1])); DONE; }) @@ -1878,7 +1878,7 @@ emit_move_insn (operands[2], addr); mem = replace_equiv_address_nv (mem, operands[2]); - emit_insn (gen_rtx_SET (VOIDmode, operands[0], mem)); + emit_insn (gen_rtx_SET (operands[0], mem)); DONE; }) @@ -4937,7 +4937,7 @@ t = gen_rtx_FLOAT (mode, operands[1]); t = gen_rtx_VEC_DUPLICATE (vmode, t); t = gen_rtx_VEC_MERGE (vmode, t, op0, const1_rtx); - emit_insn (gen_rtx_SET (VOIDmode, op0, t)); + emit_insn (gen_rtx_SET (op0, t)); DONE; }) @@ -5518,7 +5518,7 @@ pat = gen_rtx_PLUS (mode, operands[1], operands[2]); - emit_insn (gen_rtx_SET (VOIDmode, operands[0], pat)); + emit_insn (gen_rtx_SET (operands[0], pat)); DONE; }) @@ -6007,7 +6007,7 @@ pat = gen_rtx_PLUS (mode, gen_rtx_PLUS (mode, operands[1], operands[2]), operands[3]); - emit_insn (gen_rtx_SET (VOIDmode, operands[0], pat)); + emit_insn (gen_rtx_SET (operands[0], pat)); DONE; } [(set_attr "type" "lea") @@ -6037,7 +6037,7 @@ pat = gen_rtx_PLUS (mode, gen_rtx_MULT (mode, operands[1], operands[2]), operands[3]); - emit_insn (gen_rtx_SET (VOIDmode, operands[0], pat)); + emit_insn (gen_rtx_SET (operands[0], pat)); DONE; } [(set_attr "type" "lea") @@ -6072,7 +6072,7 @@ operands[3]), operands[4]); - emit_insn (gen_rtx_SET (VOIDmode, operands[0], pat)); + emit_insn (gen_rtx_SET (operands[0], pat)); DONE; } [(set_attr "type" "lea") @@ -6111,7 +6111,7 @@ pat = plus_constant (mode, gen_rtx_MULT (mode, operands[1], operands[2]), INTVAL (operands[3])); - emit_insn (gen_rtx_SET (VOIDmode, operands[0], pat)); + emit_insn (gen_rtx_SET (operands[0], pat)); DONE; } [(set_attr "type" "lea") @@ -9325,7 +9325,7 @@ tmp = gen_rtx_IF_THEN_ELSE (VOIDmode, tmp, gen_rtx_LABEL_REF (VOIDmode, label), pc_rtx); - tmp = emit_jump_insn (gen_rtx_SET (VOIDmode, pc_rtx, tmp)); + tmp = emit_jump_insn (gen_rtx_SET (pc_rtx, tmp)); JUMP_LABEL (tmp) = label; emit_move_insn (operands[0], operands[1]); @@ -9665,7 +9665,7 @@ pat = gen_rtx_MULT (mode, operands[1], operands[2]); - emit_insn (gen_rtx_SET (VOIDmode, operands[0], pat)); + emit_insn (gen_rtx_SET (operands[0], pat)); DONE; }) @@ -9988,7 +9988,7 @@ tmp = gen_rtx_IF_THEN_ELSE (VOIDmode, tmp, gen_rtx_LABEL_REF (VOIDmode, label), pc_rtx); - tmp = emit_jump_insn (gen_rtx_SET (VOIDmode, pc_rtx, tmp)); + tmp = emit_jump_insn (gen_rtx_SET (pc_rtx, tmp)); JUMP_LABEL (tmp) = label; emit_move_insn (operands[0], operands[1]); @@ -13058,7 +13058,7 @@ cond = gen_rtx_fmt_ee (ORDERED, QImode, gen_rtx_REG (CCmode, FLAGS_REG), const0_rtx); - emit_insn (gen_rtx_SET (VOIDmode, scratch, cond)); + emit_insn (gen_rtx_SET (scratch, cond)); if (TARGET_64BIT) emit_insn (gen_zero_extendqidi2 (operands[0], scratch)); @@ -13085,7 +13085,7 @@ cond = gen_rtx_fmt_ee (ORDERED, QImode, gen_rtx_REG (CCmode, FLAGS_REG), const0_rtx); - emit_insn (gen_rtx_SET (VOIDmode, scratch, cond)); + emit_insn (gen_rtx_SET (scratch, cond)); emit_insn (gen_zero_extendqisi2 (operands[0], scratch)); DONE; @@ -15844,7 +15844,7 @@ cond = gen_rtx_fmt_ee (EQ, QImode, gen_rtx_REG (CCmode, FLAGS_REG), const0_rtx); - emit_insn (gen_rtx_SET (VOIDmode, res, cond)); + emit_insn (gen_rtx_SET (res, cond)); emit_insn (gen_zero_extendqisi2 (operands[0], res)); DONE; }) @@ -15880,7 +15880,7 @@ cond = gen_rtx_fmt_ee (EQ, QImode, gen_rtx_REG (CCmode, FLAGS_REG), const0_rtx); - emit_insn (gen_rtx_SET (VOIDmode, res, cond)); + emit_insn (gen_rtx_SET (res, cond)); emit_insn (gen_zero_extendqisi2 (operands[0], res)); DONE; }) diff --git a/gcc/config/i386/sse.md b/gcc/config/i386/sse.md index c61098d9225..21c6c6cd5be 100644 --- a/gcc/config/i386/sse.md +++ b/gcc/config/i386/sse.md @@ -1146,7 +1146,7 @@ src = gen_rtx_VEC_MERGE (<MODE>mode, operands[1], operands[2 * <mask_applied>], operands[3 * <mask_applied>]); - emit_insn (gen_rtx_SET (VOIDmode, operands[0], src)); + emit_insn (gen_rtx_SET (operands[0], src)); DONE; } }) @@ -1291,7 +1291,7 @@ src = gen_rtx_VEC_MERGE (<MODE>mode, operands[1], operands[2 * <mask_applied>], operands[3 * <mask_applied>]); - emit_insn (gen_rtx_SET (VOIDmode, operands[0], src)); + emit_insn (gen_rtx_SET (operands[0], src)); DONE; } }) @@ -1310,7 +1310,7 @@ src = gen_rtx_VEC_MERGE (<MODE>mode, operands[1], operands[2 * <mask_applied>], operands[3 * <mask_applied>]); - emit_insn (gen_rtx_SET (VOIDmode, operands[0], src)); + emit_insn (gen_rtx_SET (operands[0], src)); DONE; } }) @@ -1329,7 +1329,7 @@ src = gen_rtx_VEC_MERGE (<MODE>mode, operands[1], operands[2 * <mask_applied>], operands[3 * <mask_applied>]); - emit_insn (gen_rtx_SET (VOIDmode, operands[0], src)); + emit_insn (gen_rtx_SET (operands[0], src)); DONE; } }) @@ -1621,7 +1621,7 @@ absneg_op = GET_CODE (operands[3]) == NEG ? XOR : AND; t = gen_rtx_fmt_ee (absneg_op, <MODE>mode, op1, op2); - t = gen_rtx_SET (VOIDmode, operands[0], t); + t = gen_rtx_SET (operands[0], t); emit_insn (t); DONE; } @@ -5159,7 +5159,7 @@ rtx tmp = gen_reg_rtx (<sseunpackmode>mode); emit_insn (gen_vec_unpacks_hi_<mode> (tmp, operands[1])); - emit_insn (gen_rtx_SET (VOIDmode, operands[0], + emit_insn (gen_rtx_SET (operands[0], gen_rtx_FLOAT (<sseunpackfltmode>mode, tmp))); DONE; }) @@ -5172,7 +5172,7 @@ rtx tmp = gen_reg_rtx (<sseunpackmode>mode); emit_insn (gen_vec_unpacks_lo_<mode> (tmp, operands[1])); - emit_insn (gen_rtx_SET (VOIDmode, operands[0], + emit_insn (gen_rtx_SET (operands[0], gen_rtx_FLOAT (<sseunpackfltmode>mode, tmp))); DONE; }) @@ -5185,7 +5185,7 @@ rtx tmp = gen_reg_rtx (<sseunpackmode>mode); emit_insn (gen_vec_unpacku_hi_<mode> (tmp, operands[1])); - emit_insn (gen_rtx_SET (VOIDmode, operands[0], + emit_insn (gen_rtx_SET (operands[0], gen_rtx_FLOAT (<sseunpackfltmode>mode, tmp))); DONE; }) @@ -5198,7 +5198,7 @@ rtx tmp = gen_reg_rtx (<sseunpackmode>mode); emit_insn (gen_vec_unpacku_lo_<mode> (tmp, operands[1])); - emit_insn (gen_rtx_SET (VOIDmode, operands[0], + emit_insn (gen_rtx_SET (operands[0], gen_rtx_FLOAT (<sseunpackfltmode>mode, tmp))); DONE; }) @@ -5356,8 +5356,7 @@ tmp[i] = gen_reg_rtx (V4DFmode); emit_insn (gen_vec_extract_hi_v8si (tmp[5], operands[1])); emit_insn (gen_floatv4siv4df2 (tmp[2], tmp[5])); - emit_insn (gen_rtx_SET (VOIDmode, tmp[3], - gen_rtx_LT (V4DFmode, tmp[2], tmp[0]))); + emit_insn (gen_rtx_SET (tmp[3], gen_rtx_LT (V4DFmode, tmp[2], tmp[0]))); emit_insn (gen_andv4df3 (tmp[4], tmp[3], tmp[1])); emit_insn (gen_addv4df3 (operands[0], tmp[2], tmp[4])); DONE; @@ -5382,8 +5381,7 @@ emit_insn (gen_vec_extract_hi_v16si (tmp[3], operands[1])); emit_insn (gen_floatv8siv8df2 (tmp[2], tmp[3])); - emit_insn (gen_rtx_SET (VOIDmode, k, - gen_rtx_LT (QImode, tmp[2], tmp[0]))); + emit_insn (gen_rtx_SET (k, gen_rtx_LT (QImode, tmp[2], tmp[0]))); emit_insn (gen_addv8df3_mask (tmp[2], tmp[2], tmp[1], tmp[2], k)); emit_move_insn (operands[0], tmp[2]); DONE; @@ -5407,8 +5405,7 @@ for (i = 2; i < 5; i++) tmp[i] = gen_reg_rtx (V4DFmode); emit_insn (gen_avx_cvtdq2pd256_2 (tmp[2], operands[1])); - emit_insn (gen_rtx_SET (VOIDmode, tmp[3], - gen_rtx_LT (V4DFmode, tmp[2], tmp[0]))); + emit_insn (gen_rtx_SET (tmp[3], gen_rtx_LT (V4DFmode, tmp[2], tmp[0]))); emit_insn (gen_andv4df3 (tmp[4], tmp[3], tmp[1])); emit_insn (gen_addv4df3 (operands[0], tmp[2], tmp[4])); DONE; @@ -5431,8 +5428,7 @@ k = gen_reg_rtx (QImode); emit_insn (gen_avx512f_cvtdq2pd512_2 (tmp[2], operands[1])); - emit_insn (gen_rtx_SET (VOIDmode, k, - gen_rtx_LT (QImode, tmp[2], tmp[0]))); + emit_insn (gen_rtx_SET (k, gen_rtx_LT (QImode, tmp[2], tmp[0]))); emit_insn (gen_addv8df3_mask (tmp[2], tmp[2], tmp[1], tmp[2], k)); emit_move_insn (operands[0], tmp[2]); DONE; @@ -9876,7 +9872,7 @@ { rtx t = gen_reg_rtx (<sseunpackmode>mode); emit_insn (gen_<sse2_avx2>_pmaddwd<SDOT_PMADD_SUF> (t, operands[1], operands[2])); - emit_insn (gen_rtx_SET (VOIDmode, operands[0], + emit_insn (gen_rtx_SET (operands[0], gen_rtx_PLUS (<sseunpackmode>mode, operands[3], t))); DONE; @@ -16488,8 +16484,7 @@ for (regno = 0; regno < nregs; regno++) XVECEXP (operands[0], 0, regno + 1) - = gen_rtx_SET (VOIDmode, - gen_rtx_REG (V8SImode, SSE_REGNO (regno)), + = gen_rtx_SET (gen_rtx_REG (V8SImode, SSE_REGNO (regno)), CONST0_RTX (V8SImode)); }) @@ -17422,7 +17417,7 @@ operands[1], operands[2]); t1 = gen_rtx_PARALLEL (VOIDmode, gen_rtvec_v (nelt, perm)); t2 = gen_rtx_VEC_SELECT (<MODE>mode, t2, t1); - t2 = gen_rtx_SET (VOIDmode, operands[0], t2); + t2 = gen_rtx_SET (operands[0], t2); emit_insn (t2); DONE; } |