[PATCH, ppc] Allow IMM8 operands to accept both signed and unsigned values
Peter Bergner
bergner@vnet.ibm.com
Wed May 18 02:59:00 GMT 2016
On Wed, 2016-05-18 at 12:07 +0930, Alan Modra wrote:
> Peter, do you agree with the following?
>
> > * config/tc-ppc.c (ppc_insert_operand): Trim PPC_OPERAND_SIGNOPT
> > allowed negative range.
> > * testsuite/gas/ppc/power9.s: Test xxspltib of -128, not -256.
> > * testsuite/gas/ppc/power9.d: Update.
>
Hi Alan, yeah, that looks good to me. Thanks for fixing this.
Jan, I didn't really mention this in my submission, but the main
rational for this change was to allow the use of -1 as a mask of
all 1 bits for fields like these. One of our other GCC developers
thought this would simplify things in the GCC ppc port by being
able to use -1 for the mask value, rather than some unsigned mask
value that depends on the mask size.
Peter
More information about the Binutils
mailing list