This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [AVX]: Add some 265bit AVX patterns
On Wed, Apr 9, 2008 at 11:01 PM, Andrew Pinski <pinskia@gmail.com> wrote:
> > >
> > > What do you think about introducing avx.md instead of adding AVX
> > > patterns to sse.md? IMO, avx.md will be growing in the future.
> > >
> > >
> >
> > AVX is backward compatible with SSE. For each SSE intruction, there
> > is an AVX version. Putting the AVX pattern before the corresponding
> > SSE one in sse.md means we don't have to change any SSE patterns.
> > Otherwise, we have to add !TARGET_AVX in every SSE pattern. I don't
> > mind to do it this way if it is preferred.
> >
>
> Can't you include avx.md first?
>
Yes, I can if I move many define_mode_iterator/define_mode_attr from
sse.md to avx.md. Also when people make changes to sse.md, they have
to check avx.md to see if changes are also needed there.
H.J.