From: Kyrylo Tkachov Date: Thu, 21 Dec 2017 15:02:49 +0000 (+0000) Subject: [arm] Specify +dotprod support for Cortex-A55 and Cortex-A75 in native system detection X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b3eec1d68892e17c6f788a6ee723d44e97498c9d;p=gcc.git [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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 59b19b9c305..b1846acfde5 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2017-12-21 Kyrylo Tkachov + + * config/arm/driver-arm.c (arm_cpu_table): Specify dotprod + support for Cortex-A55 and Cortex-A75. + 2017-12-21 Kyrylo Tkachov * common/config/arm/arm-common.c (compare_opt_names): Add function diff --git a/gcc/config/arm/driver-arm.c b/gcc/config/arm/driver-arm.c index 280f4202920..328cec95e92 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"},