]> git.ipfire.org Git - thirdparty/gcc.git/commit
Aarch64: Define WIDEST_HARDWARE_FP_SIZE
authorEric Botcazou <ebotcazou@adacore.com>
Thu, 3 Oct 2024 17:46:59 +0000 (19:46 +0200)
committerEric Botcazou <ebotcazou@adacore.com>
Thu, 3 Oct 2024 18:02:27 +0000 (20:02 +0200)
commit547219f41f049083cda55929ae1c900195993504
treeb1857874f64ce355288ce426ac9678f5769e20bd
parentfe33530e6241712c42feeb2a649c1e8b2f2cb406
Aarch64: Define WIDEST_HARDWARE_FP_SIZE

The macro is documented like this in the internal manual:

 -- Macro: WIDEST_HARDWARE_FP_SIZE
     A C expression for the size in bits of the widest floating-point
     format supported by the hardware.  If you define this macro, you
     must specify a value less than or equal to mode precision of the
     mode used for C type 'long double' (from hook
     'targetm.c.mode_for_floating_type' with argument
     'TI_LONG_DOUBLE_TYPE').  If you do not define this macro, mode
     precision of the mode used for C type 'long double' is the default.

AArch64 uses 128-bit TFmode for long double but, as far as I know, no FPU
implemented in hardware supports it.

gcc/
* config/aarch64/aarch64.h (WIDEST_HARDWARE_FP_SIZE): Define to 64.

gcc/testsuite/
* gnat.dg/specs/size_clause6.ads: New test.
gcc/config/aarch64/aarch64.h
gcc/testsuite/gnat.dg/specs/size_clause6.ads [new file with mode: 0644]