x86: Define __APX_F__ for -mapxf
Define __APX_F__ when APX is enabled. gcc/ PR target/114587 * config/i386/i386-c.cc (ix86_target_macros_internal): Define __APX_F__ when APX is enabled. gcc/testsuite/ PR target/114587 * gcc.target/i386/apx-2.c: New test.
This commit is contained in:
parent
dc8a25189d
commit
1df56719bd
2 changed files with 8 additions and 0 deletions
|
@ -749,6 +749,8 @@ ix86_target_macros_internal (HOST_WIDE_INT isa_flag,
|
|||
}
|
||||
if (isa_flag2 & OPTION_MASK_ISA2_AVX10_1_512)
|
||||
def_or_undef (parse_in, "__AVX10_1_512__");
|
||||
if (isa_flag2 & OPTION_MASK_ISA2_APX_F)
|
||||
def_or_undef (parse_in, "__APX_F__");
|
||||
if (TARGET_IAMCU)
|
||||
{
|
||||
def_or_undef (parse_in, "__iamcu");
|
||||
|
|
6
gcc/testsuite/gcc.target/i386/apx-2.c
Normal file
6
gcc/testsuite/gcc.target/i386/apx-2.c
Normal file
|
@ -0,0 +1,6 @@
|
|||
/* { dg-do compile { target { ! ia32 } } } */
|
||||
/* { dg-options "-mapxf" } */
|
||||
|
||||
#ifndef __APX_F__
|
||||
# error __APX_F__ not defined
|
||||
#endif
|
Loading…
Add table
Reference in a new issue