spu: make some constants unsigned
authorTrevor Saunders <tbsaunde+binutils@tbsaunde.org>
Thu, 19 May 2016 02:39:18 +0000 (22:39 -0400)
committerTrevor Saunders <tbsaunde+binutils@tbsaunde.org>
Mon, 23 May 2016 05:20:09 +0000 (01:20 -0400)
commit2900e701e0f0216b17e04e4fff1ca4711a9c072f
tree99ac4c26920dcefbc1d7a954f9cb716d2731bc61
parent3d207518c117df7a6c58f20bc2693171b7690650
spu: make some constants unsigned

The field in spu_opcode is unsigned, and for some values of opcode we can end
up shifting into the high bit.  So avoid possibly creating a negative number
and then assigning it to a unsigned field by shifting an unsigned constant.

gas/ChangeLog:

2016-05-23  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>

* config/tc-spu.c (APUOP): Use OPCODE as an unsigned constant.
gas/ChangeLog
gas/config/tc-spu.c