arm: CLI for Custom Datapath Extension (CDE)
authorDennis Zhang <dennis.zh@live.com>
Wed, 8 Apr 2020 14:06:31 +0000 (15:06 +0100)
committerDennis Zhang <dennis.zh@live.com>
Wed, 8 Apr 2020 14:06:31 +0000 (15:06 +0100)
commit975e6670c428b032aa6ec600f57082d3cfb57393
treeee079a210bfab455715fb97817d1010222f5c6ea
parent4cf6b06cb5b02c053738e2975e3b7a4b3c577401
arm: CLI for Custom Datapath Extension (CDE)

This patch is part of a series that adds support for the Arm Custom
Datapath Extension. It defines the options cdecp0-cdecp7 for CLI to
enable the CDE on corresponding coprocessor 0-7.
It also adds new target supports for CDE feature testsuite.

gcc/ChangeLog:
2020-04-08  Dennis Zhang  <dennis.zhang@arm.com>

* config.gcc: Add arm_cde.h.
* config/arm/arm-c.c (arm_cpu_builtins): Define or undefine
__ARM_FEATURE_CDE and __ARM_FEATURE_CDE_COPROC.
* config/arm/arm-cpus.in (cdecp0, cdecp1, ..., cdecp7): New options.
* config/arm/arm.c (arm_option_reconfigure_globals): Configure
arm_arch_cde and arm_arch_cde_coproc to store the feature bits.
* config/arm/arm.h (TARGET_CDE): New macro.
* config/arm/arm_cde.h: New file.
* doc/invoke.texi: Document CDE options +cdecp[0-7].
* doc/sourcebuild.texi (arm_v8m_main_cde_ok): Document new target
supports option.
(arm_v8m_main_cde_fp, arm_v8_1m_main_cde_mve): Likewise.

gcc/testsuite/ChangeLog:
2020-04-08  Dennis Zhang  <dennis.zhang@arm.com>

* gcc.target/arm/pragma_cde.c: New test.
* lib/target-supports.exp (arm_v8m_main_cde_ok): New target support
option.
(arm_v8m_main_cde_fp, arm_v8_1m_main_cde_mve): Likewise.
12 files changed:
gcc/ChangeLog
gcc/config.gcc
gcc/config/arm/arm-c.c
gcc/config/arm/arm-cpus.in
gcc/config/arm/arm.c
gcc/config/arm/arm.h
gcc/config/arm/arm_cde.h [new file with mode: 0644]
gcc/doc/invoke.texi
gcc/doc/sourcebuild.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/arm/pragma_cde.c [new file with mode: 0644]
gcc/testsuite/lib/target-supports.exp