From: Andrea Corallo Date: Thu, 26 Nov 2020 11:33:18 +0000 (+0100) Subject: arm: [testsuite] fix lob tests for -mfloat-abi=hard X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=695b8d281ad1ec96fb84b67e46aa42d065bccc43;p=gcc.git arm: [testsuite] fix lob tests for -mfloat-abi=hard 2020-11-26 Andrea Corallo * gcc.target/arm/lob2.c: Use '-march=armv8.1-m.main+fp'. * gcc.target/arm/lob3.c: Skip with '-mfloat-abi=hard'. * gcc.target/arm/lob4.c: Likewise. * gcc.target/arm/lob5.c: Use '-march=armv8.1-m.main+fp'. --- diff --git a/gcc/testsuite/gcc.target/arm/lob2.c b/gcc/testsuite/gcc.target/arm/lob2.c index fdeb2686f51..d174857b926 100644 --- a/gcc/testsuite/gcc.target/arm/lob2.c +++ b/gcc/testsuite/gcc.target/arm/lob2.c @@ -2,7 +2,7 @@ if a non-inlineable function call takes place inside the loop. */ /* { dg-do compile } */ /* { dg-skip-if "avoid conflicting multilib options" { *-*-* } { "-marm" "-mcpu=*" } } */ -/* { dg-options "-march=armv8.1-m.main -mthumb -O3 --save-temps" } */ +/* { dg-options "-march=armv8.1-m.main+fp -mthumb -O3 --save-temps" } */ #include #include "lob.h" diff --git a/gcc/testsuite/gcc.target/arm/lob3.c b/gcc/testsuite/gcc.target/arm/lob3.c index 70314ea84b3..f5290063f28 100644 --- a/gcc/testsuite/gcc.target/arm/lob3.c +++ b/gcc/testsuite/gcc.target/arm/lob3.c @@ -1,7 +1,7 @@ /* Check that GCC does not generate Armv8.1-M low over head loop instructions if causes VFP emulation library calls to happen inside the loop. */ /* { dg-do compile } */ -/* { dg-skip-if "avoid conflicting multilib options" { *-*-* } { "-marm" "-mcpu=*" } } */ +/* { dg-skip-if "avoid conflicting multilib options" { *-*-* } { "-marm" "-mcpu=*" "-mfloat-abi=hard" } } */ /* { dg-options "-march=armv8.1-m.main -mthumb -O3 --save-temps -mfloat-abi=soft" } */ /* { dg-require-effective-target arm_softfloat } */ #include diff --git a/gcc/testsuite/gcc.target/arm/lob4.c b/gcc/testsuite/gcc.target/arm/lob4.c index 792f352d682..86c774e1b57 100644 --- a/gcc/testsuite/gcc.target/arm/lob4.c +++ b/gcc/testsuite/gcc.target/arm/lob4.c @@ -1,7 +1,7 @@ /* Check that GCC does not generate Armv8.1-M low over head loop instructions if LR is modified within the loop. */ /* { dg-do compile } */ -/* { dg-skip-if "avoid conflicting multilib options" { *-*-* } { "-marm" "-mcpu=*" } } */ +/* { dg-skip-if "avoid conflicting multilib options" { *-*-* } { "-marm" "-mcpu=*" "-mfloat-abi=hard" } } */ /* { dg-options "-march=armv8.1-m.main -mthumb -O3 --save-temps -mfloat-abi=soft" } */ /* { dg-require-effective-target arm_softfloat } */ #include diff --git a/gcc/testsuite/gcc.target/arm/lob5.c b/gcc/testsuite/gcc.target/arm/lob5.c index 1a6adf1e28e..df5383b4a26 100644 --- a/gcc/testsuite/gcc.target/arm/lob5.c +++ b/gcc/testsuite/gcc.target/arm/lob5.c @@ -3,7 +3,7 @@ therefore is not optimizable. Outer loops are not optimized. */ /* { dg-do compile } */ /* { dg-skip-if "avoid conflicting multilib options" { *-*-* } { "-marm" "-mcpu=*" } } */ -/* { dg-options "-march=armv8.1-m.main -mthumb -O3 --save-temps" } */ +/* { dg-options "-march=armv8.1-m.main+fp -mthumb -O3 --save-temps" } */ #include #include "lob.h"