https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105325
--- Comment #8 from Martin Liška <marxin at gcc dot gnu.org> ---
The problematic instructions is:
lwa 9,40036(1)
Diff in between power9 and power10:
diff -u good.s bad.s
--- good.s 2022-04-21 13:01:23.844042178 +0200
+++ bad.s 2022-04-21 13:01:28.544026646 +0200
@@ -1,5 +1,5 @@
.file "extmain.cpp.ii"
- .machine power9
+ .machine power10
.abiversion 2
.section ".text"
.section ".toc","aw"
...
.LCFI0:
ld 9,.LC0@toc(2)
+ ld 10,0(9)
+ pstd 10,40040(1)
li 10,0
- ori 10,10,0x9c68
- add 10,10,1
- ld 8,0(9)
- std 8,0(10)
- li 8,0
- li 9,0
- ori 9,9,0x9c64
- lwzx 9,9,1
- cmpwi 0,9,0
+ lwa 9,40036(1)
+ cmpdi 0,9,0
beq 0,.L1
.L3:
...