]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb/record: add support to AVX unpack instructions
authorGuinevere Larsen <guinevere@redhat.com>
Thu, 14 Mar 2024 14:24:36 +0000 (15:24 +0100)
committerGuinevere Larsen <guinevere@redhat.com>
Mon, 28 Oct 2024 13:46:33 +0000 (10:46 -0300)
commit51de3d886cd75aaa9d87b17acbf17b9ff6b1029e
treebc21435cc4e62ba28e1e77da77060cffa4b4c1ab
parent4b672a4a6d087a12ff24cb5125dbbb5dfa876b9a
gdb/record: add support to AVX unpack instructions

This commit adds support to recording instructions to unpack high
or low data from XMM registers, identified by the mnemonics in the
form: VPUNPCK [L|H] [BW|WD|DQ|QDQ].
All these instructions are encoded the exact same way, and only affect
the destination register, making them trivial to implement together.

It also updates the test gdb.reverse/i386-avx-reverse.exp to test these
new instructions.  The test always uses ymm because the vpunpck
instructions overwrite the high bits, so we have to be able to record
the full ymm register, not just the output size.

Approved-By: Tom Tromey <tom@tromey.com>
gdb/i386-tdep.c
gdb/testsuite/gdb.reverse/i386-avx-reverse.c
gdb/testsuite/gdb.reverse/i386-avx-reverse.exp