diff options
author | jgreenhalgh <jgreenhalgh@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-11-23 17:36:21 +0000 |
---|---|---|
committer | jgreenhalgh <jgreenhalgh@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-11-23 17:36:21 +0000 |
commit | ee1f2deb6a79a2d9a8598e101d1ffd64de971faa (patch) | |
tree | 4c6744904be9fd9860e06838a84db579accf3217 /gcc/config/arm/arm.h | |
parent | 539b44eea4c0701673e2f87ed09acff141ebb175 (diff) | |
download | gcc-ee1f2deb6a79a2d9a8598e101d1ffd64de971faa.tar.gz |
[Patch ARM 17/17] Enable _Float16 for ARM and fix PR target/63250
gcc/
PR target/63250
* config/arm/arm-builtins.c (arm_simd_floatHF_type_node): Rename to...
(arm_fp16_type_node): ...This, make visibile.
(arm_simd_builtin_std_type): Rename arm_simd_floatHF_type_node to
arm_fp16_type_node.
(arm_init_simd_builtin_types): Likewise.
(arm_init_fp16_builtins): Likewise.
* config/arm/arm.c (arm_excess_precision): New.
(arm_floatn_mode): Likewise.
(TARGET_C_EXCESS_PRECISION): Likewise.
(TARGET_FLOATN_MODE): Likewise.
(arm_promoted_type): Only promote arm_fp16_type_node.
* config/arm/arm.h (arm_fp16_type_node): Declare.
gcc/testsuite/
PR target/63250
* lib/target-supports.exp (add_options_for_float16): Add
-mfp16-format=ieee when testign arm*-*-*.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@242784 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/arm/arm.h')
-rw-r--r-- | gcc/config/arm/arm.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/config/arm/arm.h b/gcc/config/arm/arm.h index 15930f0ca8f..464710b2a98 100644 --- a/gcc/config/arm/arm.h +++ b/gcc/config/arm/arm.h @@ -73,6 +73,11 @@ extern int arm_ccfsm_state; extern GTY(()) rtx arm_target_insn; /* Callback to output language specific object attributes. */ extern void (*arm_lang_output_object_attributes_hook)(void); + +/* This type is the user-visible __fp16. We need it in a few places in + the backend. Defined in arm-builtins.c. */ +extern tree arm_fp16_type_node; + #undef CPP_SPEC #define CPP_SPEC "%(subtarget_cpp_spec) \ |