PPC binutils opcodes
    Alan Modra 
    amodra@gmail.com
       
    Wed May 11 13:13:27 GMT 2022
    
    
  
On Wed, May 11, 2022 at 12:24:21PM +0300, Dmitry Selyutin wrote:
> Hello folks,
> 
> long time no news. We're still extending PowerPC with SVP64
> extensions[0], and, as part of this large task, we're updating
> binutils respectively[1].
> With the recent commit[2], I've hit the limit on count of operands
> stored in powerpc_operands array, and now I'm somewhat unsure of how
> to address it.
Yes, we are getting close to the limit on mainline, 241 entries.
> The trivial and obvious solution to increase the size of the operand
> index[3] can be done, but it appears there is another obstacle this
> time[4].
> 
> Considering fx_pcrel_adjust field, it appears to be shared and it has
> exactly 8 bits[5]. This is enforced by the assertion above, but also
> by other places[6].
Increasing the size of fx_pcrel_adjust should be fine, adjusting the
assertion and removing the silly mask to 8 bits.  Another option
is to add a field to tc-ppc.h:_ppc_fix_extra and use that instead of
fx_pcrel_adjust in tc-ppc.c.
-- 
Alan Modra
Australia Development Lab, IBM
    
    
More information about the Binutils
mailing list