This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: MMX/SSE patch: adding builtins
> + target = gen_rtx_SUBREG (QImode, gen_reg_rtx (SImode), 0);
> +
> + if (! (*insn_data[d->icode].operand[0].predicate) (op0, mode0))
> + op0 = copy_to_mode_reg (mode0, op0);
> + if (! (*insn_data[d->icode].operand[1].predicate) (op1, mode1))
> + op1 = copy_to_mode_reg (mode1, op1);
> +
> + op2 = gen_rtx_fmt_ee (comparison, mode0, op0, op1);
> + pat = GEN_FCN (d->icode) (op0, op1, op2);
> + if (! pat)
> + return 0;
> + emit_insn (pat);
> + emit_insn (gen_setcc_2 (target, op2));
This isn't right. You're using a set strict_low_part without
first initializing the whole register.
The rest appears ok.
r~