summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pause-2.c
blob: d8b25195801a856221e8c7c8706dc9cebd2cbffb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* Test that pause instruction works even when SSE is not enabled.  */
/* { dg-do compile } */
/* { dg-options "-O2 -dp" } */
/* { dg-final { scan-assembler-times "\\*pause" 1 } } */

#include <xmmintrin.h>

void
foo (void)
{
  _mm_pause ();
}