1 /* PR target/83546 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -march=silvermont" } */
4 
test(void)5 int test (void)
6 {
7   unsigned int number = 0;
8   int result0, result1, result2, result3;
9 
10   result0 = __builtin_ia32_rdrand32_step (&number);
11   result1 = __builtin_ia32_rdrand32_step (&number);
12   result2 = __builtin_ia32_rdrand32_step (&number);
13   result3 = __builtin_ia32_rdrand32_step (&number);
14 
15   return result0 + result1 +result2 + result3;
16 }
17 
18 /* { dg-final { scan-assembler-times "rdrand" 4 } } */
19