2014-04-15 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / memcpy-strategy-1.c
blob3117771d43130de1b815beba182c998394e92a13
1 /* { dg-do compile } */
2 /* { dg-skip-if "" { i?86-*-* x86_64-*-* } { "-march=*" } { "-march=atom" } } */
3 /* { dg-options "-O2 -march=atom -mmemcpy-strategy=vector_loop:-1:align" } */
4 /* { dg-final { scan-assembler-times "movdqa" 8 { target { ! { ia32 } } } } } */
5 /* { dg-final { scan-assembler-times "movdqa" 4 { target { ia32 } } } } */
7 char a[2048];
8 char b[2048];
9 void t (void)
11 __builtin_memcpy (a, b, 2048);