IBM Z: arch14: Add command line options
authorAndreas Krebbel <krebbel@linux.ibm.com>
Tue, 2 Mar 2021 10:43:30 +0000 (11:43 +0100)
committerAndreas Krebbel <krebbel@linux.ibm.com>
Tue, 2 Mar 2021 10:58:31 +0000 (11:58 +0100)
commit796a35b2bd663b1086a6d7b4fed03ba8e1a6545c
tree3924321d4fe0c8b560ab19cad3734c00e29dc780
parentff92ede8d269375f800e1b347a48f4698874b4a3
IBM Z: arch14: Add command line options

Prepare GCC for a future architecture extension.

gcc/ChangeLog:

* common/config/s390/s390-common.c (processor_flags_table): New entry.
* config.gcc: Enable arch14 for --with-arch and --with-tune.
* config/s390/driver-native.c (s390_host_detect_local_cpu): Pick
arch14 for unknown CPU models.
* config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH14.
* config/s390/s390.c (s390_issue_rate): Add case for PROCESSOR_ARCH14.
(s390_get_sched_attrmask): Likewise.
(s390_get_unit_mask): Likewise.
* config/s390/s390.h (enum processor_flags): Add PF_NNPA and PF_ARCH14.
(TARGET_CPU_ARCH14, TARGET_CPU_ARCH14_P, TARGET_CPU_NNPA)
(TARGET_CPU_NNPA_P, TARGET_ARCH14, TARGET_ARCH14_P, TARGET_NNPA)
(TARGET_NNPA_P): New macro definitions.
* config/s390/s390.md ("cpu_facility", "enabled"): Add arch14 and nnpa.
* config/s390/s390.opt: Add PROCESSOR_ARCH14.

gcc/testsuite/ChangeLog:

* lib/target-supports.exp: Add check for nnpa facility.
gcc/common/config/s390/s390-common.c
gcc/config.gcc
gcc/config/s390/driver-native.c
gcc/config/s390/s390-opts.h
gcc/config/s390/s390.c
gcc/config/s390/s390.h
gcc/config/s390/s390.md
gcc/config/s390/s390.opt
gcc/testsuite/lib/target-supports.exp