diff --git a/0380-Fix-tune-params-error-in-hip09-and-hip11.patch b/0380-Fix-tune-params-error-in-hip09-and-hip11.patch new file mode 100644 index 0000000000000000000000000000000000000000..b708b3e987b14189a8a77f26febdaa85ca0a8324 --- /dev/null +++ b/0380-Fix-tune-params-error-in-hip09-and-hip11.patch @@ -0,0 +1,42 @@ +From d4f79bc035e1176fe8a37c8d324ab35384dfabc5 Mon Sep 17 00:00:00 2001 +From: huzife <634763349@qq.com> +Date: Wed, 21 May 2025 18:06:09 +0800 +Subject: [PATCH] Fix tune params error in hip09 and hip11 + +--- + gcc/config/aarch64/aarch64.cc | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +diff --git a/gcc/config/aarch64/aarch64.cc b/gcc/config/aarch64/aarch64.cc +index f33e4611a..7bb343db7 100644 +--- a/gcc/config/aarch64/aarch64.cc ++++ b/gcc/config/aarch64/aarch64.cc +@@ -2179,10 +2179,10 @@ static const struct tune_params hip09_tunings = + 4, /* load_pred. */ + 4 /* store_pred. */ + }, /* memmov_cost. */ +- 4, /* issue_rate */ ++ 2, /* issue_rate */ + (AARCH64_FUSE_AES_AESMC | AARCH64_FUSE_ALU_BRANCH + | AARCH64_FUSE_ALU_CBZ), /* fusible_ops */ +- "16", /* function_align. */ ++ "16:12", /* function_align. */ + "4", /* jump_align. */ + "8", /* loop_align. */ + 2, /* int_reassoc_width. */ +@@ -2279,10 +2279,10 @@ static const struct tune_params hip11_tunings = + 4, /* load_pred. */ + 4 /* store_pred. */ + }, /* memmov_cost. */ +- 2, /* issue_rate */ ++ 4, /* issue_rate */ + (AARCH64_FUSE_AES_AESMC | AARCH64_FUSE_ALU_BRANCH + | AARCH64_FUSE_ALU_CBZ), /* fusible_ops */ +- "16:12", /* function_align. */ ++ "16", /* function_align. */ + "4", /* jump_align. */ + "8", /* loop_align. */ + 2, /* int_reassoc_width. */ +-- +2.33.0 + diff --git a/gcc.spec b/gcc.spec index 4d23dae7cfd138315124846d9e646943a212b9be..658cc868f37ad93f1904d3e48184dea122deac8a 100644 --- a/gcc.spec +++ b/gcc.spec @@ -2,7 +2,7 @@ %global gcc_major 12 # Note, gcc_release must be integer, if you want to add suffixes to # %%{release}, append them after %%{gcc_release} on Release: line. -%global gcc_release 84 +%global gcc_release 85 %global _unpackaged_files_terminate_build 0 %global _performance_build 1 @@ -489,6 +489,7 @@ Patch376: 0376-Struct-dynamic-field-compression-optimization.patch Patch377: 0377-oeAware-Fix-.GCC4OE_oeAware-section-dup-in-namespace.patch Patch378: 0378-Add-alignment-propagation-localize-array-array-dse.patch Patch379: 0379-SVE-Add-container-restriction-for-std-find-with-sve.patch +Patch380: 0380-Fix-tune-params-error-in-hip09-and-hip11.patch # Part 1001-1999 %ifarch sw_64 @@ -1654,6 +1655,7 @@ not stable, so plugins must be rebuilt any time GCC is updated. %patch -P377 -p1 %patch -P378 -p1 %patch -P379 -p1 +%patch -P380 -p1 %ifarch sw_64 %patch -P1001 -p1 @@ -4281,6 +4283,10 @@ end %doc rpm.doc/changelogs/libcc1/ChangeLog* %changelog +* Wed May 21 2025 huzife <634763349@qq.com> - 12.3.1-85 +- Type: Bugfix +- DESC: Fix tune params error in hip09 and hip11. + * Wed May 21 2025 liyancheng <412998149@qq.com> - 12.3.1-84 - Type: Sync - DESC: Sync patches from openeuler/gcc.