aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorUros Bizjak <ubizjak@gmail.com>2020-02-06 18:21:50 +0100
committerUros Bizjak <ubizjak@gmail.com>2020-02-06 18:21:50 +0100
commit88ec0e8dbe6be8ac466c15ee057a8b1d4926fa8e (patch)
treeac8d6c56dd3373075300dd160901c3c131cf3c88 /gcc
parent4a136a214ede91ef05caac017814b142883dc80d (diff)
downloadgcc-88ec0e8dbe6be8ac466c15ee057a8b1d4926fa8e.zip
gcc-88ec0e8dbe6be8ac466c15ee057a8b1d4926fa8e.tar.gz
gcc-88ec0e8dbe6be8ac466c15ee057a8b1d4926fa8e.tar.bz2
Unify gcc.target/i386/memcpy scan strings.
After -fno-common became the default, we can unify various scan strings between 64bit and 32bit targets. * gcc.target/i386/memcpy-strategy-1.c (dg-final): Unify scan-assembler strings for all targets. * gcc.target/i386/memcpy-strategy-2.c (dg-final): Ditto. * gcc.target/i386/memcpy-strategy-3.c (dg-final): Ditto. * gcc.target/i386/memcpy-vector_loop-1.c (dg-final): Ditto.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/gcc.target/i386/memcpy-strategy-1.c3
-rw-r--r--gcc/testsuite/gcc.target/i386/memcpy-strategy-2.c3
-rw-r--r--gcc/testsuite/gcc.target/i386/memcpy-strategy-3.c5
-rw-r--r--gcc/testsuite/gcc.target/i386/memcpy-vector_loop-1.c3
4 files changed, 4 insertions, 10 deletions
diff --git a/gcc/testsuite/gcc.target/i386/memcpy-strategy-1.c b/gcc/testsuite/gcc.target/i386/memcpy-strategy-1.c
index 48d0b77..6ac80c9 100644
--- a/gcc/testsuite/gcc.target/i386/memcpy-strategy-1.c
+++ b/gcc/testsuite/gcc.target/i386/memcpy-strategy-1.c
@@ -1,8 +1,7 @@
/* { dg-do compile } */
/* { dg-skip-if "" { *-*-* } { "-march=*" } { "-march=atom" } } */
/* { dg-options "-O2 -march=atom -mmemcpy-strategy=vector_loop:-1:align" } */
-/* { dg-final { scan-assembler-times "movdqa" 8 { target { ! ia32 } } } } */
-/* { dg-final { scan-assembler-times "movdqa" 4 { target ia32 } } } */
+/* { dg-final { scan-assembler-times "movdqa" 8 } } */
char a[2048];
char b[2048];
diff --git a/gcc/testsuite/gcc.target/i386/memcpy-strategy-2.c b/gcc/testsuite/gcc.target/i386/memcpy-strategy-2.c
index 9e26ea996..c103896 100644
--- a/gcc/testsuite/gcc.target/i386/memcpy-strategy-2.c
+++ b/gcc/testsuite/gcc.target/i386/memcpy-strategy-2.c
@@ -1,8 +1,7 @@
/* { dg-do compile } */
/* { dg-skip-if "" { *-*-* } { "-march=*" } { "-march=atom" } } */
/* { dg-options "-O2 -march=atom -mmemcpy-strategy=vector_loop:3000:align,libcall:-1:align" } */
-/* { dg-final { scan-assembler-times "movdqa" 8 { target { ! ia32 } } } } */
-/* { dg-final { scan-assembler-times "movdqa" 4 { target ia32 } } } */
+/* { dg-final { scan-assembler-times "movdqa" 8 } } */
char a[2048];
char b[2048];
diff --git a/gcc/testsuite/gcc.target/i386/memcpy-strategy-3.c b/gcc/testsuite/gcc.target/i386/memcpy-strategy-3.c
index 11687e8..2d72155 100644
--- a/gcc/testsuite/gcc.target/i386/memcpy-strategy-3.c
+++ b/gcc/testsuite/gcc.target/i386/memcpy-strategy-3.c
@@ -1,9 +1,6 @@
/* { dg-do compile } */
/* { dg-options "-O2 -march=atom -mmemcpy-strategy=vector_loop:2000:align,libcall:-1:align" } */
-/* On ELF platforms, one hit comes from the .file directive. */
-/* { dg-final { scan-assembler-times "memcpy" 2 { target { ! *-*-darwin* } } } } */
-/* But not on Darwin, which doesn't have a .file directive by default. */
-/* { dg-final { scan-assembler-times "_memcpy" 1 { target *-*-darwin* } } } */
+/* { dg-final { scan-assembler-times "call\[\\t \]*_?memcpy" 1 } } */
char a[2048];
char b[2048];
diff --git a/gcc/testsuite/gcc.target/i386/memcpy-vector_loop-1.c b/gcc/testsuite/gcc.target/i386/memcpy-vector_loop-1.c
index 113c876..93f428a 100644
--- a/gcc/testsuite/gcc.target/i386/memcpy-vector_loop-1.c
+++ b/gcc/testsuite/gcc.target/i386/memcpy-vector_loop-1.c
@@ -1,8 +1,7 @@
/* { dg-do compile } */
/* { dg-skip-if "" { *-*-* } { "-march=*" } { "-march=atom" } } */
/* { dg-options "-O2 -march=atom -minline-all-stringops -mstringop-strategy=vector_loop" } */
-/* { dg-final { scan-assembler-times "movdqa" 8 { target { ! ia32 } } } } */
-/* { dg-final { scan-assembler-times "movdqa" 4 { target ia32 } } } */
+/* { dg-final { scan-assembler-times "movdqa" 8 } } */
char a[2048];
char b[2048];