This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH, ppc] Allow IMM8 operands to accept both signed and unsigned values


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]