xref: /llvm-project/clang/test/Headers/pmmintrin.c (revision 9fc7fb274e5341b14c71487cf413343439581d50)
1*9fc7fb27SEric Christopher // RUN: %clang_cc1 -fsyntax-only -ffreestanding %s -verify
2*9fc7fb27SEric Christopher // RUN: %clang_cc1 -fsyntax-only -ffreestanding -x c++ %s -verify
3*9fc7fb27SEric Christopher // expected-no-diagnostics
4*9fc7fb27SEric Christopher 
5*9fc7fb27SEric Christopher #if defined(i386) || defined(__x86_64__)
6*9fc7fb27SEric Christopher #include <pmmintrin.h>
7*9fc7fb27SEric Christopher 
foo(int a)8*9fc7fb27SEric Christopher int __attribute__((__target__(("sse3")))) foo(int a) {
9*9fc7fb27SEric Christopher   _mm_mwait(0, 0);
10*9fc7fb27SEric Christopher   return 4;
11*9fc7fb27SEric Christopher }
12*9fc7fb27SEric Christopher #endif
13