Rodolfo Wottrich fe5d1f901a
[ARM] Fix missing ELF FPU attributes for fp-armv8-fullfp16-d16 (#105677)
An assembly input with

>   .fpu fp-armv8-fullfp16-d16

crashes the compiler because the ELF FPU attribute emitter misses the
respective entry. This patch fixes this.

Interestingly, compiling with -mfpu=fp-armv8-fullfp16-d16 does not cause
the crash because FPv5_D16 is an alias in the compiler and

>   .fpu fpv5-d16

is emitted instead, which does not crash.

The existing .fpu directive test with multiple FPUs serves the purpose
of verifying that each possible FPU option is defined, but does not
trigger the crash because only the last .fpu directive goes effectively
down the code path. Therefore one test for each FPU is required.

Fixes #105674.
2024-08-22 16:30:27 +01:00
..
2024-02-21 10:13:26 -08:00
2024-01-16 09:10:48 -08:00
2024-01-16 19:51:26 +00:00