bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gas/26685] Error: invalid register operand size for `movdir64b'


From: hjl.tools at gmail dot com
Subject: [Bug gas/26685] Error: invalid register operand size for `movdir64b'
Date: Thu, 01 Oct 2020 14:53:25 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=26685

--- Comment #16 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Jan Beulich from comment #15)
> (In reply to H.J. Lu from comment #14)
> > (In reply to Jan Beulich from comment #13)
> > > What is needed is some sort of flag to indicate that in this specific case
> > > it needs to be foo(%eip).
> > 
> > No, we don't want 0x67 prefix for RIP-relative addressing for x32.
> 
> You did read me writing "in this specific case", didn't you? I understand
> you don't want this in the general case. The way your (broken) change was
> written, you very much get a 0x67 prefix in this specific case, so I don't
> understand at all what you're trying to tell me.

GNU assembler serves GCC.  GCC doesn't use (%eip) and GCC always
uses (%rip) for RIP-relative addressing.  Assembler should extract
the address size prefix from the register operand here.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]