2016-12-21 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / avx256-unaligned-load-3.c
blobfe66e0b1713cb4c4656f983bdc6f909d032c427b
1 /* { dg-do compile } */
2 /* { dg-options "-O3 -dp -mavx -mavx256-split-unaligned-load -mtune=generic" } */
4 #define N 1024
6 double a[N], b[N+3], c[N];
8 void
9 avx_test (void)
11 int i;
13 for (i = 0; i < N; i++)
14 c[i] = a[i] * b[i+3];
17 /* { dg-final { scan-assembler-not "(avx_loadupd256|vmovupd\[^\n\r]*movv4df_internal)" } } */
18 /* { dg-final { scan-assembler "(sse2_loadupd|vmovupd\[^\n\r]*movv2df_internal)" } } */
19 /* { dg-final { scan-assembler "vinsertf128" } } */