[committed 12/22] arm: testsuite: improve compatibility of pragma_arch_attribute*.c
Richard Earnshaw
rearnsha@arm.com
Mon Nov 13 14:26:48 GMT 2023
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 | 6 +++---
gcc/testsuite/gcc.target/arm/pragma_arch_attribute_2.c | 2 +-
gcc/testsuite/gcc.target/arm/pragma_arch_attribute_3.c | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0012-arm-testsuite-improve-compatibility-of-pragma_arch_a.patch
Type: text/x-patch
Size: 2110 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20231113/6a5e4e43/attachment.bin>
More information about the Gcc-patches
mailing list