diff options
author | Kyrylo Tkachov <kyrylo.tkachov@arm.com> | 2019-08-22 15:55:39 +0000 |
---|---|---|
committer | Kyrylo Tkachov <ktkachov@gcc.gnu.org> | 2019-08-22 15:55:39 +0000 |
commit | 943766d37ae4131aa6cbf9e0b2a660ffea3482a8 (patch) | |
tree | 5854dbaa393d0f29f0c8d33300599446348aa2d3 /gcc/expr.c | |
parent | ef27f40f488c590d796036ff9ad0ee572d8d8bfe (diff) | |
download | gcc-943766d37ae4131aa6cbf9e0b2a660ffea3482a8.zip gcc-943766d37ae4131aa6cbf9e0b2a660ffea3482a8.tar.gz gcc-943766d37ae4131aa6cbf9e0b2a660ffea3482a8.tar.bz2 |
[arm] Fix use of CRC32 intrinsics with Armv8-a and hard-float
We currently have a nasty error when trying to use the __crc* intrinsics
with an -mfloat-abi=hard.
That is because the target pragma guarding them uses armv8-a+crc that
does not include fp by default.
So we get errors like:
error: '-mfloat-abi=hard': selected processor lacks an FPU
This patch fixes that by using an FP-enabled arch target pragma to guard
these intrinsics when floating-point is available.
That way both the softfloat and hardfloat variants work.
* config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
intrinsics if __ARM_FP.
Use __ARM_FEATURE_CRC32 ifdef guard.
* gcc.target/arm/acle/crc_hf_1.c: New test.
From-SVN: r274827
Diffstat (limited to 'gcc/expr.c')
0 files changed, 0 insertions, 0 deletions