testsuite, darwin] Fix PR81058.
authorIain Sandoe <iain@sandoe.co.uk>
Sat, 11 May 2019 15:05:58 +0000 (15:05 +0000)
committerIain Sandoe <iains@gcc.gnu.org>
Sat, 11 May 2019 15:05:58 +0000 (15:05 +0000)
The tests fail because Darwin indirects common accesses which causes different
codegen and the mismatch in output. Placing the vars in regular .data section
fixes that.

gcc/testsuite/

2019-05-11  Iain Sandoe  <iain@sandoe.co.uk>

PR testsuite/81058
* gcc.target/i386/avx512bw-vpmovswb-1.c: Use regular data section
for variables on Darwin, rather than common.
* gcc.target/i386/avx512bw-vpmovuswb-1.c: Likewise.
* gcc.target/i386/avx512bw-vpmovwb-1.c: Likewise.

From-SVN: r271097

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/avx512bw-vpmovswb-1.c
gcc/testsuite/gcc.target/i386/avx512bw-vpmovuswb-1.c
gcc/testsuite/gcc.target/i386/avx512bw-vpmovwb-1.c

index 2efe608a93e96f0420ad003e2be05da2f74835d6..c082922d2c7f9b9ee5e496444d1d4d2d2af039a5 100644 (file)
@@ -1,3 +1,11 @@
+2019-05-11  Iain Sandoe  <iain@sandoe.co.uk>
+
+       PR testsuite/81058
+       * gcc.target/i386/avx512bw-vpmovswb-1.c: Use regular data section
+       for variables on Darwin, rather than common.
+       * gcc.target/i386/avx512bw-vpmovuswb-1.c: Likewise.
+       * gcc.target/i386/avx512bw-vpmovwb-1.c: Likewise.
+
 2019-05-11  Paolo Carlini  <paolo.carlini@oracle.com>
 
        * g++.dg/cpp2a/multiple-deleted-destroying-delete-error-1.C: New.
index 6bb87d25f4deeb88c83208f430d9994d778755b0..9d470c62b9ededc0dd96f0d0d1f0656ce07683c8 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "-mavx512bw -mavx512vl -O2" } */
+/* { dg-additional-options "-fno-common" { target *-*-darwin* } } */
 /* { dg-final { scan-assembler-times "vpmovswb\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+\[^\n\]*%xmm\[0-9\]+(?:\n|\[ \\t\]+#)" 1 } } */
 /* { dg-final { scan-assembler-times "vpmovswb\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+\[^\n\]*%xmm\[0-9\]+\{%k\[1-7\]\}(?:\n|\[ \\t\]+#)" 1 } } */
 /* { dg-final { scan-assembler-times "vpmovswb\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+\[^\n\]*%xmm\[0-9\]+\{%k\[1-7\]\}{z}(?:\n|\[ \\t\]+#)" 1 } } */
index 7825e46a9441fa7ec60cb6c8534c864b5edfaf4e..da51198ffe13be61e0be2f0ac5a6c0dfd2699400 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "-mavx512bw -mavx512vl -O2" } */
+/* { dg-additional-options "-fno-common" { target *-*-darwin* } } */
 /* { dg-final { scan-assembler-times "vpmovuswb\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+\[^\n\]*%xmm\[0-9\]+(?:\n|\[ \\t\]+#)" 1 } } */
 /* { dg-final { scan-assembler-times "vpmovuswb\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+\[^\n\]*%xmm\[0-9\]+\{%k\[1-7\]\}(?:\n|\[ \\t\]+#)" 1 } } */
 /* { dg-final { scan-assembler-times "vpmovuswb\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+\[^\n\]*%xmm\[0-9\]+\{%k\[1-7\]\}{z}(?:\n|\[ \\t\]+#)" 1 } } */
index a1ad551392b4800bd9b5689062545eacf6dfb4ca..e67da87b33d29bbb21daafc1f543cf2b255ca4e4 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "-mavx512bw -mavx512vl -O2" } */
+/* { dg-additional-options "-fno-common" { target *-*-darwin* } } */
 /* { dg-final { scan-assembler-times "vpmovwb\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+\[^\n\]*%xmm\[0-9\]+(?:\n|\[ \\t\]+#)" 1 } } */
 /* { dg-final { scan-assembler-times "vpmovwb\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+\[^\n\]*%xmm\[0-9\]+\{%k\[1-7\]\}(?:\n|\[ \\t\]+#)" 1 } } */
 /* { dg-final { scan-assembler-times "vpmovwb\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+\[^\n\]*%xmm\[0-9\]+\{%k\[1-7\]\}{z}(?:\n|\[ \\t\]+#)" 1 } } */