https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121689
--- Comment #1 from Christian Ehrhardt <christian.ehrhardt at canonical dot com> --- Due to optimization the function riscv_pmu_icount_update_priv gets inlined into its only caller riscv_pmu_update_fixed_ctrs. I was able to extract an objectdump of that function and will attach good (with -fno-gcse) and bad case obj code from that function.