summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/rdrand-2.c
blob: ea8e906495383c2e1c5336727266b53fa56e0f35 (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 "rdrandsi_1" 1 } } */
/* { dg-final { scan-assembler-times "\\*movsicc_noc" 1 } } */

#include <immintrin.h>

int
foo (unsigned int *x)
{
  return _rdrand32_step (x);
}