Compile gcc.target/i386/pr84876.c with -mno-avx512f to disable xmm16-xm31
registers to get the expected error:

../gcc.target/i386/pr84876.c:6:3: error: ‘asm’ operand has impossible
constraints or there are not enough registers

when AVX512F is enabled by default.

PR testsuite/126923
* gcc.target/i386/pr84876.c (dg-options): Add -mno-avx512f.

-- 
H.J.
From a74e7a793fe89056de7ee1bfea736e0300cc7b01 Mon Sep 17 00:00:00 2001
From: "H.J. Lu" <[email protected]>
Date: Thu, 20 Aug 2026 14:45:05 +0800
Subject: [PATCH] gcc.target/i386/pr84876.c: Compile with -mno-avx512f
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Compile gcc.target/i386/pr84876.c with -mno-avx512f to disable xmm16-xm31
registers to get the expected error:

../gcc.target/i386/pr84876.c:6:3: error: ‘asm’ operand has impossible constraints or there are not enough registers

when AVX512F is enabled by default.

	PR testsuite/126923
	* gcc.target/i386/pr84876.c (dg-options): Add -mno-avx512f.

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

diff --git a/gcc/testsuite/gcc.target/i386/pr84876.c b/gcc/testsuite/gcc.target/i386/pr84876.c
index f2d84301003..a552f24b0e5 100644
--- a/gcc/testsuite/gcc.target/i386/pr84876.c
+++ b/gcc/testsuite/gcc.target/i386/pr84876.c
@@ -1,5 +1,5 @@
 /* { dg-do compile { target int128 } } */
-/* { dg-options "-w" } */
+/* { dg-options "-mno-avx512f -w" } */
 
 __int128 test (__int128 a)
 {
-- 
2.55.0

Reply via email to