diff --git a/gcc/testsuite/gcc.target/arm/acle/pacbti-m-predef-1.c b/gcc/testsuite/gcc.target/arm/acle/pacbti-m-predef-1.c index 122f7a762a7113d06754a53cda85a668b7a322ea..0abc33721494d13a0579dd23449230e5e54ece45 100644 --- a/gcc/testsuite/gcc.target/arm/acle/pacbti-m-predef-1.c +++ b/gcc/testsuite/gcc.target/arm/acle/pacbti-m-predef-1.c @@ -1,6 +1,8 @@ /* { dg-do compile } */ +/* { dg-require-effective-target arm_arch_v8_1m_main_ok } */ /* { dg-require-effective-target mbranch_protection_ok } */ -/* { dg-options "-march=armv8.1-m.main+fp -mbranch-protection=pac-ret+bti -mfloat-abi=hard --save-temps" } */ +/* { dg-options "-mbranch-protection=pac-ret+bti -mfloat-abi=hard --save-temps" } */ +/* { dg-add-options arm_arch_v8_1m_main } */ #if !defined (__ARM_FEATURE_BTI_DEFAULT) #error "Feature test macro __ARM_FEATURE_BTI_DEFAULT should be defined." diff --git a/gcc/testsuite/gcc.target/arm/acle/pacbti-m-predef-10.c b/gcc/testsuite/gcc.target/arm/acle/pacbti-m-predef-10.c index 52d18238109f345fd19d78e264ff4538b67160e2..08f90a9d9c18d5b3198e51615c04dde59865ba85 100644 --- a/gcc/testsuite/gcc.target/arm/acle/pacbti-m-predef-10.c +++ b/gcc/testsuite/gcc.target/arm/acle/pacbti-m-predef-10.c @@ -1,6 +1,8 @@ /* { dg-do compile } */ +/* { dg-require-effective-target arm_arch_v8_1m_main_ok } */ /* { dg-require-effective-target mbranch_protection_ok } */ -/* { dg-additional-options "-march=armv8.1-m.main+fp -mbranch-protection=bti+pac-ret -mfloat-abi=hard" } */ +/* { dg-additional-options "-mbranch-protection=bti+pac-ret -mfloat-abi=hard" } */ +/* { dg-add-options arm_arch_v8_1m_main } */ #if (__ARM_FEATURE_BTI_DEFAULT != 1) #error "Feature test macro __ARM_FEATURE_BTI_DEFAULT should be defined to 1." diff --git a/gcc/testsuite/gcc.target/arm/acle/pacbti-m-predef-2.c b/gcc/testsuite/gcc.target/arm/acle/pacbti-m-predef-2.c index cd418ce0c7fcb673f6a854f29f18dc8c721a85a1..de34cc87f99df7c059b613d7b96b75e3b4de2c4c 100644 --- a/gcc/testsuite/gcc.target/arm/acle/pacbti-m-predef-2.c +++ b/gcc/testsuite/gcc.target/arm/acle/pacbti-m-predef-2.c @@ -1,7 +1,9 @@ /* { dg-do run } */ +/* { dg-require-effective-target arm_arch_v8_1m_main_pacbti_link } */ /* { dg-require-effective-target mbranch_protection_ok } */ /* { dg-require-effective-target arm_pacbti_hw } */ -/* { dg-options "-march=armv8.1-m.main+pacbti+fp -mbranch-protection=bti+pac-ret+leaf -mthumb -mfloat-abi=hard" } */ +/* { dg-options "-mbranch-protection=bti+pac-ret+leaf -mfloat-abi=hard" } */ +/* { dg-add-options arm_arch_v8_1m_main_pacbti } */ #if !defined (__ARM_FEATURE_BTI_DEFAULT) #error "Feature test macro __ARM_FEATURE_BTI_DEFAULT should be defined." diff --git a/gcc/testsuite/gcc.target/arm/acle/pacbti-m-predef-3.c b/gcc/testsuite/gcc.target/arm/acle/pacbti-m-predef-3.c index b94f3447ad9708d76f4b11d1058cebbde341b7ea..e19e41626ddfc7c619b413c0e86f38fb320a0d81 100644 --- a/gcc/testsuite/gcc.target/arm/acle/pacbti-m-predef-3.c +++ b/gcc/testsuite/gcc.target/arm/acle/pacbti-m-predef-3.c @@ -1,6 +1,8 @@ /* { dg-do compile } */ +/* { dg-require-effective-target arm_arch_v8_1m_main_ok } */ /* { dg-require-effective-target mbranch_protection_ok } */ -/* { dg-options "-march=armv8.1-m.main+fp -mbranch-protection=pac-ret+leaf -mfloat-abi=hard --save-temps" } */ +/* { dg-options "-mbranch-protection=pac-ret+leaf -mfloat-abi=hard --save-temps" } */ +/* { dg-add-options arm_arch_v8_1m_main } */ #if defined (__ARM_FEATURE_BTI_DEFAULT) #error "Feature test macro __ARM_FEATURE_BTI_DEFAULT should be undefined." diff --git a/gcc/testsuite/gcc.target/arm/acle/pacbti-m-predef-4.c b/gcc/testsuite/gcc.target/arm/acle/pacbti-m-predef-4.c index ce4b45ab464eb388d23ee724e8d8ea2c304859c1..9040b0a6464028969df493f71c33eef86f9b209e 100644 --- a/gcc/testsuite/gcc.target/arm/acle/pacbti-m-predef-4.c +++ b/gcc/testsuite/gcc.target/arm/acle/pacbti-m-predef-4.c @@ -1,6 +1,8 @@ /* { dg-do run } */ +/* { dg-require-effective-target arm_arch_v8_1m_main_pacbti_link } */ /* { dg-require-effective-target arm_pacbti_hw } */ -/* { dg-options "-march=armv8.1-m.main+pacbti+fp -mbranch-protection=pac-ret -mthumb -mfloat-abi=hard" } */ +/* { dg-options "-mbranch-protection=pac-ret -mfloat-abi=hard" } */ +/* { dg-add-options arm_arch_v8_1m_main_pacbti } */ #if !defined (__ARM_FEATURE_PAC_DEFAULT) #error "Feature test macro __ARM_FEATURE_BTI_DEFAULT should be defined." diff --git a/gcc/testsuite/gcc.target/arm/acle/pacbti-m-predef-5.c b/gcc/testsuite/gcc.target/arm/acle/pacbti-m-predef-5.c index 6d48b7c31a5731e6a6e281f59bc5748cddbd6032..106d20f27d263244fdaa1becbbb5bdbf05f04861 100644 --- a/gcc/testsuite/gcc.target/arm/acle/pacbti-m-predef-5.c +++ b/gcc/testsuite/gcc.target/arm/acle/pacbti-m-predef-5.c @@ -1,8 +1,9 @@ /* { dg-do run } */ +/* { dg-require-effective-target arm_arch_v8_1m_main_link } */ /* { dg-require-effective-target mbranch_protection_ok } */ /* { dg-require-effective-target arm_pacbti_hw } */ -/* { dg-skip-if "do not override march" { *-*-* } { "-march=*" } { "-march=armv8.1-m.main" } } */ -/* { dg-additional-options "-march=armv8.1-m.main -mbranch-protection=bti+pac-ret" } */ +/* { dg-additional-options "-mbranch-protection=bti+pac-ret" } */ +/* { dg-add-options arm_arch_v8_1m_main } */ #if !defined (__ARM_FEATURE_BTI_DEFAULT) #error "Feature test macro __ARM_FEATURE_BTI_DEFAULT should be defined." diff --git a/gcc/testsuite/gcc.target/arm/acle/pacbti-m-predef-6.c b/gcc/testsuite/gcc.target/arm/acle/pacbti-m-predef-6.c index ed52afc83c548f5950756ecfe901ee208f338901..083d2b6569a30bb6fec9a329be151e6ca460d0f3 100644 --- a/gcc/testsuite/gcc.target/arm/acle/pacbti-m-predef-6.c +++ b/gcc/testsuite/gcc.target/arm/acle/pacbti-m-predef-6.c @@ -1,6 +1,8 @@ /* { dg-do compile } */ +/* { dg-require-effective-target arm_arch_v8_1m_main_ok } */ /* { dg-require-effective-target mbranch_protection_ok } */ -/* { dg-additional-options "-march=armv8.1-m.main+fp -mbranch-protection=bti -mfloat-abi=hard --save-temps" } */ +/* { dg-additional-options "-mbranch-protection=bti -mfloat-abi=hard --save-temps" } */ +/* { dg-add-options arm_arch_v8_1m_main } */ #if !defined (__ARM_FEATURE_BTI_DEFAULT) #error "Feature test macro __ARM_FEATURE_BTI_DEFAULT should be defined." diff --git a/gcc/testsuite/gcc.target/arm/acle/pacbti-m-predef-8.c b/gcc/testsuite/gcc.target/arm/acle/pacbti-m-predef-8.c index 3538c1863973274e5eddc9e0ed59eddbe036f4a2..17fc7f57c72c0bb4dbd397734e91b3067eaff7fc 100644 --- a/gcc/testsuite/gcc.target/arm/acle/pacbti-m-predef-8.c +++ b/gcc/testsuite/gcc.target/arm/acle/pacbti-m-predef-8.c @@ -1,6 +1,8 @@ /* { dg-do compile } */ +/* { dg-require-effective-target arm_arch_v8_1m_main_ok } */ /* { dg-require-effective-target mbranch_protection_ok } */ -/* { dg-additional-options "-march=armv8.1-m.main+fp -mbranch-protection=bti+pac-ret+leaf -mfloat-abi=hard" } */ +/* { dg-additional-options "-mbranch-protection=bti+pac-ret+leaf -mfloat-abi=hard" } */ +/* { dg-add-options arm_arch_v8_1m_main } */ #if (__ARM_FEATURE_BTI_DEFAULT != 1) #error "Feature test macro __ARM_FEATURE_BTI_DEFAULT should be defined to 1." diff --git a/gcc/testsuite/gcc.target/arm/acle/pacbti-m-predef-9.c b/gcc/testsuite/gcc.target/arm/acle/pacbti-m-predef-9.c index 27c1c8f521c678eee9f84b71580481ff847ea79c..822515c8c0ac535707a30204eb58be8acc8d7629 100644 --- a/gcc/testsuite/gcc.target/arm/acle/pacbti-m-predef-9.c +++ b/gcc/testsuite/gcc.target/arm/acle/pacbti-m-predef-9.c @@ -1,6 +1,8 @@ /* { dg-do compile } */ +/* { dg-require-effective-target arm_arch_v8_1m_main_ok } */ /* { dg-require-effective-target mbranch_protection_ok } */ -/* { dg-additional-options "-march=armv8.1-m.main+fp -mbranch-protection=pac-ret -mfloat-abi=hard" } */ +/* { dg-additional-options "-mbranch-protection=pac-ret -mfloat-abi=hard" } */ +/* { dg-add-options arm_arch_v8_1m_main } */ #if (__ARM_FEATURE_PAC_DEFAULT != 1) #error "Feature test macro __ARM_FEATURE_PAC_DEFAULT should be defined to 1."