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]

RFC: Can I require binutils 2.17 or above for AVX support in gcc?


Hi,

Binutils 2.17 and above supports both

        movq %rax, %xmm0
        movd %rax, %xmm0

AVX has vmovq and no vmovd. To add AVX vmovq supportt to
patterns with movd, I have 2 choices:

1. Add a new AVX pattern with vmovq. Or
2. Requiring  binutils 2..17 or above,  replace movd with
%vmovq without adding a new pattern.

Requiring  binutils 2.17 or above also improves gcc code
generation due to better linker. I certainly prefer #2. But I
can live with #1.

BTW,  I can add "vmovd" to x86 assembler as the last resort.

Thanks.


H.J.


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