]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Darwin, X86, backport fix for PR58321.
authorIain Sandoe <iain@sandoe.co.uk>
Sun, 4 Aug 2019 09:53:37 +0000 (09:53 +0000)
committerIain Sandoe <iains@gcc.gnu.org>
Sun, 4 Aug 2019 09:53:37 +0000 (09:53 +0000)
2019-08-04  Iain Sandoe  <iain@sandoe.co.uk>

Backport from mainline.
2019-05-20  Iain Sandoe  <iain@sandoe.co.uk>

PR testsuite/58321
* gcc.target/i386/memcpy-strategy-3.c: Adjust count for Darwin and
add a comment as to the reason for the difference.
* gcc.target/i386/memset-strategy-1.c: Likewise.

From-SVN: r274058

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/memcpy-strategy-3.c
gcc/testsuite/gcc.target/i386/memset-strategy-1.c

index 4f9f3ac1b9a1d102d6decdacd12df8475bd9fd6b..ca95c575eca45bc120032d2f31a02f3608dc5535 100644 (file)
@@ -1,3 +1,13 @@
+2019-08-04  Iain Sandoe  <iain@sandoe.co.uk>
+
+       Backport from mainline.
+       2019-05-20  Iain Sandoe  <iain@sandoe.co.uk>
+
+       PR testsuite/58321
+       * gcc.target/i386/memcpy-strategy-3.c: Adjust count for Darwin and
+       add a comment as to the reason for the difference.
+       * gcc.target/i386/memset-strategy-1.c: Likewise.
+
 2019-08-04  Iain Sandoe  <iain@sandoe.co.uk>
 
        Backport from mainline.
index ddd1ef7c0b2315b98d640266b5cb4ca9fdf82f16..11687e8c9b5dead0a5f6b54c642ddb6eff389f79 100644 (file)
@@ -1,6 +1,9 @@
 /* { dg-do compile } */
 /* { dg-options "-O2 -march=atom -mmemcpy-strategy=vector_loop:2000:align,libcall:-1:align" } */
-/* { dg-final { scan-assembler-times "memcpy" 2  } } */
+/* 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* } } } */
 
 char a[2048];
 char b[2048];
index d1b97c5df10a851071d28be2e9080e776764d418..b4b8e2cfa6f1c654f23f04c3cb801b02c20d63d0 100644 (file)
@@ -1,10 +1,12 @@
 /* { dg-do compile } */
 /* { dg-options "-O2 -march=atom -mmemset-strategy=libcall:-1:align" } */
-/* { dg-final { scan-assembler-times "memset" 2  } } */
+/* On ELF platforms, one hit comes from the .file directive.  */
+/* { dg-final { scan-assembler-times "memset" 2 { target { ! *-*-darwin* } } } } */
+/* But not on Darwin, which doesn't have a .file directive by default.  */
+/* { dg-final { scan-assembler-times "_memset" 1 { target *-*-darwin* } } } */
 
 char a[2048];
 void t (void)
 {
   __builtin_memset (a, 1, 2048);
 }
-