diff options
author | Richard Sandiford <richard.sandiford@linaro.org> | 2017-08-30 11:09:56 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2017-08-30 11:09:56 +0000 |
commit | 1ce87609c91e51d7eee8284c5fe000c7d5b240db (patch) | |
tree | 546db64fb195401be1446efc42e41df63d77178e /gcc/doc | |
parent | 5c20c4af29da29d2bb74b1fdf3c116f564431878 (diff) | |
download | gcc-1ce87609c91e51d7eee8284c5fe000c7d5b240db.zip gcc-1ce87609c91e51d7eee8284c5fe000c7d5b240db.tar.gz gcc-1ce87609c91e51d7eee8284c5fe000c7d5b240db.tar.bz2 |
[13/77] Make floatn_mode return an opt_scalar_float_mode
As per subject.
2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
Alan Hayward <alan.hayward@arm.com>
David Sherwood <david.sherwood@arm.com>
gcc/
* target.def (default_floatn_mode): Return an opt_scalar_float_mode.
* doc/tm.texi: Regenerate.
* config/arm/arm.c (arm_floatn_mode): Return an opt_scalar_float_mode.
* config/powerpcspe/powerpcspe.c (rs6000_floatn_mode): Likewise.
* config/rs6000/rs6000.c (rs6000_floatn_mode): Likewise.
* targhooks.h (default_floatn_mode): Likewise.
* targhooks.c (default_floatn_mode): Likewise.
* tree.c (build_common_tree_nodes): Update accordingly.
Co-Authored-By: Alan Hayward <alan.hayward@arm.com>
Co-Authored-By: David Sherwood <david.sherwood@arm.com>
From-SVN: r251465
Diffstat (limited to 'gcc/doc')
-rw-r--r-- | gcc/doc/tm.texi | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi index 20926d1..9607ff1 100644 --- a/gcc/doc/tm.texi +++ b/gcc/doc/tm.texi @@ -4267,22 +4267,22 @@ hook returns true for all of @code{SFmode}, @code{DFmode}, @code{XFmode} and @code{TFmode}, if such modes exist. @end deftypefn -@deftypefn {Target Hook} machine_mode TARGET_FLOATN_MODE (int @var{n}, bool @var{extended}) +@deftypefn {Target Hook} opt_scalar_float_mode TARGET_FLOATN_MODE (int @var{n}, bool @var{extended}) Define this to return the machine mode to use for the type @code{_Float@var{n}}, if @var{extended} is false, or the type -@code{_Float@var{n}x}, if @var{extended} is true. If such a type -is not supported, return @code{VOIDmode}. The default version of this -hook returns @code{SFmode} for @code{_Float32}, @code{DFmode} for +@code{_Float@var{n}x}, if @var{extended} is true. If such a type is not +supported, return @code{opt_scalar_float_mode ()}. The default version of +this hook returns @code{SFmode} for @code{_Float32}, @code{DFmode} for @code{_Float64} and @code{_Float32x} and @code{TFmode} for @code{_Float128}, if those modes exist and satisfy the requirements for those types and pass @code{TARGET_SCALAR_MODE_SUPPORTED_P} and @code{TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P}; for @code{_Float64x}, it returns the first of @code{XFmode} and @code{TFmode} that exists and satisfies the same requirements; for other types, it returns -@code{VOIDmode}. The hook is only called for values of @var{n} and -@var{extended} that are valid according to ISO/IEC TS 18661-3:2015; that -is, @var{n} is one of 32, 64, 128, or, if @var{extended} is false, 16 or -greater than 128 and a multiple of 32. +@code{opt_scalar_float_mode ()}. The hook is only called for values +of @var{n} and @var{extended} that are valid according to +ISO/IEC TS 18661-3:2015; that is, @var{n} is one of 32, 64, 128, or, +if @var{extended} is false, 16 or greater than 128 and a multiple of 32. @end deftypefn @deftypefn {Target Hook} bool TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P (machine_mode @var{mode}) |