[Bug target/124461] Error: no such instruction: `movrsl eax,DWORD PTR [rax]' with -mmovrs -masm=intel
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Mar 13 08:19:37 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124461
--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jakub Jelinek <jakub@gcc.gnu.org>:
https://gcc.gnu.org/g:418e161083a162721488468f3a50f739becb1700
commit r16-8073-g418e161083a162721488468f3a50f739becb1700
Author: Jakub Jelinek <jakub@redhat.com>
Date: Fri Mar 13 09:16:26 2026 +0100
i386: Fix up movrs<mode> suffix for -masm=intel [PR124461]
For movrs<mode> the insn was using insn suffix unconditionally, so
movrsl or movrsq even for -masm=intel, when gas expects movrs and derives
what size of insn it is from the operands.
There is no movrs effective target, so I've just used dg-do compile with
scan-assembler to test it instead of dg-do assemble.
2026-03-13 Jakub Jelinek <jakub@redhat.com>
PR target/124461
* config/i386/i386.md (movrs<mode>): Use <imodesuffix> only for
-masm=att, not for -masm=intel.
* gcc.target/i386/movrs-pr124461.c: New test.
Reviewed-by: Uros Bizjak <ubizjak@gmail.com>
More information about the Gcc-bugs
mailing list