Since x32 uses (%edx), instead of (%rdx), also scan (%edx). * gcc.target/i386/invariant-ternlog-1.c: Also scan (%edx).
-- H.J.
From eb27c432407702cf18c460dac08696d80851e729 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" <hjl.to...@gmail.com> Date: Sat, 12 Oct 2024 05:04:33 +0800 Subject: [PATCH] gcc.target/i386/invariant-ternlog-1.c: Also scan (%edx) Since x32 uses (%edx), instead of (%rdx), also scan (%edx). * gcc.target/i386/invariant-ternlog-1.c: Also scan (%edx). Signed-off-by: H.J. Lu <hjl.to...@gmail.com> --- gcc/testsuite/gcc.target/i386/invariant-ternlog-1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.target/i386/invariant-ternlog-1.c b/gcc/testsuite/gcc.target/i386/invariant-ternlog-1.c index bf67ed7e43d..77b95d3bb33 100644 --- a/gcc/testsuite/gcc.target/i386/invariant-ternlog-1.c +++ b/gcc/testsuite/gcc.target/i386/invariant-ternlog-1.c @@ -1,7 +1,7 @@ /* { dg-do compile } */ /* { dg-options "-mavx512f -O2" } */ /* { dg-final { scan-assembler-times "vmovdqa" 4 } } */ -/* { dg-final { scan-assembler-times {vpternlog[^\n\r]*\(%rdx\)} 2 { target { ! ia32 } } } } */ +/* { dg-final { scan-assembler-times {vpternlog[^\n\r]*\(%(?:r|e)dx\)} 2 { target { ! ia32 } } } } */ #include <immintrin.h> -- 2.47.0