aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pr101180.c
blob: 1ac4cb5e2b58380f044756f61a8cf4e315ef4cdb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* PR c++/101180 */
/* { dg-do compile } */
/* { dg-options "-O2 -mno-avx -mno-crc32" } */

#include <x86intrin.h>

__attribute__((target ("avx"))) __attribute__((target ("crc32"))) void
foo (__m256 *p, unsigned int *q)
{
  __m256 c = _mm256_and_ps (p[0], p[1]);
  *q = __crc32b (*q, 0x55);
}