https://gcc.gnu.org/g:bf57f9b59904f517bced5307792358cc15c77f26

commit r15-5500-gbf57f9b59904f517bced5307792358cc15c77f26
Author: Rainer Orth <r...@cebitec.uni-bielefeld.de>
Date:   Wed Nov 20 12:54:22 2024 +0100

    testsuite: i386: Fix gcc.target/i386/pr117232-1.c etc. with Solaris as
    
    Two tests FAIL on Solaris/x86 with the native assembler:
    
    FAIL: gcc.target/i386/pr117232-1.c scan-assembler-times (?n)cmovn?c 7
    FAIL: gcc.target/i386/pr117232-apx-1.c scan-assembler-times (?n)cmovn?c 7
    
    The problem is that as expects a slightly different insn syntax, e.g.
    
            cmovl.nc        %esi, %eax
    
    instead of
    
            cmovnc  %esi, %eax
    
    This patch allows for both forms.
    
    Tested on i386-pc-solaris2.11 (as and gas) and x86_64-pc-linux-gnu.
    
    2024-11-15  Rainer Orth  <r...@cebitec.uni-bielefeld.de>
    
            gcc/testsuite:
            * gcc.target/i386/pr117232-1.c (scan-assembler-times): Allow for
            cmovl.nc etc.
            * gcc.target/i386/pr117232-apx-1.c: Likewise.

Diff:
---
 gcc/testsuite/gcc.target/i386/pr117232-1.c     | 2 +-
 gcc/testsuite/gcc.target/i386/pr117232-apx-1.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/testsuite/gcc.target/i386/pr117232-1.c 
b/gcc/testsuite/gcc.target/i386/pr117232-1.c
index cd7f5d112a79..0cf1cad9069d 100644
--- a/gcc/testsuite/gcc.target/i386/pr117232-1.c
+++ b/gcc/testsuite/gcc.target/i386/pr117232-1.c
@@ -1,7 +1,7 @@
 /* { dg-do compile } */
 /* { dg-options "-mavx512bw -mavx512vl -mavx512dq -O2" } */
 /* { dg-final { scan-assembler-times {(?n)kortest[bwqd]} 7 { target { ! ia32 } 
} } } */
-/* { dg-final { scan-assembler-times {(?n)cmovn?c} 7 { target { ! ia32 } } } } 
*/
+/* { dg-final { scan-assembler-times {(?n)cmov([lq]\.)?n?c} 7 { target { ! 
ia32 } } } } */
 
 #include <immintrin.h>
 int
diff --git a/gcc/testsuite/gcc.target/i386/pr117232-apx-1.c 
b/gcc/testsuite/gcc.target/i386/pr117232-apx-1.c
index e3571adf6dd2..57ac9b81dfda 100644
--- a/gcc/testsuite/gcc.target/i386/pr117232-apx-1.c
+++ b/gcc/testsuite/gcc.target/i386/pr117232-apx-1.c
@@ -1,7 +1,7 @@
 /* { dg-do compile { target { ! ia32 } } } */
 /* { dg-options "-mavx512bw -mavx512vl -mavx512dq -mapxf -O2" } */
 /* { dg-final { scan-assembler-times {(?n)kortest[bwqd]} 7 } } */
-/* { dg-final { scan-assembler-times {(?n)cmovn?c} 7 } } */
+/* { dg-final { scan-assembler-times {(?n)cmov([lq]\.)?n?c} 7 } } */
 
 #include <immintrin.h>

Reply via email to