--- common/sys/atomic-ppc.h 2024-07-12 22:23:22.000000000 +0800 +++ common/sys/atomic-ppc.h 2026-04-23 10:43:33.000000000 +0800 @@ -153,7 +153,7 @@ __asm__ __volatile__( "1: lwarx %0, 0, %1 \n\t" - " addic %0, %0,%2 \n\t" + " add %0, %0,%2 \n\t" " stwcx. %0, 0, %1 \n\t" " bne- 1b \n\t" : "=&r" (t) @@ -174,7 +174,7 @@ __asm__ __volatile__( "1: lwarx %0, 0,%1 \n\t" - " subf %0,%0,%2 \n\t" + " subf %0,%2,%0 \n\t" " stwcx. %0,0,%1 \n\t" " bne- 1b \n\t" : "=&r" (t)