diff options
author | Kyrylo Tkachov <kyrylo.tkachov@arm.com> | 2017-12-21 15:02:49 +0000 |
---|---|---|
committer | Kyrylo Tkachov <ktkachov@gcc.gnu.org> | 2017-12-21 15:02:49 +0000 |
commit | b3eec1d68892e17c6f788a6ee723d44e97498c9d (patch) | |
tree | 5b466d15430b161a0371814877ba3ed8bddd2b55 /gcc | |
parent | e3d444a7dd824c3c79427a657e8a95d5711cb497 (diff) | |
download | gcc-b3eec1d68892e17c6f788a6ee723d44e97498c9d.zip gcc-b3eec1d68892e17c6f788a6ee723d44e97498c9d.tar.gz gcc-b3eec1d68892e17c6f788a6ee723d44e97498c9d.tar.bz2 |
[arm] Specify +dotprod support for Cortex-A55 and Cortex-A75 in native system detection
Since support for -mcpu=cortex-a55 and -mcpu=cortex-a75
was added we added support for the +dotprod extension
which these CPUs support.
We already specify as such in the arm-cpus.in entries for
these processors. However the table in driver-arm.c was
not adding +dotproct to the -march string that it generates.
This patch fixes that oversight.
In the future I'd like to get the arm_cpu_table in driver-arm.c
be auto-generated somehow from the arm-cpus.in data so
that we don't have to keep track of discrepancies explicitly...
Bootstrapped and tested on arm-none-linux-gnueabihf.
* config/arm/driver-arm.c (arm_cpu_table): Specify dotprod
support for Cortex-A55 and Cortex-A75.
From-SVN: r255943
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/arm/driver-arm.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 59b19b9..b1846ac 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2017-12-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com> + * config/arm/driver-arm.c (arm_cpu_table): Specify dotprod + support for Cortex-A55 and Cortex-A75. + +2017-12-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com> + * common/config/arm/arm-common.c (compare_opt_names): Add function comment. Use strcmp instead of manual loop. diff --git a/gcc/config/arm/driver-arm.c b/gcc/config/arm/driver-arm.c index 280f420..328cec9 100644 --- a/gcc/config/arm/driver-arm.c +++ b/gcc/config/arm/driver-arm.c @@ -54,8 +54,8 @@ static struct vendor_cpu arm_cpu_table[] = { {"0xd07", "armv8-a+crc", "cortex-a57"}, {"0xd08", "armv8-a+crc", "cortex-a72"}, {"0xd09", "armv8-a+crc", "cortex-a73"}, - {"0xd05", "armv8.2-a+fp16", "cortex-a55"}, - {"0xd0a", "armv8.2-a+fp16", "cortex-a75"}, + {"0xd05", "armv8.2-a+fp16+dotprod", "cortex-a55"}, + {"0xd0a", "armv8.2-a+fp16+dotprod", "cortex-a75"}, {"0xc14", "armv7-r", "cortex-r4"}, {"0xc15", "armv7-r", "cortex-r5"}, {"0xc17", "armv7-r", "cortex-r7"}, |