+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-05-20 Jonathan Wakely <jwakely@redhat.com>
PR c++/90532 Ensure __is_constructible(T[]) is false
/* { 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];
/* { 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);
}
-