diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/arm/cmse/mainline/hard/cmse-13.c')
-rw-r--r-- | gcc/testsuite/gcc.target/arm/cmse/mainline/hard/cmse-13.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/gcc/testsuite/gcc.target/arm/cmse/mainline/hard/cmse-13.c b/gcc/testsuite/gcc.target/arm/cmse/mainline/hard/cmse-13.c index 0af586a7fd1..d35321bfda8 100644 --- a/gcc/testsuite/gcc.target/arm/cmse/mainline/hard/cmse-13.c +++ b/gcc/testsuite/gcc.target/arm/cmse/mainline/hard/cmse-13.c @@ -1,18 +1,11 @@ /* { dg-do compile } */ +/* { dg-options "-mcmse -mfloat-abi=hard -mfpu=fpv5-d16" } */ /* { dg-require-effective-target arm_arch_v8m_main_ok } */ /* { dg-add-options arm_arch_v8m_main } */ /* { dg-skip-if "Do not combine float-abi= hard | soft | softfp" {*-*-*} {"-mfloat-abi=soft" -mfloat-abi=softfp } {""} } */ /* { dg-skip-if "Skip these if testing single precision" {*-*-*} {"-mfpu=*-sp-*"} {""} } */ -/* { dg-options "-mcmse -mfloat-abi=hard -mfpu=fpv5-d16" } */ - - -int __attribute__ ((cmse_nonsecure_call)) (*bar) (float, double); -int -foo (int a) -{ - return bar (3.0f, 2.0) + a + 1; -} +#include "../../cmse-13.x" /* Checks for saving and clearing prior to function call. */ /* { dg-final { scan-assembler "lsrs\tr4, r4, #1" } } */ |