Skip to content
Snippets Groups Projects
Commit dc044641 authored by Torbjörn SVENSSON's avatar Torbjörn SVENSSON
Browse files

testsuite: arm: Use effective-target for pacbti-m-predef* tests


Update test cases to use -mcpu=unset/-march=unset feature introduced in
r15-3606-g7d6c6a0d15c.

gcc/testsuite/ChangeLog:

	* gcc.target/arm/acle/pacbti-m-predef-1.c: Use effective-target
	arm_arch_v8_1m_main.
	* gcc.target/arm/acle/pacbti-m-predef-2.c: Likewise.
	* gcc.target/arm/acle/pacbti-m-predef-3.c: Likewise.
	* gcc.target/arm/acle/pacbti-m-predef-4.c: Likewise.
	* gcc.target/arm/acle/pacbti-m-predef-5.c: Likewise.
	* gcc.target/arm/acle/pacbti-m-predef-6.c: Likewise.
	* gcc.target/arm/acle/pacbti-m-predef-8.c: Likewise.
	* gcc.target/arm/acle/pacbti-m-predef-9.c: Likewise.
	* gcc.target/arm/acle/pacbti-m-predef-10.c: Likewise.

Signed-off-by: default avatarTorbjörn SVENSSON <torbjorn.svensson@foss.st.com>
parent 3ae9d01e
No related branches found
No related tags found
No related merge requests found
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-require-effective-target arm_arch_v8_1m_main_ok } */
/* { dg-require-effective-target mbranch_protection_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) #if !defined (__ARM_FEATURE_BTI_DEFAULT)
#error "Feature test macro __ARM_FEATURE_BTI_DEFAULT should be defined." #error "Feature test macro __ARM_FEATURE_BTI_DEFAULT should be defined."
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-require-effective-target arm_arch_v8_1m_main_ok } */
/* { dg-require-effective-target mbranch_protection_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) #if (__ARM_FEATURE_BTI_DEFAULT != 1)
#error "Feature test macro __ARM_FEATURE_BTI_DEFAULT should be defined to 1." #error "Feature test macro __ARM_FEATURE_BTI_DEFAULT should be defined to 1."
......
/* { dg-do run } */ /* { 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 mbranch_protection_ok } */
/* { dg-require-effective-target arm_pacbti_hw } */ /* { 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) #if !defined (__ARM_FEATURE_BTI_DEFAULT)
#error "Feature test macro __ARM_FEATURE_BTI_DEFAULT should be defined." #error "Feature test macro __ARM_FEATURE_BTI_DEFAULT should be defined."
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-require-effective-target arm_arch_v8_1m_main_ok } */
/* { dg-require-effective-target mbranch_protection_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) #if defined (__ARM_FEATURE_BTI_DEFAULT)
#error "Feature test macro __ARM_FEATURE_BTI_DEFAULT should be undefined." #error "Feature test macro __ARM_FEATURE_BTI_DEFAULT should be undefined."
......
/* { dg-do run } */ /* { dg-do run } */
/* { dg-require-effective-target arm_arch_v8_1m_main_pacbti_link } */
/* { dg-require-effective-target arm_pacbti_hw } */ /* { 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) #if !defined (__ARM_FEATURE_PAC_DEFAULT)
#error "Feature test macro __ARM_FEATURE_BTI_DEFAULT should be defined." #error "Feature test macro __ARM_FEATURE_BTI_DEFAULT should be defined."
......
/* { dg-do run } */ /* { dg-do run } */
/* { dg-require-effective-target arm_arch_v8_1m_main_link } */
/* { dg-require-effective-target mbranch_protection_ok } */ /* { dg-require-effective-target mbranch_protection_ok } */
/* { dg-require-effective-target arm_pacbti_hw } */ /* { dg-require-effective-target arm_pacbti_hw } */
/* { dg-skip-if "do not override march" { *-*-* } { "-march=*" } { "-march=armv8.1-m.main" } } */ /* { dg-additional-options "-mbranch-protection=bti+pac-ret" } */
/* { dg-additional-options "-march=armv8.1-m.main -mbranch-protection=bti+pac-ret" } */ /* { dg-add-options arm_arch_v8_1m_main } */
#if !defined (__ARM_FEATURE_BTI_DEFAULT) #if !defined (__ARM_FEATURE_BTI_DEFAULT)
#error "Feature test macro __ARM_FEATURE_BTI_DEFAULT should be defined." #error "Feature test macro __ARM_FEATURE_BTI_DEFAULT should be defined."
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-require-effective-target arm_arch_v8_1m_main_ok } */
/* { dg-require-effective-target mbranch_protection_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) #if !defined (__ARM_FEATURE_BTI_DEFAULT)
#error "Feature test macro __ARM_FEATURE_BTI_DEFAULT should be defined." #error "Feature test macro __ARM_FEATURE_BTI_DEFAULT should be defined."
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-require-effective-target arm_arch_v8_1m_main_ok } */
/* { dg-require-effective-target mbranch_protection_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) #if (__ARM_FEATURE_BTI_DEFAULT != 1)
#error "Feature test macro __ARM_FEATURE_BTI_DEFAULT should be defined to 1." #error "Feature test macro __ARM_FEATURE_BTI_DEFAULT should be defined to 1."
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-require-effective-target arm_arch_v8_1m_main_ok } */
/* { dg-require-effective-target mbranch_protection_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) #if (__ARM_FEATURE_PAC_DEFAULT != 1)
#error "Feature test macro __ARM_FEATURE_PAC_DEFAULT should be defined to 1." #error "Feature test macro __ARM_FEATURE_PAC_DEFAULT should be defined to 1."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment