opts->x_ix86_stringop_alg = no_stringop;
}
- if (TARGET_APX_F && !TARGET_64BIT)
+ if (TARGET_APX_F_P (opts->x_ix86_isa_flags2)
+ && !TARGET_64BIT_P (opts->x_ix86_isa_flags))
error ("%<-mapxf%> is not supported for 32-bit code");
- else if (opts->x_ix86_apx_features != apx_none && !TARGET_64BIT)
+ else if (opts->x_ix86_apx_features != apx_none
+ && !TARGET_64BIT_P (opts->x_ix86_isa_flags))
error ("%<-mapx-features=%> option is not supported for 32-bit code");
- if (TARGET_UINTR && !TARGET_64BIT)
+ if (TARGET_UINTR_P (opts->x_ix86_isa_flags2)
+ && !TARGET_64BIT_P (opts->x_ix86_isa_flags))
error ("%<-muintr%> not supported for 32-bit code");
- if (ix86_lam_type && !TARGET_LP64)
+ if (ix86_lam_type && !TARGET_LP64_P (opts->x_ix86_isa_flags))
error ("%<-mlam=%> option: [u48|u57] not supported for 32-bit code");
if (!opts->x_ix86_arch_string)
init_machine_status = ix86_init_machine_status;
/* Override APX flag here if ISA bit is set. */
- if (TARGET_APX_F && !OPTION_SET_P (ix86_apx_features))
+ if (TARGET_APX_F_P (opts->x_ix86_isa_flags2)
+ && !OPTION_SET_P (ix86_apx_features))
opts->x_ix86_apx_features = apx_all;
/* Validate -mregparm= value. */
/* { dg-do run { target { ! ia32 } } } */
/* { dg-require-effective-target apxf } */
-/* { dg-options "-O3 -mno-apxf" } */
+/* { dg-options "-O3" } */
__attribute__((noinline, noclone, target("apxf")))
int foo_apx(int a, int b, int c, int d)
extern void test_amx_tile (void) __attribute__((__target__("amx-tile")));
extern void test_amx_int8 (void) __attribute__((__target__("amx-int8")));
extern void test_amx_bf16 (void) __attribute__((__target__("amx-bf16")));
-extern void test_uintr (void) __attribute__((__target__("uintr")));
extern void test_hreset (void) __attribute__((__target__("hreset")));
extern void test_keylocker (void) __attribute__((__target__("kl")));
extern void test_widekl (void) __attribute__((__target__("widekl")));
extern void test_no_amx_tile (void) __attribute__((__target__("no-amx-tile")));
extern void test_no_amx_int8 (void) __attribute__((__target__("no-amx-int8")));
extern void test_no_amx_bf16 (void) __attribute__((__target__("no-amx-bf16")));
-extern void test_no_uintr (void) __attribute__((__target__("no-uintr")));
extern void test_no_hreset (void) __attribute__((__target__("no-hreset")));
extern void test_no_keylocker (void) __attribute__((__target__("no-kl")));
extern void test_no_widekl (void) __attribute__((__target__("no-widekl")));
#include "funcspec-56.inc"
+extern void test_uintr (void) __attribute__((__target__("uintr")));
+extern void test_no_uintr (void) __attribute__((__target__("no-uintr")));
extern void test_arch_foo (void) __attribute__((__target__("arch=foo"))); /* { dg-error "bad value" } */
extern void test_tune_foo (void) __attribute__((__target__("tune=foo"))); /* { dg-error "bad value" } */