[Bug testsuite/126923] Additional testsuite failures when configured with --with-arch=native --with-cpu=native

"cvs-commit at gcc dot gnu.org via Gcc-bugs" <[email protected]>
Newsgroups gmane.comp.gcc.bugs
Message-ID <[email protected]/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126923

--- Comment #12 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by H.J. Lu <[email protected]>:

https://gcc.gnu.org/g:af0589fd6c43f1945c023c7153337b71809eaf87

commit r17-3452-gaf0589fd6c43f1945c023c7153337b71809eaf87
Author: H.J. Lu <[email protected]>
Date:   Thu Aug 20 07:44:54 2026 +0800

    x86: Compile some check-function-bodies tests with -mtune=generic

    Compile some check-function-bodies tests with -mtune=generic to avoid

    FAIL: gcc.target/i386/memset-pr120683-10.c check-function-bodies foo
    FAIL: gcc.target/i386/memset-pr120683-12.c check-function-bodies foo
    FAIL: gcc.target/i386/pr122343-1b.c check-function-bodies foo
    FAIL: gcc.target/i386/pr122343-5b.c check-function-bodies foo

    due to the generated sequence

            movq    $0, 29(%rdi)
            movq    $0, 37(%rdi)
            movq    $0, 45(%rdi)
            movq    $0, 53(%rdi)
            movq    $0, (%rdi)
            movq    $0, 8(%rdi)
            movq    $0, 16(%rdi)
            movq    $0, 24(%rdi)

    vs the expected sequence

            movq    $0, 48(%rdi)
            movq    $0, (%rdi)
            movq    $0, 8(%rdi)
            movq    $0, 16(%rdi)
            movq    $0, 24(%rdi)
            movq    $0, 32(%rdi)
            movq    $0, 40(%rdi)
            movq    $0, 53(%rdi)

    when a different tuning is enabled by default.

            PR testsuite/126923
            * gcc.target/i386/memset-pr120683-10.c (dg-options): Add
            -mtune=generic.
            * gcc.target/i386/memset-pr120683-12.c (dg-options): Likewise.
            * gcc.target/i386/pr122343-1b.c (dg-options): Likewise.
            * gcc.target/i386/pr122343-5b.c (dg-options): Likewise.

    Signed-off-by: H.J. Lu <[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.