Re: [PATCH], rs6000, PR/target 94622, Be more careful with plq for atomic_load

2020-04-21 Thread Segher Boessenkool
[ I never received the original mail? Not the one sent to me directly, that is. ] Subject: [PATCH], rs6000, PR/target 94622, Be more careful with plq for atomic_load That is too long... Also, PR should go at the end, etc., so smth like Subject: [PATCH] rs6000: Be more careful with plq for

Re: [PATCH], rs6000, PR/target 94622, Be more careful with plq for atomic_load

2020-04-20 Thread will schmidt via Gcc-patches
Hi, On Mon, 2020-04-20 at 14:00 -0500, Aaron Sawdey via Gcc-patches wrote: > For future architecture with prefix instructions, always use plq > rather than lq for atomi load of quadword. Then we never have to atomic :-) > do the doubleword swap on little endian. Before this fix, -mno-pcrel > w

[PATCH], rs6000, PR/target 94622, Be more careful with plq for atomic_load

2020-04-20 Thread Aaron Sawdey via Gcc-patches
For future architecture with prefix instructions, always use plq rather than lq for atomi load of quadword. Then we never have to do the doubleword swap on little endian. Before this fix, -mno-pcrel would generate lq with the doubleword swap (which was ok) and -mpcrel would generate plq, also with