[gcc r17-3444] gcc.target/i386/abi-mix-1.c: Compile with -mno-avx

"H.J. Lu via Gcc-cvs" <[email protected]>
Newsgroups gmane.comp.gcc.cvs
Message-ID <[email protected]>
https://gcc.gnu.org/g:9324e8bfc8747f73b5a6bc2758c21827dbe6fe51

commit r17-3444-g9324e8bfc8747f73b5a6bc2758c21827dbe6fe51
Author: H.J. Lu <[email protected]>
Date:   Thu Aug 20 05:59:04 2026 +0800

    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]>

Diff:
---
 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 ae00e2ba3a16..d9e36bbde638 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]];
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.