summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/avx512dq-kmovb-5.c
blob: 49817097e268b0a2de2f7bb4f107b1699ef8fea0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do compile } */
/* { dg-options "-mavx512dq -O2" } */
/* { dg-final { scan-assembler-times "kmovb\[ \\t\]+\[^\{\n\]*%k\[0-7\](?:\n|\[ \\t\]+#)" 1 } } */

#include <immintrin.h>
volatile unsigned int i;

void
avx512dq_test ()
{
  __mmask8 k = 11;

  asm volatile ("" : "+k" (k));
  i = _cvtmask8_u32 (k);
}