x86: Update message for target_clones and unsupported ISAs
authorH.J. Lu <hjl@gcc.gnu.org>
Thu, 25 Apr 2019 17:00:28 +0000 (10:00 -0700)
committerH.J. Lu <hjl@gcc.gnu.org>
Thu, 25 Apr 2019 17:00:28 +0000 (10:00 -0700)
commit604ab090adf9c3acf9387627a477dd6b9f07a640
tree1de62fee6ad151e9c703ddb070213397e0f6f53d
parent9125dc3292822c748b1d866ea2d78e00708d5df6
x86: Update message for target_clones and unsupported ISAs

Before AVX512F, processors with the newer ISAs also support the older
ISAs, i.e., AVX2 processors also support AVX and SSE4, SSE4 processors
also support SSSE3, ...   After AVX512F, an AVX512XX processor may not
support AVX512YY.  It means AVX512XX features, except for AVX512F, can't
be used to decide priority in target_clones.

This patch updates error message for ISAs with P_ZERO priority.  It also
merges _feature_list into _isa_names_table and marks ISAs, which have
unknown priority, with P_ZERO so that we only need to update one place
to add a new ISA feature.

gcc/

2019-04-25  H.J. Lu  <hongjiu.lu@intel.com>

PR target/89929
* config/i386/i386.c (feature_priority): Moved to file scope.
(processor_features): Likewise.
(processor_model): Likewise.
(_arch_names_table): Likewise.
(arch_names_table): Likewise.
(_feature_list): Removed.
(feature_list): Likewise.
(_isa_names_table): Moved to file scope.  Add priority.
(isa_names_table): Likewise.
(get_builtin_code_for_version): Replace feature_list with
isa_names_table.  Update error message for P_ZERO priority.

gcc/testsuite/

2019-04-25  Martin Liska  <mliska@suse.cz>
    H.J. Lu  <hongjiu.lu@intel.com>

PR target/89929
* g++.target/i386/mv28.C: New test.
* gcc.target/i386/mvc14.c: Likewise.
* g++.target/i386/pr57362.C: Updated.

From-SVN: r270578
gcc/ChangeLog
gcc/config/i386/i386.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.target/i386/mv28.C [new file with mode: 0644]
gcc/testsuite/g++.target/i386/pr57362.C
gcc/testsuite/gcc.target/i386/mvc14.c [new file with mode: 0644]