PR rtl-optimization/87918
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / avx512f-pr85090-3.c
blobffe515474d28a868090a412708dd7cfd4a62e740
1 /* PR middle-end/85090 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -mavx512f -mno-avx512bw -mtune=intel -masm=att" } */
5 typedef signed char V __attribute__((vector_size (64)));
8 f1 (V x, int y)
10 x[0] = y;
11 return x;
15 f2 (V x, int y)
17 x[15] = y;
18 return x;
22 f3 (V x, int y)
24 x[22] = y;
25 return x;
29 f4 (V x, int y)
31 x[59] = y;
32 return x;
35 /* { dg-final { scan-assembler-times "vpinsrb\t" 4 } } */
36 /* { dg-final { scan-assembler-times "vextracti32x4\t" 2 } } */
37 /* { dg-final { scan-assembler-times "vinserti32x4\t" 4 } } */