[gcc r17-3452] x86: Compile some check-function-bodies tests with -mtune=generic
"H.J. Lu via Gcc-cvs" <[email protected]>
| Newsgroups | gmane.comp.gcc.cvs |
|---|---|
| Message-ID | <[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]> Diff: --- gcc/testsuite/gcc.target/i386/memset-pr120683-10.c | 2 +- gcc/testsuite/gcc.target/i386/memset-pr120683-12.c | 2 +- gcc/testsuite/gcc.target/i386/pr122343-1b.c | 2 +- gcc/testsuite/gcc.target/i386/pr122343-5b.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gcc/testsuite/gcc.target/i386/memset-pr120683-10.c b/gcc/testsuite/gcc.target/i386/memset-pr120683-10.c index a450dbbe3364..cf4313397e17 100644 --- a/gcc/testsuite/gcc.target/i386/memset-pr120683-10.c +++ b/gcc/testsuite/gcc.target/i386/memset-pr120683-10.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -mno-sse -mmemset-strategy=unrolled_loop:256:noalign,libcall:-1:noalign" } */ +/* { dg-options "-O2 -mno-sse -mtune=generic -mmemset-strategy=unrolled_loop:256:noalign,libcall:-1:noalign" } */ /* { dg-final { check-function-bodies "**" "*#" "" { target { lp64 && { ! *-*-darwin* } } } {^\t?\.} } } */ /* { dg-final { check-function-bodies "*D" "*E" "" { target { lp64 && *-*-darwin* } } {^\t?\.} } } */ diff --git a/gcc/testsuite/gcc.target/i386/memset-pr120683-12.c b/gcc/testsuite/gcc.target/i386/memset-pr120683-12.c index 15987a6451f8..daa1fe9232ef 100644 --- a/gcc/testsuite/gcc.target/i386/memset-pr120683-12.c +++ b/gcc/testsuite/gcc.target/i386/memset-pr120683-12.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -mno-sse -mmemset-strategy=unrolled_loop:256:noalign,libcall:-1:noalign" } */ +/* { dg-options "-O2 -mno-sse -mtune=generic -mmemset-strategy=unrolled_loop:256:noalign,libcall:-1:noalign" } */ /* Keep labels and directives ('.cfi_startproc', '.cfi_endproc'). */ /* { dg-final { check-function-bodies "**" "" "" { target lp64 } {^\t?\.} } } */ diff --git a/gcc/testsuite/gcc.target/i386/pr122343-1b.c b/gcc/testsuite/gcc.target/i386/pr122343-1b.c index a687ce7bf419..94801d08b893 100644 --- a/gcc/testsuite/gcc.target/i386/pr122343-1b.c +++ b/gcc/testsuite/gcc.target/i386/pr122343-1b.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -fomit-frame-pointer -fno-fuse-ops-with-volatile-access" } */ +/* { dg-options "-O2 -mtune=generic -fomit-frame-pointer -fno-fuse-ops-with-volatile-access" } */ /* { dg-additional-options "-mregparm=1" { target ia32 } } */ /* Keep labels and directives ('.cfi_startproc', '.cfi_endproc'). */ /* { dg-final { check-function-bodies "**" "*#" "" { target { ! *-*-darwin* } } {^\t?\.} } } */ diff --git a/gcc/testsuite/gcc.target/i386/pr122343-5b.c b/gcc/testsuite/gcc.target/i386/pr122343-5b.c index 16e8f05eaa3b..8a1a5649f276 100644 --- a/gcc/testsuite/gcc.target/i386/pr122343-5b.c +++ b/gcc/testsuite/gcc.target/i386/pr122343-5b.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -fomit-frame-pointer -fno-fuse-ops-with-volatile-access" } */ +/* { dg-options "-O2 -mtune=generic -fomit-frame-pointer -fno-fuse-ops-with-volatile-access" } */ /* { dg-additional-options "-mregparm=1" { target ia32 } } */ /* { dg-final { check-function-bodies "**" "*#" "" { target { ! *-*-darwin* } } {^\t?\.} } } */ /* { dg-final { check-function-bodies "*D" "*E" "" { target { *-*-darwin* && lp64 } } {^\t?\.} } } */