2016-12-21 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / rdrand-1.c
blobbeec9f1b8aa3a54ed35aa7057586ecb7a3535c3f
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -mrdrnd -dp" } */
3 /* { dg-final { scan-assembler-times "rdrandhi_1" 1 } } */
4 /* { dg-final { scan-assembler-times "\\*movsicc_noc" 1 } } */
6 #include <immintrin.h>
8 int
9 foo (unsigned short *x)
11 return _rdrand16_step (x);