diff options
author | Richard Earnshaw <rearnsha@arm.com> | 2023-11-03 18:17:36 +0000 |
---|---|---|
committer | Richard Earnshaw <rearnsha@arm.com> | 2023-11-13 14:15:56 +0000 |
commit | 40e25ea5b0b3584b9588563784cc8575ce2d7ddb (patch) | |
tree | 38553abef8a55af8e8310d087ce3f42750e43dfe /gcc/cppdefault.cc | |
parent | c034b8f53243175f04935fd653ce15bd7700495c (diff) | |
download | gcc-40e25ea5b0b3584b9588563784cc8575ce2d7ddb.zip gcc-40e25ea5b0b3584b9588563784cc8575ce2d7ddb.tar.gz gcc-40e25ea5b0b3584b9588563784cc8575ce2d7ddb.tar.bz2 |
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.
Diffstat (limited to 'gcc/cppdefault.cc')
0 files changed, 0 insertions, 0 deletions