i386: Expand mul<VI8_AVX2> earlier
authorRichard Henderson <rth@redhat.com>
Wed, 27 Jun 2012 03:19:51 +0000 (20:19 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Wed, 27 Jun 2012 03:19:51 +0000 (20:19 -0700)
commit298301d9e7ef43ab3475495446c9d9378cf6fb31
tree2f0f80a671b4ba2cbfaee3a36e454d7c3465a624
parente2a3a0987fdacf48defcc6f89a92197026d2bde4
i386: Expand mul<VI8_AVX2> earlier

Move the expansion code to i386.c next to mulv4si3.  Eliminate
one shift by adding the highparts before shifting.  Correct costs.

        * config/i386/sse.md (mul<VI8_AVX2>3): Change from insn_and_split
        to expander; move guts to ...
        * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): ... here.  Add
        highparts before shifting up.
        * config/i386/i386-protos.h: Update.

From-SVN: r189005
gcc/ChangeLog
gcc/config/i386/i386-protos.h
gcc/config/i386/i386.c
gcc/config/i386/sse.md