summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/rdrand-1.c
blob: beec9f1b8aa3a54ed35aa7057586ecb7a3535c3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do compile } */
/* { dg-options "-O2 -mrdrnd -dp" } */
/* { dg-final { scan-assembler-times "rdrandhi_1" 1 } } */
/* { dg-final { scan-assembler-times "\\*movsicc_noc" 1 } } */

#include <immintrin.h>

int
foo (unsigned short *x)
{
  return _rdrand16_step (x);
}