PR rtl-optimization/87918
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / tpause-1.c
blob6b0d39344027b1c6fa247256515c7689b87b9df9
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -mwaitpkg" } */
3 /* { dg-final { scan-assembler-times "tpause\[ \\t\]+\[^\{\n\]*%" 3 } } */
4 /* { dg-final { scan-assembler-times "setc\[ \\t\]+\[^\{\n\]*%" 3 } } */
6 #include <x86intrin.h>
8 unsigned char
9 foo (unsigned x, unsigned y)
11 return _tpause (x, y);
14 unsigned char
15 bar (unsigned x, unsigned long long y)
17 return _tpause (x, y);
20 unsigned char
21 foo1 (void)
23 return _tpause (0, 0);