[V2,0/3] x86: Optimize the encoder of the vvvv register

Message ID 20240430104004.3048944-1-lili.cui@intel.com
Headers
Series x86: Optimize the encoder of the vvvv register |

Message

Cui, Lili April 30, 2024, 10:40 a.m. UTC
  These patches want to optimize the encoder of the vvvv register.
Previously we used Vexvvvv, SWAP_SOURCES and extension_opcode to help encode the vvvv register, these patches simplified the logic to only use vexvvvv and added appropriate Vexvvvv values for the related instructions.

V2: Added more comments in the code and removed changes to the SwapSources template and push2/POP2 to avoid modifying some places twice.


Cui, Lili (3):
  x86: Use vexvvvv as the switch state to encode the vvvv register
  x86: Drop SwapSources
  x86: Drop using extension_opcode to encode vvvv register

 gas/config/tc-i386.c                    |   58 +-
 gas/testsuite/gas/i386/x86-64-sse2avx.d |    7 +
 gas/testsuite/gas/i386/x86-64-sse2avx.s |    7 +
 opcodes/i386-opc.h                      |   21 +-
 opcodes/i386-opc.tbl                    | 1156 ++++++++++++-----------
 5 files changed, 635 insertions(+), 614 deletions(-)