]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: arm: Force hard ABI for pr51534.c test
authorTorbjörn SVENSSON <torbjorn.svensson@foss.st.com>
Thu, 31 Oct 2024 17:54:30 +0000 (18:54 +0100)
committerTorbjörn SVENSSON <torbjorn.svensson@foss.st.com>
Mon, 4 Nov 2024 19:17:39 +0000 (20:17 +0100)
The test case is written in a way that it should be using hard float
ABI, but the use of -mfloat-abi=hard could be overriden by
dg-add-options arm_neon. Ensure that -mfloat-abi=hard is always after.

gcc/testsuite/ChangeLog:

* gcc.target/arm/pr51534.c: Ensure -mfloat-abi=hard is used.

Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@foss.st.com>
gcc/testsuite/gcc.target/arm/pr51534.c

index ba21259bee554ea2aeef47ef5e5a0ef541ac088a..b68ecce263974b9eb1838861a12ee531b66732bc 100644 (file)
@@ -3,8 +3,9 @@
 
 /* { dg-do assemble { target { arm_hard_ok } } } */
 /* { dg-require-effective-target arm_neon_ok } */
-/* { dg-options "-save-temps -mfloat-abi=hard -O3" } */
+/* { dg-options "-save-temps -O3" } */
 /* { dg-add-options arm_neon } */
+/* { dg-additional-options "-mfloat-abi=hard" } */
 
 #include <arm_neon.h>