Commit 3479b7af by James Greenhalgh Committed by James Greenhalgh

[Patch 8/17] Make _Float16 available if HFmode is available

gcc/

	* targhooks.c (default_floatn_mode): Enable _Float16 if a target
	provides HFmode.

From-SVN: r242778
parent 8f23c89a
2016-11-23 James Greenhalgh <james.greenhalgh@arm.com> 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
* targhooks.c (default_floatn_mode): Enable _Float16 if a target
provides HFmode.
2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
* config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Delete. * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Delete.
* config/m68k/m68k.h (TARGET_FLT_EVAL_METHOD): Delete. * config/m68k/m68k.h (TARGET_FLT_EVAL_METHOD): Delete.
* config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Delete. * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Delete.
...@@ -514,10 +514,12 @@ default_floatn_mode (int n, bool extended) ...@@ -514,10 +514,12 @@ default_floatn_mode (int n, bool extended)
switch (n) switch (n)
{ {
case 16: case 16:
/* We do not use HFmode for _Float16 by default because the /* Always enable _Float16 if we have basic support for the mode.
required excess precision support is not present and the Targets can control the range and precision of operations on
interactions with promotion of the older __fp16 need to the _Float16 type using TARGET_C_EXCESS_PRECISION. */
be worked out. */ #ifdef HAVE_HFmode
cand = HFmode;
#endif
break; break;
case 32: case 32:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment