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

#include <immintrin.h>

int
foo (unsigned long long *x)
{
  return _rdrand64_step (x);
}