[Bug target/124315] wrong asm generated for vfnmadd231sh / vfnmadd231sd with -masm=intel

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Mar 3 08:52:31 GMT 2026


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124315

--- Comment #6 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:19e1192b1f867bfe3aba6de10d0c68f6be5d7677

commit r16-7860-g19e1192b1f867bfe3aba6de10d0c68f6be5d7677
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Tue Mar 3 09:51:33 2026 +0100

    i386: Fix up some FMA patterns for -masm=intel [PR124315]

    The following 4 define_insns don't have matching operands between AT&T and
    Intel syntax, %3 is "0" and %1 was missing.
    Searched grep '%0%{%4%}|%0%{%4%}' *.md and didn't find other spots where
    the operand numbers wouldn't match (reverse order of course).

    2026-03-03  Jakub Jelinek  <jakub@redhat.com>

            PR target/124315
            * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask3<round_name>,
            avx512f_vmfmsub_<mode>_mask3<round_name>,
            avx512f_vmfnmadd_<mode>_mask3<round_name>,
            avx512f_vmfnmsub_<mode>_mask3<round_name>): Use %<iptr>1 instead of
            %<iptr>3 in -masm=intel syntax.

            * gcc.target/i386/avx512f-pr124315.c: New test.


More information about the Gcc-bugs mailing list