[gcc r17-3404] xorps-sse2.c: Disable TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL

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

commit r17-3404-gcb72b7b1a2f6c455c7602e4269eeca5701ccc167
Author: H.J. Lu <[email protected]>
Date:   Wed Aug 19 06:18:43 2026 +0800

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

Diff:
---
 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 b9576d9700f0..b3bc6dcaf762 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" } } */
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.