x86-64: honor REX prefixes for SSE2AVX
authorJan Beulich <jbeulich@suse.com>
Thu, 25 Jun 2020 07:25:52 +0000 (09:25 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 25 Jun 2020 07:25:52 +0000 (09:25 +0200)
commita5aeccd9d33b8cea1ca9145fdeb1be4978cadaeb
treeca0931b6ae2235fa6850a61a35a721da45d28ed0
parent40d231b4fbcb68d5906a949acd1d421123d74082
x86-64: honor REX prefixes for SSE2AVX

Legacy encoded insns do so, and their automatic conversion to AVX ones
ought to produce functionally identical code. Therefore explicit REX
prefixes cannot simply be ignored. This is in particular relevant
because at least PCMPESTR{I,M}'s 64-bit forms couldn't be expressed in
older gas by other than using a REX64 prefix.
gas/ChangeLog
gas/config/tc-i386.c
gas/testsuite/gas/i386/x86-64-sse2avx.d
gas/testsuite/gas/i386/x86-64-sse2avx.s