[gcc r17-3456] fuse-caller-save-xmm.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:b9b438b83428288d9939d1cee01cef86351104f0

commit r17-3456-gb9b438b83428288d9939d1cee01cef86351104f0
Author: H.J. Lu <[email protected]>
Date:   Thu Aug 20 14:28:07 2026 +0800

    fuse-caller-save-xmm.c: Disable TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
    
    Disable TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for fuse-caller-save-xmm.c
    to avoid
    
    FAIL: gcc.target/i386/fuse-caller-save-xmm.c scan-assembler-times movapd\t%xmm0, %xmm1 1
    
    due to the generated instruction
    
            movaps  %xmm0, %xmm1
    
    vs the expected instruction
    
            movapd  %xmm0, %xmm1
    
    when TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL is enabled by default.
    
            PR testsuite/126923
            * gcc.target/i386/fuse-caller-save-xmm.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/fuse-caller-save-xmm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/testsuite/gcc.target/i386/fuse-caller-save-xmm.c b/gcc/testsuite/gcc.target/i386/fuse-caller-save-xmm.c
index b0d3dc38a0cb..2b616ddd993e 100644
--- a/gcc/testsuite/gcc.target/i386/fuse-caller-save-xmm.c
+++ b/gcc/testsuite/gcc.target/i386/fuse-caller-save-xmm.c
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-O2 -msse2 -mno-avx -fipa-ra -fomit-frame-pointer" } */
+/* { dg-options "-O2 -msse2 -mno-avx -mtune-ctrl=^sse_packed_single_insn_optimal -fipa-ra -fomit-frame-pointer" } */
 
 typedef double v2df __attribute__((vector_size (16)));
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.