[gcc/devel/c++-coroutines] testsuite: Scan for SSE reg-reg moves only in pr80481.C

Iain D Sandoe iains@gcc.gnu.org
Tue Mar 10 20:55:19 GMT 2020


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

commit cfd90eb9ed01f652cb253c57ed6d13e96e9a5f47
Author: Uros Bizjak <ubizjak@gmail.com>
Date:   Tue Mar 10 17:39:21 2020 +0100

    testsuite: Scan for SSE reg-reg moves only in pr80481.C
    
    The function needs more than 8 SSE registers, avoid
    false positives triggered by SSE spills for 32bit targets.
    
            * g++.dg/pr80481.C (dg-final): Scan for SSE reg-reg moves only.

Diff:
---
 gcc/testsuite/ChangeLog        | 4 ++++
 gcc/testsuite/g++.dg/pr80481.C | 4 ++--
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 089874e5f7c..1935ebcde5a 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2020-03-10  Uroš Bizjak  <ubizjak@gmail.com>
+
+	* g++.dg/pr80481.C (dg-final): Scan for SSE reg-reg moves only.
+
 2020-03-10  Jeff Law  <law@redhat.com>
 
 	Revert:
diff --git a/gcc/testsuite/g++.dg/pr80481.C b/gcc/testsuite/g++.dg/pr80481.C
index c565ad24d90..78c463b8e3b 100644
--- a/gcc/testsuite/g++.dg/pr80481.C
+++ b/gcc/testsuite/g++.dg/pr80481.C
@@ -1,11 +1,9 @@
 // { dg-do compile { target { i?86-*-* x86_64-*-* }  && { ! *-*-solaris* } } }
 // { dg-options "-Ofast -funroll-loops -fopenmp -march=knl" }
-// { dg-final { scan-assembler-not "vmovaps" } }
 // Disabling epilogues until we find a better way to deal with scans.
 // { dg-additional-options "--param vect-epilogues-nomask=0" }
 
 
-
 #include <math.h>
 
 #include <xmmintrin.h>
@@ -72,3 +70,5 @@ void foo (Sdata *in, int idx, float *out)
   _mm_free(y3);
   _mm_free(y4);
 }
+
+// { dg-final { scan-assembler-not "vmovaps\[^\n\r]*zmm\[0-9]+,\[^\n\r]*zmm\[0-9]+" } }


More information about the Gcc-cvs mailing list