PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / avx512vl-no-vmovdqu16.c
blob29b3141ad9bcbf9510b0b02cc44ff020e2b3d48c
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -mavx512vl -mno-avx512bw" } */
4 typedef unsigned int __attribute__((mode(HI), vector_size(16))) v8hi_t;
5 typedef unsigned int __attribute__((mode(HI), vector_size(32))) v16hi_t;
7 struct s8hi {
8 int i;
9 v8hi_t __attribute__((packed)) v;
11 struct s16hi {
12 int i;
13 v16hi_t __attribute__((packed)) v;
16 void f8hi(struct s8hi*p1, const struct s8hi*p2) {
17 p1->v += p2->v;
20 void f16hi(struct s16hi*p1, const struct s16hi*p2) {
21 p1->v += p2->v;
24 /* { dg-final { scan-assembler-not "^\[ \t\]*vmovdq\[au\](8|16)" } } */