Debian Codegraph @

gcc/testsuite/gcc.target/i386/memset-strategy-1.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -march=atom -mmemset-strategy=libcall:-1:align" } */
3 /* On ELF platforms, one hit comes from the .file directive. */
4 /* { dg-final { scan-assembler-times "memset" 2 { target { ! *-*-darwin* } } } } */
5 /* But not on Darwin, which doesn't have a .file directive by default. */
6 /* { dg-final { scan-assembler-times "_memset" 1 { target *-*-darwin* } } } */
7
8 char a[2048];
9 void t (void)
10 {
11 __builtin_memset (a, 1, 2048);
12 }