clang/test/Headers/pmmintrin.c
raw| 1 | // RUN: %clang_cc1 -fsyntax-only -ffreestanding %s -verify |
| 2 | // RUN: %clang_cc1 -fsyntax-only -ffreestanding -x c++ %s -verify |
| 3 | // expected-no-diagnostics |
| 4 | |
| 5 | // XFAIL: target=arm64ec-pc-windows-msvc |
| 6 | // These intrinsics are not yet implemented for Arm64EC. |
| 7 | |
| 8 | #if defined(i386) || defined(__x86_64__) |
| 9 | #include <pmmintrin.h> |
| 10 | |
| 11 | int __attribute__((__target__(("sse3")))) foo(int a) { |
| 12 | _mm_mwait(0, 0); |
| 13 | return 4; |
| 14 | } |
| 15 | #endif |