arm: Fix emission of Tag_ABI_VFP_args with MVE and -mfloat-abi=hard (PR target/99773)
authorChristophe Lyon <christophe.lyon@linaro.org>
Tue, 30 Mar 2021 12:26:33 +0000 (12:26 +0000)
committerChristophe Lyon <christophe.lyon@linaro.org>
Tue, 30 Mar 2021 13:11:10 +0000 (13:11 +0000)
commit6f93a7c7fc62b2d6ab47e5d5eb60d41366e1ee9e
treea18012171a5855ccb378db337be42f7972a22c7c
parent41d57b2a97c44ae7b0a5b01ae703a8f0d0495238
arm: Fix emission of Tag_ABI_VFP_args with MVE and -mfloat-abi=hard (PR target/99773)

When compiling with -mfloat-abi=hard -march=armv8.1-m.main+mve, we
want to emit Tag_ABI_VFP_args even though we are not emitting
floating-point instructions (we need "+mve.fp" for that), because we
use MVE registers to pass FP arguments.

This patch removes the condition on (! TARGET_SOFT_FLOAT) because this
is a case where TARGET_SOFT_FLOAT is true, and TARGET_HARD_FLOAT_ABI
is true too.

2021-03-30  Richard Earnshaw  <rearnsha@arm.com>

gcc/
PR target/99773
* config/arm/arm.c (arm_file_start): Fix emission of
Tag_ABI_VFP_args attribute.
gcc/config/arm/arm.c