[COMMITTED, PATCH] gcc.target/i386/abi-mix-1.c: Compile with -mno-avx

"H.J. Lu" <[email protected]>
Newsgroups gmane.comp.gcc.patches
Message-ID <CAMe9rOq=H-oYR=GHJb6xkns5Ew6g1mVuEvVPSzZQbdOAA7BQxQ@mail.gmail.com>
Compile gcc.target/i386/abi-mix-1.c with -mno-avx to avoid:

.../gcc.target/i386/abi-mix-1.c:16:1: sorry, unimplemented: AVX512
instructions aren't allowed in a function with the
'no_caller_saved_registers' attribute

when AVX512 is enabled by default.

PR testsuite/126923
* gcc.target/i386/abi-mix-1.c (dg-options): Add -mno-avx.
-- 
H.J.
0001-gcc.target-i386-abi-mix-1.c-Compile-with-mno-avx.patch (text/x-patch, 1.2 KB)
From e037c0d4d9761bba1e4a03c0142f8ba173a51d75 Mon Sep 17 00:00:00 2001
From: "H.J. Lu" <[email protected]>
Date: Thu, 20 Aug 2026 05:59:04 +0800
Subject: [PATCH] gcc.target/i386/abi-mix-1.c: Compile with -mno-avx

Compile gcc.target/i386/abi-mix-1.c with -mno-avx to avoid:

.../gcc.target/i386/abi-mix-1.c:16:1: sorry, unimplemented: AVX512 instructions aren't allowed in a function with the 'no_caller_saved_registers' attribute

when AVX512 is enabled by default.

	PR testsuite/126923
	* gcc.target/i386/abi-mix-1.c (dg-options): Add -mno-avx.

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

diff --git a/gcc/testsuite/gcc.target/i386/abi-mix-1.c b/gcc/testsuite/gcc.target/i386/abi-mix-1.c
index ae00e2ba3a1..d9e36bbde63 100644
--- a/gcc/testsuite/gcc.target/i386/abi-mix-1.c
+++ b/gcc/testsuite/gcc.target/i386/abi-mix-1.c
@@ -1,5 +1,5 @@
 /* { dg-do compile { target { ! x32 } } } */
-/* { dg-options "-O2 -masm=att -mno-mmx -mno-80387 -msse" } */
+/* { dg-options "-O2 -masm=att -mno-avx -mno-mmx -mno-80387 -msse" } */
 
 extern void callee_clobbered () [[gnu::preserve_none]];
 extern void callee_preserved () [[gnu::no_caller_saved_registers]];
-- 
2.55.0
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.