aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/avx512vl-and-si-ymm-1.c
blob: f2ba6c6eb867135ea40a354478036206a5af7431 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do compile } */
/* { dg-options "-mavx512vl -O2" } */
/* { dg-final { scan-assembler-times "vpandd\[ \\t\]+\\(%(?:eax|rdi|edi)\\)\\\{1to\[1-8\]+\\\}, %ymm\[0-9\]+, %ymm0" 1 } } */
/* { dg-final { scan-assembler-not "vpbroadcastd\[^\n\]*%ymm\[0-9\]+" } } */

#include <immintrin.h>

__m256i
foo (__m256i x, int *f)
{
  return (__m256i) ((__v8su) x & (__v8su) _mm256_set1_epi32 (*f));
}