--- /dev/null
+Increase the branch misprediction scale for znver4/5 tuning from
+COSTS_N_INSNS (2) to COSTS_N_INSNS (2) + 3.
+
+This improves 544.nab_r by 12% (-O3 -march=native -flto) on Znver5
+and 9% on Znver4 with single-copy.
+
+gcc/ChangeLog:
+
+ * config/i386/x86-tune-costs.h (znver4_cost): Increase branch
+ mispredict scale from COSTS_N_INSNS (2) to COSTS_N_INSNS (2) + 3.
+ (znver5_cost): Likewise.
+---
+
+Hi Maintainers,
+
+Bootstrapped and tested on x86_64-linux, Ok for staging?
+
+regards,
+Venkat.
+
+ gcc/config/i386/x86-tune-costs.h | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/gcc/config/i386/x86-tune-costs.h b/gcc/config/i386/x86-tune-costs.h
+index bc3bb694349..8be780d73da 100644
+--- a/gcc/config/i386/x86-tune-costs.h
++++ b/gcc/config/i386/x86-tune-costs.h
+@@ -2231,7 +2231,7 @@ struct processor_costs znver4_cost = {
+ "16", /* Func alignment. */
+ 4, /* Small unroll limit. */
+ 2, /* Small unroll factor. */
+- COSTS_N_INSNS (2), /* Branch mispredict scale. */
++ COSTS_N_INSNS (2) + 3, /* Branch mispredict scale. */
+ };
+
+ /* This table currently replicates znver4_cost table. */
+@@ -2399,7 +2399,7 @@ struct processor_costs znver5_cost = {
+ "16", /* Func alignment. */
+ 4, /* Small unroll limit. */
+ 2, /* Small unroll factor. */
+- COSTS_N_INSNS (2), /* Branch mispredict scale. */
++ COSTS_N_INSNS (2) + 3, /* Branch mispredict scale. */
+ };
+
+ /* skylake_cost should produce code tuned for Skylake family of CPUs. */
+--
+2.34.1