1 // { dg-do assemble { target { { i?86-*-* x86_64-*-* } && fpic } } }
2 // { dg-options "-mx32 -fPIC" }
3 // { dg-require-ifunc "" }
4 // { dg-require-effective-target maybe_x32 }
5 // { dg-require-effective-target rdrand }
8 __throw_runtime_error(const char*) __attribute__((__noreturn__));
10 __attribute__ ((target("rdrnd")))
13 unsigned int retries = 100;
15 while (__builtin_ia32_rdrand32_step(&val) == 0)
17 __throw_runtime_error(("random_device::__x86_rdrand(void)"));