1 /* { dg-do compile } */
2 /* { dg-options "-O3 -dp -mavx -mavx256-split-unaligned-store -mtune=generic -fno-common" } */
3
4 #define N 1024
5
6 extern double a[N], b[N+3], c[N], d[N];
7
8 void
avx_test(void)9 avx_test (void)
10 {
11 int i;
12
13 for (i = 0; i < N; i++)
14 b[i+3] = a[i] * 10.0;
15
16 for (i = 0; i < N; i++)
17 d[i] = c[i] * 20.0;
18 }
19
20 /* { dg-final { scan-assembler-not "vmovups.*movv4df_internal/3" } } */
21 /* { dg-final { scan-assembler "vmovups.*movv2df_internal/3" } } */
22 /* { dg-final { scan-assembler "vextractf128" } } */
23