PATCH] xorps-sse2.c: Disable TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
"H.J. Lu" <[email protected]>
| Newsgroups | gmane.comp.gcc.patches |
|---|---|
| Message-ID | <CAMe9rOq_EaVR=siG4giU3hG41hFYJqrmn+OXvWjZjOAZ_ik=vA@mail.gmail.com> |
Disable TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for xorps-sse2.c to avoid FAIL: gcc.target/i386/xorps-sse2.c scan-assembler-not pxor FAIL: gcc.target/i386/xorps-sse2.c scan-assembler xorps[ \t] when TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL is enabled by default. PR testsuite/126923 * gcc.target/i386/xorps-sse2.c (dg-options): Add -mtune-ctrl=^sse_packed_single_insn_optimal. -- H.J.
0001-xorps-sse2.c-Disable-TARGET_SSE_PACKED_SINGLE_INSN_O.patch
(text/x-patch, 1.3 KB)
From e074e4b7bbf849e9ff8e8cd13a4c15abd2b266de Mon Sep 17 00:00:00 2001 From: "H.J. Lu" <[email protected]> Date: Wed, 19 Aug 2026 06:18:43 +0800 Subject: [PATCH] xorps-sse2.c: Disable TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL Disable TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for xorps-sse2.c to avoid FAIL: gcc.target/i386/xorps-sse2.c scan-assembler-not pxor FAIL: gcc.target/i386/xorps-sse2.c scan-assembler xorps[ \t] when TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL is enabled by default. PR testsuite/126923 * gcc.target/i386/xorps-sse2.c (dg-options): Add -mtune-ctrl=^sse_packed_single_insn_optimal. Signed-off-by: H.J. Lu <[email protected]> --- gcc/testsuite/gcc.target/i386/xorps-sse2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.target/i386/xorps-sse2.c b/gcc/testsuite/gcc.target/i386/xorps-sse2.c index b9576d9700f..b3bc6dcaf76 100644 --- a/gcc/testsuite/gcc.target/i386/xorps-sse2.c +++ b/gcc/testsuite/gcc.target/i386/xorps-sse2.c @@ -1,6 +1,6 @@ /* Test that we generate xorps when the result is used in FP math. */ /* { dg-do compile } */ -/* { dg-options "-O -msse2 -mno-sse3" } */ +/* { dg-options "-O -msse2 -mno-sse3 -mtune-ctrl=^sse_packed_single_insn_optimal" } */ /* { dg-final { scan-assembler "xorps\[ \t\]" } } */ /* { dg-final { scan-assembler-not "pxor" } } */ -- 2.55.0