]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
x86: zap value-less Disp8MemShift from non-EVEX templates
authorJan Beulich <jbeulich@suse.com>
Fri, 3 May 2024 07:24:48 +0000 (09:24 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 3 May 2024 07:24:48 +0000 (09:24 +0200)
commitd125c4bbce8398819df573754c2bf1224a15ec06
tree9e5ea2c29f888a070be461f8ad2f97b1ec04f281
parent84a069db6714ddcf444095ed09dbcd7404834694
x86: zap value-less Disp8MemShift from non-EVEX templates

In order to allow to continue to use templatized SSE2AVX templates when
enhancing those to also cover eGPR usage, Disp8MemShift wants using to
deviate from what general template attributes supply. That requires
using Disp8MemShift in a way also affecting non-EVEX templates, yet
having this attribute set would so far implicitly mean EVEX encoding.
Recognize the case and instead zap the attribute if no other attribute
indicates EVEX encoding.

No change in generated tables.
opcodes/i386-gen.c