aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/ptwrite1.c
blob: e09028ed428c83cdbd30f6c80cfac346d0441332 (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
/* { dg-do compile } */
/* { dg-options "-O2 -mptwrite" } */
/* { dg-final { scan-assembler "ptwrite" } } */

void ptwrite1(int a)
{
  __builtin_ia32_ptwrite32 (a);
}

#ifdef __x86_64__
void ptwrite2(unsigned long b)
{
  __builtin_ia32_ptwrite64 (b);
}

void ptwrite3(unsigned char b)
{
  __builtin_ia32_ptwrite64 (b);
}

void ptwrite4(unsigned short b)
{
  __builtin_ia32_ptwrite64 (b);
}
#endif

void ptwrite5(unsigned short b)
{
  __builtin_ia32_ptwrite32 (b);
}