[PATCH] uintr-4.c: Check SSE, AVX or AVX512 in the error message
"H.J. Lu" <[email protected]>
| Newsgroups | gmane.comp.gcc.patches |
|---|---|
| Message-ID | <CAMe9rOpXtUOWmmk0EngCiugZjdZ9tU6cv-ki4pwcnMyxVWNHbA@mail.gmail.com> |
When AVX or AVX512F is enabled by default, we get the error message sorry, unimplemented: AVX instructions aren’t allowed in an exception service routine or sorry, unimplemented: AVX512 instructions aren’t allowed in an exception service routine instead of sorry, unimplemented: SSE instructions aren’t allowed in an exception service routine Update to check SSE, AVX or AVX512 in the expected error message. PR target/126959 * gcc.target/i386/uintr-4.c: Check SSE, AVX or AVX512 in the expected error message. -- H.J.
0001-uintr-4.c-Check-SSE-AVX-or-AVX512-in-the-error-messa.patch
(text/x-patch, 1.6 KB)
From 5a067003f2af8a0df368eb853a82f8ea7c67fbad Mon Sep 17 00:00:00 2001 From: "H.J. Lu" <[email protected]> Date: Thu, 20 Aug 2026 15:12:29 +0800 Subject: [PATCH] uintr-4.c: Check SSE, AVX or AVX512 in the error message MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When AVX or AVX512F is enabled by default, we get the error message sorry, unimplemented: AVX instructions aren’t allowed in an exception service routine or sorry, unimplemented: AVX512 instructions aren’t allowed in an exception service routine instead of sorry, unimplemented: SSE instructions aren’t allowed in an exception service routine Update to check SSE, AVX or AVX512 in the expected error message. PR target/126959 * gcc.target/i386/uintr-4.c: Check SSE, AVX or AVX512 in the expected error message. Signed-off-by: H.J. Lu <[email protected]> --- gcc/testsuite/gcc.target/i386/uintr-4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.target/i386/uintr-4.c b/gcc/testsuite/gcc.target/i386/uintr-4.c index 4d0ec34dfa0..d5cf29f7a68 100644 --- a/gcc/testsuite/gcc.target/i386/uintr-4.c +++ b/gcc/testsuite/gcc.target/i386/uintr-4.c @@ -7,5 +7,5 @@ typedef unsigned int uword_t __attribute__ ((mode (__word__))); void __attribute__ ((interrupt)) UINTR_handler (struct __uintr_frame *p, uword_t uirrv) -{ /* { dg-message "SSE instructions aren't allowed in an exception service routine" } */ +{ /* { dg-message "(SSE|AVX|AVX512) instructions aren't allowed in an exception service routine" } */ } -- 2.55.0