https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101996

--- Comment #1 from Andreas Schwab <sch...@linux-m68k.org> ---
Worksforme:

00000000000029ae <__atomic_compare_exchange_1@@LIBATOMIC_1.0>:
    29ae:       0ff0000f                fence
    29b2:       0005c683                lbu     a3,0(a1)
    29b6:       ff857893                andi    a7,a0,-8
    29ba:       891d                    andi    a0,a0,7
    29bc:       050e                    slli    a0,a0,0x3
    29be:       0ff00713                li      a4,255
    29c2:       0008b783                ld      a5,0(a7)
    29c6:       00a71733                sll     a4,a4,a0
    29ca:       00a696b3                sll     a3,a3,a0
    29ce:       00a61633                sll     a2,a2,a0
    29d2:       fff74e13                not     t3,a4
    29d6:       00fe7833                and     a6,t3,a5
    29da:       00f77333                and     t1,a4,a5
    29de:       00c86833                or      a6,a6,a2
    29e2:       02d31363                bne     t1,a3,2a08
<__atomic_compare_exchange_1@@LIBATOMIC_1.0+0x5a>
    29e6:       1008b32f                lr.d    t1,(a7)
    29ea:       00f31663                bne     t1,a5,29f6
<__atomic_compare_exchange_1@@LIBATOMIC_1.0+0x48>
    29ee:       1908beaf                sc.d    t4,a6,(a7)
    29f2:       fe0e9ae3                bnez    t4,29e6
<__atomic_compare_exchange_1@@LIBATOMIC_1.0+0x38>
    29f6:       40f30833                sub     a6,t1,a5
    29fa:       879a                    mv      a5,t1
    29fc:       fc081de3                bnez    a6,29d6
<__atomic_compare_exchange_1@@LIBATOMIC_1.0+0x28>
    2a00:       0ff0000f                fence
    2a04:       4505                    li      a0,1
    2a06:       8082                    ret
    2a08:       00a7d7b3                srl     a5,a5,a0
    2a0c:       00f58023                sb      a5,0(a1)
    2a10:       0ff0000f                fence
    2a14:       4501                    li      a0,0
    2a16:       8082                    ret

Reply via email to