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.