]> git.ipfire.org Git - thirdparty/gcc.git/commit
arm: testsuite: improve compatibility of pragma_arch_attribute*.c
authorRichard Earnshaw <rearnsha@arm.com>
Fri, 3 Nov 2023 18:17:36 +0000 (18:17 +0000)
committerRichard Earnshaw <rearnsha@arm.com>
Mon, 13 Nov 2023 14:15:56 +0000 (14:15 +0000)
commit40e25ea5b0b3584b9588563784cc8575ce2d7ddb
tree38553abef8a55af8e8310d087ce3f42750e43dfe
parentc034b8f53243175f04935fd653ce15bd7700495c
arm: testsuite: improve compatibility of pragma_arch_attribute*.c

These tests use pragmas adn attributes to change the architecture.
Sometimes they simply add a feature using "+crc", but other times they
try to completely reset the architecture using "arch=armv8-a+crc".
The latter fails on a hard-float ABI with -mfpu=auto because it also
clears the FP capability.  Fix by adding +simd when the full
architecture is specified.

gcc/testsuite:

* gcc.target/arm/pragma_arch_attribute.c: Add +simd to pragmas that
set an explicit architecture.
* gcc.target/arm/pragma_arch_attribute_2.c: Likewise.
* gcc.target/arm/pragma_arch_attribute_3.c: Likewise.
gcc/testsuite/gcc.target/arm/pragma_arch_attribute.c
gcc/testsuite/gcc.target/arm/pragma_arch_attribute_2.c
gcc/testsuite/gcc.target/arm/pragma_arch_attribute_3.c