[AArch64] ARMv8.2 command line and feature macros support
authorMatthew Wahab <matthew.wahab@arm.com>
Mon, 4 Jul 2016 08:17:57 +0000 (08:17 +0000)
committerJiong Wang <jiwang@gcc.gnu.org>
Mon, 4 Jul 2016 08:17:57 +0000 (08:17 +0000)
commitc61465bda5ed50a1bf664211515436f884e6fa66
treef3d89dc5d03ffde41530bf6c68165422b8b4cb83
parent793350758c5c88b29b1c9459f3b3fb1bb00bc0c0
[AArch64] ARMv8.2 command line and feature macros support

* config/aarch64/aarch64-arches.def: Add "armv8.2-a".
* config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
(AARCH64_FL_F16): New.
(AARCH64_FL_FOR_ARCH8_2): New.
(AARCH64_ISA_8_2): New.
(AARCH64_ISA_F16): New.
(TARGET_FP_F16INST): New.
(TARGET_SIMD_F16INST): New.
* config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
("fp"): Disabling "fp" also disables "fp16".
* config/aarch64/aarch64-c.c (arch64_update_cpp_builtins): Conditionally define
__ARM_FEATURE_FP16_SCALAR_ARITHMETIC and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
* doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".

Co-Authored-By: Jiong Wang <jiong.wang@arm.com>
From-SVN: r237956
gcc/ChangeLog
gcc/config/aarch64/aarch64-arches.def
gcc/config/aarch64/aarch64-c.c
gcc/config/aarch64/aarch64-option-extensions.def
gcc/config/aarch64/aarch64.h
gcc/doc/invoke.texi