[ARM] Hide existing float16 intrinsics unless we have a scalar __fp16 type
authorAlan Lawrence <alan.lawrence@arm.com>
Thu, 20 Aug 2015 12:38:20 +0000 (12:38 +0000)
committerAlan Lawrence <alalaw01@gcc.gnu.org>
Thu, 20 Aug 2015 12:38:20 +0000 (12:38 +0000)
commit50399bb138e173f05ad6677b4cd3975c1d9df984
treedec34ee333b5671793a861a5b17b11e84b71ceb5
parent30aa6349e193c1164ab0fba1de332053c2d2ed51
[ARM] Hide existing float16 intrinsics unless we have a scalar __fp16 type

gcc/:

* config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
initialization of HFmode scalar type (float16_t) to...
(arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
code.

(arm_init_builtins): Call arm_init_fp16_builtins earlier and always.

* config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
having an -mfp16-format.

gcc/testsuite/:

* lib/target-supports.exp
(check_effective_target_arm_neon_fp16_ok_nocache): Add flag variants
with -mfp16-format=ieee.

From-SVN: r227033
gcc/ChangeLog
gcc/config/arm/arm-builtins.c
gcc/config/arm/arm_neon.h
gcc/testsuite/ChangeLog
gcc/testsuite/lib/target-supports.exp