aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/i386/pr57736.c
blob: 120e5dc3a47389c0df2743fadbaf20267775b09b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/* PR target/57736 */
/* { dg-do compile } */
/* { dg-options "-O2" } */

#include <x86intrin.h>

unsigned long long
f1 (void)
{
  return __rdtsc ();
}

unsigned long long
f2 (unsigned int *x)
{
  return __rdtscp (x);
}

unsigned long long
f3 (unsigned int x)
{
  return __rdpmc (x);
}

void
f4 (void)
{
  __rdtsc ();
}

void
f5 (unsigned int *x)
{
  __rdtscp (x);
}

void
f6 (unsigned int x)
{
  __rdpmc (x);
}