ix86: Disable AVX512F when disabling AVX2
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 19 Mar 2019 13:08:15 +0000 (21:08 +0800)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 19 Mar 2019 13:08:31 +0000 (21:08 +0800)
commit89199bb5a027d21c56dafd2cd898487118949ecf
treebe5f9382f4c5e758b84054fc2161657e9e91cfc8
parent3a0e45b2f187dae8cba444e9b31f05cee0e2d6ae
ix86: Disable AVX512F when disabling AVX2

Since AVX2 is required for AVX512F, we should disable AVX512F when AVX2
is disabled.

gas/

PR gas/24359
* testsuite/gas/i386/i386.exp: Change optimize-6a, optimize-7,
x86-64-optimize-7a and x86-64-optimize-8 tests to run_list_test.
Remove optimize-6c and x86-64-optimize-7c tests.
* testsuite/gas/i386/noavx-3.l: Updated.
* testsuite/gas/i386/noavx-4.d: Likewise.
* testsuite/gas/i386/noavx-5.d: Likewise.
* testsuite/gas/i386/noavx-3.s: Add AVX512F tests.
* testsuite/gas/i386/noavx-4.s: Remove AVX512F tests.
* testsuite/gas/i386/nosse-5.s: Likewise.
* testsuite/gas/i386/optimize-6a.d: Removed.
* testsuite/gas/i386/optimize-6c.d: Likewise.
* testsuite/gas/i386/optimize-7.d: Likewise.
* testsuite/gas/i386/x86-64-optimize-7a.d: Likewise.
* testsuite/gas/i386/x86-64-optimize-7c.d: Likewise.
* testsuite/gas/i386/x86-64-optimize-8.d: Likewise.
* testsuite/gas/i386/optimize-6a.l: New file.
* testsuite/gas/i386/optimize-6a.s: Likewise.
* testsuite/gas/i386/optimize-7.l: Likewise.
* testsuite/gas/i386/x86-64-optimize-7a.l: Likewise.
* testsuite/gas/i386/x86-64-optimize-7a.s: Likewise.
* testsuite/gas/i386/x86-64-optimize-8.l: Likewise.

opcodes/

PR gas/24359
* i386-gen.c (cpu_flag_init): Add CPU_ANY_AVX512F_FLAGS to
CPU_ANY_AVX2_FLAGS.
* i386-init.h: Regenerated.
23 files changed:
gas/ChangeLog
gas/testsuite/gas/i386/i386.exp
gas/testsuite/gas/i386/noavx-3.l
gas/testsuite/gas/i386/noavx-3.s
gas/testsuite/gas/i386/noavx-4.d
gas/testsuite/gas/i386/noavx-4.s
gas/testsuite/gas/i386/nosse-5.d
gas/testsuite/gas/i386/nosse-5.s
gas/testsuite/gas/i386/optimize-6a.d [deleted file]
gas/testsuite/gas/i386/optimize-6a.l [new file with mode: 0644]
gas/testsuite/gas/i386/optimize-6a.s [new file with mode: 0644]
gas/testsuite/gas/i386/optimize-6c.d [deleted file]
gas/testsuite/gas/i386/optimize-7.d [deleted file]
gas/testsuite/gas/i386/optimize-7.l [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-optimize-7a.d [deleted file]
gas/testsuite/gas/i386/x86-64-optimize-7a.l [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-optimize-7a.s [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-optimize-7c.d [deleted file]
gas/testsuite/gas/i386/x86-64-optimize-8.d [deleted file]
gas/testsuite/gas/i386/x86-64-optimize-8.l [new file with mode: 0644]
opcodes/ChangeLog
opcodes/i386-gen.c
opcodes/i386-init.h