| 1 |
// RUN: %clang_cc1 -fsyntax-only -ffreestanding %s -verify |
| 2 |
// RUN: %clang_cc1 -fsyntax-only -D_CLANG_DISABLE_CRT_DEPRECATION_WARNINGS -ffreestanding %s -verify |
| 3 |
// RUN: %clang_cc1 -fsyntax-only -ffreestanding -x c++ %s -verify |
| 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 |
#ifndef _CLANG_DISABLE_CRT_DEPRECATION_WARNINGS |
| 10 |
// [email protected]:*{{The <mm3dnow.h> header is deprecated}} |
| 11 |
#else |
| 12 |
// expected-no-diagnostics |
| 13 |
#endif |
| 14 |
|
| 15 |
#include <mm3dnow.h> |
| 16 |
|
| 17 |
int foo(void *x) { |
| 18 |
_m_prefetch(x); |
| 19 |
_m_prefetchw(x); |
| 20 |
return 4; |
| 21 |
} |
| 22 |
#else |
| 23 |
// expected-no-diagnostics |
| 24 |
#endif |