[gcc(refs/users/aoliva/heads/testme)] use -mfpu=auto for arm/simd/vmmla_1.c
Alexandre Oliva
aoliva@gcc.gnu.org
Thu Jan 14 22:27:45 GMT 2021
https://gcc.gnu.org/g:4adf4f64d0e47b9e4042356a85c39a768325c60b
commit 4adf4f64d0e47b9e4042356a85c39a768325c60b
Author: Alexandre Oliva <oliva@adacore.com>
Date: Thu Dec 31 21:38:37 2020 -0300
use -mfpu=auto for arm/simd/vmmla_1.c
On some of our arm targets, we get various -mfpu flags implicitly or
explicitly passed to the compiler during test runs. The target
options pushed in arm_neon.h that affect vmmlaq_s32 set isa_bit_neon,
but the caller doesn't have that bit set, so arm_can_inline_p rejects
the attempt to inline it, and the test fails.
An explicit -mfpu=neon would address the compile problem, but cause
the assembler to reject the generated code.
So this patch adds -mfpu=auto to the test, overriding any implicit
flags with the fpu implied by the arch.
for gcc/testsuite/ChangeLog
* gcc.target/arm/simd/vmmla_1.c: Pass -mfpu=auto.
Diff:
---
gcc/testsuite/gcc.target/arm/simd/vmmla_1.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/testsuite/gcc.target/arm/simd/vmmla_1.c b/gcc/testsuite/gcc.target/arm/simd/vmmla_1.c
index aeb4a359e33..d33ebf361d4 100644
--- a/gcc/testsuite/gcc.target/arm/simd/vmmla_1.c
+++ b/gcc/testsuite/gcc.target/arm/simd/vmmla_1.c
@@ -1,6 +1,6 @@
/* { dg-do assemble } */
/* { dg-require-effective-target arm_v8_2a_i8mm_ok } */
-/* { dg-options "-save-temps -O2 -march=armv8.2-a+i8mm -mfloat-abi=hard" } */
+/* { dg-options "-save-temps -O2 -march=armv8.2-a+i8mm -mfpu=auto -mfloat-abi=hard" } */
#include "arm_neon.h"
More information about the Gcc-cvs
mailing list