]> git.ipfire.org Git - thirdparty/gcc.git/commit
i386: Fix some ISA bit test in option_override
authorHongyu Wang <hongyu.wang@intel.com>
Mon, 17 Jun 2024 02:34:01 +0000 (10:34 +0800)
committerHongyu Wang <hongyu.wang@intel.com>
Thu, 20 Jun 2024 07:13:45 +0000 (15:13 +0800)
commit4867cc815531ede8bc356a2507f1c35ee6e6399c
tree0c52354e967fd7d9a98a0aebf4217a37816ffe26
parentccaa39a268bef2a1d8880022696ff2dcaa6af941
i386: Fix some ISA bit test in option_override

Adjust several new feature check in ix86_option_override_interal that
directly use TARGET_* instead of TARGET_*_P (opts->ix86_isa_flags)
to avoid cmdline option overrides target_attribute isa flag.

gcc/ChangeLog:

* config/i386/i386-options.cc (ix86_option_override_internal):
Use TARGET_*_P (opts->x_ix86_isa_flags*) instead of TARGET_*
for UINTR, LAM and APX_F.

gcc/testsuite/ChangeLog:

* gcc.target/i386/apx-ccmp-2.c: Remove -mno-apxf in option.
* gcc.target/i386/funcspec-56.inc: Drop uintr tests.
* gcc.target/i386/funcspec-6.c: Add uintr tests.
gcc/config/i386/i386-options.cc
gcc/testsuite/gcc.target/i386/apx-ccmp-2.c
gcc/testsuite/gcc.target/i386/funcspec-56.inc
gcc/testsuite/gcc.target/i386/funcspec-6.c