Re: [PATCH] i386: Sync tune_string with arch_string for target attribute arch=*

2023-06-27 Thread Hongyu Wang via Gcc-patches
The testcase fails with --with-arch=native build on cascadelake, here is the patch to adjust it gcc/testsuite/ChangeLog: * gcc.target/i386/mvc17.c: Add -march=x86-64 to dg-options. --- gcc/testsuite/gcc.target/i386/mvc17.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/t

Re: [PATCH] i386: Sync tune_string with arch_string for target attribute arch=*

2023-06-26 Thread Hongyu Wang via Gcc-patches
Thanks, I'll backport it down to GCC10 after this passed all bootstrap/regtest. Uros Bizjak via Gcc-patches 于2023年6月26日周一 14:05写道: > > On Mon, Jun 26, 2023 at 4:31 AM Hongyu Wang wrote: > > > > Hi, > > > > For function with target attribute arch=*, current logic will set its > > tune to -mtune f

Re: [PATCH] i386: Sync tune_string with arch_string for target attribute arch=*

2023-06-25 Thread Uros Bizjak via Gcc-patches
On Mon, Jun 26, 2023 at 4:31 AM Hongyu Wang wrote: > > Hi, > > For function with target attribute arch=*, current logic will set its > tune to -mtune from command line so all target_clones will get same > tuning flags which would affect the performance for each clone. Override > tune with arch if

[PATCH] i386: Sync tune_string with arch_string for target attribute arch=*

2023-06-25 Thread Hongyu Wang via Gcc-patches
Hi, For function with target attribute arch=*, current logic will set its tune to -mtune from command line so all target_clones will get same tuning flags which would affect the performance for each clone. Override tune with arch if tune was not explicitly specified to get proper tuning flags for