This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [AVX]: Add some 265bit AVX patterns




Sent from my iPhone

On Apr 9, 2008, at 22:51, "H.J. Lu" <hjl.tools@gmail.com> wrote:

On Thu, Apr 10, 2008 at 07:27:17AM +0200, Uros Bizjak wrote:
Hello!

Index: gcc/config/i386/sse.md
===================================================================
--- gcc/config/i386/sse.md    (.../fsf/trunk)    (revision 2097)
+++ gcc/config/i386/sse.md    (.../branches/avx)    (revision 2097)

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?


Thanks,
Andrew Pinski


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]