On Mon, Oct 27, 2025 at 4:33 PM Jiang, Haochen <[email protected]> wrote:
>
> On Linux/x86_64,
>
> 653977c4a31643497655600688ff238b734f7512 is the first bad commit
> commit 653977c4a31643497655600688ff238b734f7512
> Author: H.J. Lu <[email protected]>
> Date:   Sun Oct 19 09:13:52 2025 +0800
>
>     x86: Optimize copysign (x, const_double)
>
> caused
>
> FAIL: gcc.target/i386/builtin-copysign-8b.c check-function-bodies foo
>
> with GCC configured with
>
> ../../gcc/configure 
> --prefix=/export/users3/haochenj/src/gcc-bisect/gcc-15/releases/gcc-15/r15-10443/usr
>  --enable-clocale=gnu --with-system-zlib --with-demangler-in-ld 
> --with-fpmath=sse --enable-languages=c,c++,fortran --enable-cet --without-isl 
> --enable-libmpx x86_64-linux --disable-bootstrap
>
> To reproduce:
>
> $ cd {build_dir}/gcc && make check 
> RUNTESTFLAGS="i386.exp=gcc.target/i386/builtin-copysign-8b.c 
> --target_board='unix{-m64\ -march=cascadelake}'"

Compile builtin-copysign-8b.c with -mtune=generic so that it passes with

$ make check-gcc RUNTESTFLAGS="i386.exp=builtin-copysign-8b.c
--target_board='unix{-m64\ -march=cascadelake}'"

PR target/122323
* gcc.target/i386/builtin-copysign-8b.c: Add -mtune=generic.

-- 
H.J.
From 50c5172c4e6eeff6c14f1de84bbf98e62375b570 Mon Sep 17 00:00:00 2001
From: "H.J. Lu" <[email protected]>
Date: Mon, 27 Oct 2025 18:11:25 +0800
Subject: [PATCH] x86: Compile builtin-copysign-8b.c with -mtune=generic

Compile builtin-copysign-8b.c with -mtune=generic so that it passes with

$ make check-gcc RUNTESTFLAGS="i386.exp=builtin-copysign-8b.c --target_board='unix{-m64\ -march=cascadelake}'"

	PR target/122323
	* gcc.target/i386/builtin-copysign-8b.c: Add -mtune=generic.

Signed-off-by: H.J. Lu <[email protected]>
---
 gcc/testsuite/gcc.target/i386/builtin-copysign-8b.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/testsuite/gcc.target/i386/builtin-copysign-8b.c b/gcc/testsuite/gcc.target/i386/builtin-copysign-8b.c
index 8f0cb27a246..dc9e46121de 100644
--- a/gcc/testsuite/gcc.target/i386/builtin-copysign-8b.c
+++ b/gcc/testsuite/gcc.target/i386/builtin-copysign-8b.c
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-O2 -mno-avx512f -mavx" } */
+/* { dg-options "-O2 -mno-avx512f -mavx -mtune=generic" } */
 /* Keep labels and directives ('.cfi_startproc', '.cfi_endproc').  */
 /* { dg-final { check-function-bodies "**" "" "" { target { ! ia32 } } {^\t?\.} } } */
 
-- 
2.51.1

Reply via email to