i386: Use vpmacsdd for mulv4si3

From-SVN: r188958
This commit is contained in:
Richard Henderson 2012-06-25 13:41:51 -07:00 committed by Richard Henderson
parent ac3571084f
commit 379eaa6f23
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2012-06-25 Richard Henderson <rth@redhat.com>
* config/i386.sse.md (mul<VI4_AVX2>3): Use xop_pmacsdd.
2012-06-25 Richard Henderson <rth@redhat.com>
* config/i386/i386.c (ix86_rtx_costs) [MULT]: Only apply XOP cost

View File

@ -5564,6 +5564,12 @@
operands[2] = force_const_mem (<MODE>mode, operands[2]);
ix86_fixup_binary_operands_no_copy (MULT, <MODE>mode, operands);
}
else if (TARGET_XOP)
{
rtx z = force_reg (<MODE>mode, CONST0_RTX (<MODE>mode));
emit_insn (gen_xop_pmacsdd (operands[0], operands[1], operands[2], z));
DONE;
}
else
{
ix86_expand_sse2_mulv4si3 (operands[0], operands[1], operands[2]);