x86: correct / adjust debug printing
authorJan Beulich <jbeulich@novell.com>
Tue, 25 Jun 2019 07:41:33 +0000 (09:41 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 25 Jun 2019 07:41:33 +0000 (09:41 +0200)
commit2c70385689542a4c4cbe160601e54f9f18a4c4c5
tree4e3fac1720511587ea3672d30794c14116a770b2
parent4970191fa557c4769697fb41db06f2dcb5f7de2e
x86: correct / adjust debug printing

For quite some time we've been using combinations of bits for
specifying various registers in operands and templates. I think it was
Alan who had indicated that likely the debug printing would need
adjustment as a result. Here we go.

Accumulator handling for GPRs gets changed to match that for FPU regs.
For this to work, OPERAND_TYPE_ACC{32,64} get repurposed, with their
original uses replaced by direct checks of the two bits of interest,
which is cheaper than operand_type_equal() invocations.

For SIMD registers nothing similar appears to be needed, as respective
operands get stripped from the (copy of the) template before pt() is
reached.

The type change on pi() is to silence a compiler diagnostic. Arguably
its other parameter could also be const-qualified.
gas/ChangeLog
gas/config/tc-i386.c
opcodes/ChangeLog
opcodes/i386-gen.c
opcodes/i386-init.h
This page took 0.024354 seconds and 4 git commands to generate.