On Sun, May 20, 2012 at 10:04:26AM -0700, H.J. Lu wrote: > rdrand<mode>_1 must be marked with unspec_volatile since it returns > a different value every time. OK for trunk, 4.7 and 4.6?
A testcase for this would be nice (runtime is not possible, since the RNG in theory could return the same value twice, but scanning assembly for a particular number of the rdrand insns would be nice). > PR target/53416 > * config/i386/i386.md (UNSPEC_RDRAND): Renamed to ... > (UNSPECV_RDRAND): This. > (rdrand<mode>_1): Updated. Jakub