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