[gmp] [powerpc] GMP build is broken because asm {...} syntax has been removed from latest toolchains
David Edelsohn
dje.gcc at gmail.com
Mon Oct 29 20:54:40 CET 2012
Segher,
Should we re-enable ASSEMBLER_DIALECT and hard-code it to "1" so that
old inlined assembly with dual mnemonic support continues to work?
- David
On Sun, Oct 21, 2012 at 12:07 PM, David Edelsohn <dje.gcc at gmail.com> wrote:
> So this is all about removing ASSEMBLER_DIALECT from the PowerPC port.
>
> Maybe we can restore ASSEMBLER_DIALECT in GCC trunk hard-coded to use
> the second dialect (index 1) so that old inlined assembler continues
> to work.
>
> Thanks, David
>
> On Sun, Oct 21, 2012 at 11:58 AM, Douglas Mencken <dougmencken at gmail.com> wrote:
>>> I have read and reread your reply, but I cannot make sense of it.
>>
>> cntlz and cntlzw are the same. Same machine code.
>> ai and addic are the same. Same machine code.
>>
>> {ai|addic} 3,4 is the same as both ai 3,4 and addic 3,4. There're no
>> difference at all between all three of them. Absolutely. But the
>> latter (addic) is better and much more readable (add immediate,
>> affecting carrying bit).
>> It's a some convention how to turn letters into machine-readable
>> bytes. And this is controlled by assemblers.
More information about the gmp-bugs
mailing list