[Bug target/94622] testsuite/gcc.dg/atomic/c11-atomic-exec-1.c fails on powerpc64le with -mpcrel

acsawdey at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Apr 17 22:26:51 GMT 2020


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

--- Comment #1 from acsawdey at gcc dot gnu.org ---
Compiling with -dap we see:

        sync             # 7    [c=12 l=4]  *hwsync
        plq 8,.LANCHOR0@pcrel            # 8    [c=8 l=12]  load_quadpti
        mr 10,9          # 9    [c=4 l=4]  *movdi_internal64/2
        mr 11,8          # 10   [c=4 l=4]  *movdi_internal64/2

I think the problem is that atomic_load<mode> thinks it always needs to do a
doubleword swap if little endian for TImode, which is true for lq, but not for
plq.


More information about the Gcc-bugs mailing list