aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/i386/pause-1.c
blob: 50eb8e7e2fb2be437a69b2cca12a7bad943daa37 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* Test that we generate pause instruction.  */
/* { dg-do compile } */
/* { dg-options "-O2 -dp" } */
/* { dg-final { scan-assembler-times "\\*pause" 1 } } */

#include <x86intrin.h>

void foo(void)
{
  __pause();
}