[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gas/26685] Error: invalid register operand size for `movdir64b'
From: |
jbeulich at suse dot com |
Subject: |
[Bug gas/26685] Error: invalid register operand size for `movdir64b' |
Date: |
Thu, 01 Oct 2020 08:25:27 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=26685
Jan Beulich <jbeulich at suse dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jbeulich at suse dot com
--- Comment #3 from Jan Beulich <jbeulich at suse dot com> ---
(In reply to H.J. Lu from comment #0)
> [hjl@gnu-cfl-2 gcc]$ cat x.s
> movdir64b (%rdx), %rax
> movdir64b (%edx), %eax
> movdir64b foo(%rip), %rax
> movdir64b foo(%eip), %eax
> movdir64b foo(%rip), %eax
> [hjl@gnu-cfl-2 gcc]$ gcc -c x.s
> x.s: Assembler messages:
> x.s:5: Error: invalid register operand size for `movdir64b'
Which is intended, expected, and correct behavior.
> [hjl@gnu-cfl-2 gcc]$
>
> movdir64b foo(%rip), %eax
>
> should be treated as
>
> movdir64b foo(%eip), %eax
We should not silently change what the programmer has (mistakenly) written, as
it's ambiguous what would be meant: Could be they meant 32-bit addressing, but
could also be they means 64-bit one.
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug gas/26685] Error: invalid register operand size for `movdir64b',
jbeulich at suse dot com <=
- [Bug gas/26685] Error: invalid register operand size for `movdir64b', hjl.tools at gmail dot com, 2020/10/01
- [Bug gas/26685] Error: invalid register operand size for `movdir64b', jbeulich at suse dot com, 2020/10/01
- [Bug gas/26685] Error: invalid register operand size for `movdir64b', hjl.tools at gmail dot com, 2020/10/01
- [Bug gas/26685] Error: invalid register operand size for `movdir64b', jbeulich at suse dot com, 2020/10/01
- [Bug gas/26685] Error: invalid register operand size for `movdir64b', hjl.tools at gmail dot com, 2020/10/01
- [Bug gas/26685] Error: invalid register operand size for `movdir64b', jbeulich at suse dot com, 2020/10/01
- [Bug gas/26685] Error: invalid register operand size for `movdir64b', hjl.tools at gmail dot com, 2020/10/01
- [Bug gas/26685] Error: invalid register operand size for `movdir64b', jbeulich at suse dot com, 2020/10/01
- [Bug gas/26685] Error: invalid register operand size for `movdir64b', hjl.tools at gmail dot com, 2020/10/01
- [Bug gas/26685] Error: invalid register operand size for `movdir64b', jbeulich at suse dot com, 2020/10/01