PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr57736.c
blob120e5dc3a47389c0df2743fadbaf20267775b09b
1 /* PR target/57736 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2" } */
5 #include <x86intrin.h>
7 unsigned long long
8 f1 (void)
10 return __rdtsc ();
13 unsigned long long
14 f2 (unsigned int *x)
16 return __rdtscp (x);
19 unsigned long long
20 f3 (unsigned int x)
22 return __rdpmc (x);
25 void
26 f4 (void)
28 __rdtsc ();
31 void
32 f5 (unsigned int *x)
34 __rdtscp (x);
37 void
38 f6 (unsigned int x)
40 __rdpmc (x);