[PATCH] -mno-xsave should imply -mno-avx since -mavx implies -mxsave

Hongtao Liu crazylht@gmail.com
Wed Sep 16 06:16:21 GMT 2020


Hi:
If -mavx implies -mxsave, then -mno-xsave should imply -mno-avx.
Current status is -mno-avx implies -mno-xsave which should be wrong.

Bootstrap is ok, Regression test is ok for i386/x86 backend.
Ok for trunk?

gcc/ChangeLog

        * common/config/i386/i386-common.c
        (OPTION_MASK_ISA_AVX_UNSET): Remove OPTION_MASK_ISA_XSAVE_UNSET.
        (OPTION_MASK_ISA_XSAVE_UNSET): Add OPTION_MASK_ISA_AVX_UNSET.

gcc/testsuite/ChangeLog

        * gcc.target/i386/xsave-avx-1.c: New test.



-- 
BR,
Hongtao
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-If-mavx-implies-mxsave-then-mno-xsave-should-imply-m.patch
Type: text/x-patch
Size: 2282 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20200916/b1b0e5e8/attachment.bin>


More information about the Gcc-patches mailing list