summaryrefslogtreecommitdiff
path: root/test/Headers/pmmintrin.c
blob: 5b7a3a4ef6b9bf92f986f69fe55203fe1abc8d4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// RUN: %clang_cc1 -fsyntax-only -ffreestanding %s -verify
// RUN: %clang_cc1 -fsyntax-only -ffreestanding -x c++ %s -verify
// expected-no-diagnostics

#if defined(i386) || defined(__x86_64__)
#include <pmmintrin.h>

int __attribute__((__target__(("sse3")))) foo(int a) {
  _mm_mwait(0, 0);
  return 4;
}
#endif