blob: 6b0d39344027b1c6fa247256515c7689b87b9df9 (
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
|
/* { dg-do compile } */
/* { dg-options "-O2 -mwaitpkg" } */
/* { dg-final { scan-assembler-times "tpause\[ \\t\]+\[^\{\n\]*%" 3 } } */
/* { dg-final { scan-assembler-times "setc\[ \\t\]+\[^\{\n\]*%" 3 } } */
#include <x86intrin.h>
unsigned char
foo (unsigned x, unsigned y)
{
return _tpause (x, y);
}
unsigned char
bar (unsigned x, unsigned long long y)
{
return _tpause (x, y);
}
unsigned char
foo1 (void)
{
return _tpause (0, 0);
}
|