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/target.def | |
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/target.def')
-rw-r--r-- | gcc/target.def | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gcc/target.def b/gcc/target.def index 985ddc0..1fff0e8 100644 --- a/gcc/target.def +++ b/gcc/target.def @@ -3385,20 +3385,20 @@ DEFHOOK (floatn_mode, "Define this to return the machine mode to use for the type \n\ @code{_Float@var{n}}, if @var{extended} is false, or the type \n\ -@code{_Float@var{n}x}, if @var{extended} is true. If such a type \n\ -is not supported, return @code{VOIDmode}. The default version of this \n\ -hook returns @code{SFmode} for @code{_Float32}, @code{DFmode} for \n\ +@code{_Float@var{n}x}, if @var{extended} is true. If such a type is not\n\ +supported, return @code{opt_scalar_float_mode ()}. The default version of\n\ +this hook returns @code{SFmode} for @code{_Float32}, @code{DFmode} for\n\ @code{_Float64} and @code{_Float32x} and @code{TFmode} for \n\ @code{_Float128}, if those modes exist and satisfy the requirements for \n\ those types and pass @code{TARGET_SCALAR_MODE_SUPPORTED_P} and \n\ @code{TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P}; for @code{_Float64x}, it \n\ returns the first of @code{XFmode} and @code{TFmode} that exists and \n\ satisfies the same requirements; for other types, it returns \n\ -@code{VOIDmode}. The hook is only called for values of @var{n} and \n\ -@var{extended} that are valid according to ISO/IEC TS 18661-3:2015; that \n\ -is, @var{n} is one of 32, 64, 128, or, if @var{extended} is false, 16 or \n\ -greater than 128 and a multiple of 32.", - machine_mode, (int n, bool extended), +@code{opt_scalar_float_mode ()}. The hook is only called for values\n\ +of @var{n} and @var{extended} that are valid according to\n\ +ISO/IEC TS 18661-3:2015; that is, @var{n} is one of 32, 64, 128, or,\n\ +if @var{extended} is false, 16 or greater than 128 and a multiple of 32.", + opt_scalar_float_mode, (int n, bool extended), default_floatn_mode) /* Compute cost of moving data from a register of class FROM to one of |