Re: powerpc: cmp -> cmpd for 64-bit

2016-12-14 Thread Greg KH
On Wed, Dec 14, 2016 at 02:01:50PM +1030, Joel Stanley wrote: > On Wed, Oct 26, 2016 at 8:51 PM, Michael Ellerman > wrote: > > On Thu, 2016-06-10 at 13:42:19 UTC, Segher Boessenkool wrote: > >> PowerPC's "cmp" instruction has four operands. Normally people write > >> "cmpw" or "cmpd" for the seco

Re: powerpc: cmp -> cmpd for 64-bit

2016-12-13 Thread Segher Boessenkool
On Wed, Dec 14, 2016 at 02:01:50PM +1030, Joel Stanley wrote: > >> With older binutils this is silently accepted as if this was "cmpw", > >> while often "cmpd" is wanted. With newer binutils GAS will complain > >> about this for 64-bit code. For 32-bit code it still silently assumes > >> "cmpw" i

Re: powerpc: cmp -> cmpd for 64-bit

2016-12-13 Thread Joel Stanley
On Wed, Oct 26, 2016 at 8:51 PM, Michael Ellerman wrote: > On Thu, 2016-06-10 at 13:42:19 UTC, Segher Boessenkool wrote: >> PowerPC's "cmp" instruction has four operands. Normally people write >> "cmpw" or "cmpd" for the second cmp operand 0 or 1. But, frequently >> people forget, and write "cmp

Re: powerpc: cmp -> cmpd for 64-bit

2016-10-26 Thread Michael Ellerman
On Thu, 2016-06-10 at 13:42:19 UTC, Segher Boessenkool wrote: > PowerPC's "cmp" instruction has four operands. Normally people write > "cmpw" or "cmpd" for the second cmp operand 0 or 1. But, frequently > people forget, and write "cmp" with just three operands. > > With older binutils this is si