[PATCH 3/3] Enable Intel MOVDIRI, MOVDIR64B instructions.

Jan Beulich JBeulich@suse.com
Fri Apr 27 12:14:00 GMT 2018


>>> On 27.04.18 at 12:06, <igor.v.tsimbalist@intel.com> wrote:
>> From: Jan Beulich [mailto:JBeulich@suse.com]
>> Sent: Friday, April 27, 2018 8:41 AM
>> >>> On 26.04.18 at 21:49, <igor.v.tsimbalist@intel.com> wrote:
>> >--- /dev/null
>> >+++ b/gas/testsuite/gas/i386/x86-64-movdir-intel.d
>> >@@ -0,0 +1,18 @@
>> >+#as:
>> >+#objdump: -dw -Mintel
>> >+#name: x86_64 MOVDIR[I,64B] insns (Intel disassembly)
>> >+#source: x86-64-movdir.s
>> >+
>> >+.*: +file format .*
>> >+
>> >+
>> >+Disassembly of section \.text:
>> >+
>> >+0+ <_start>:
>> >+[ 	]*[a-f0-9]+:[ 	]*48 0f 38 f9 01[ 	]*rex\.W movdiri QWORD PTR
>> \[rcx\],rax
>> >+[ 	]*[a-f0-9]+:[ 	]*66 0f 38 f8 01[ 	]*movdir64b rax,\[rcx\]
>> >+[ 	]*[a-f0-9]+:[ 	]*67 66 0f 38 f8 01[ 	]*movdir64b eax,\[ecx]
>> >+[ 	]*[a-f0-9]+:[ 	]*48 0f 38 f9 01[ 	]*rex\.W movdiri QWORD PTR
>> \[rcx\],rax
>> 
>> What are the REX.W doing here (also in the AT&T counterpart)?
> 
> The spec definitely says REX.W has to be used to promote operation to 64bit.

Of course, but you shouldn't display them that way in the disassembly. No
other insns do; the register name clarifies what size operands we're dealing
with.

Jan




More information about the Binutils mailing list