diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/i386/memcpy-strategy-3.c')
-rw-r--r-- | gcc/testsuite/gcc.target/i386/memcpy-strategy-3.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/i386/memcpy-strategy-3.c b/gcc/testsuite/gcc.target/i386/memcpy-strategy-3.c new file mode 100644 index 00000000000..ddd1ef7c0b2 --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/memcpy-strategy-3.c @@ -0,0 +1,10 @@ +/* { dg-do compile } */ +/* { dg-options "-O2 -march=atom -mmemcpy-strategy=vector_loop:2000:align,libcall:-1:align" } */ +/* { dg-final { scan-assembler-times "memcpy" 2 } } */ + +char a[2048]; +char b[2048]; +void t (void) +{ + __builtin_memcpy (a, b, 2048); +} |