brintos

brintos / llvm-project-archived public Read only

0
0
Text · 660 B · e45acb1 Raw
25 lines · c
1// RUN: %clang_cc1 -fsyntax-only -ffreestanding %s -verify2// RUN: %clang_cc1 -fsyntax-only -D_CLANG_DISABLE_CRT_DEPRECATION_WARNINGS -ffreestanding %s -verify3// RUN: %clang_cc1 -fsyntax-only -ffreestanding -x c++ %s -verify4 5// XFAIL: target=arm64ec-pc-windows-msvc6// These intrinsics are not yet implemented for Arm64EC.7 8#if defined(i386) || defined(__x86_64__)9#ifndef _CLANG_DISABLE_CRT_DEPRECATION_WARNINGS10// expected-warning@mm3dnow.h:*{{The <mm3dnow.h> header is deprecated}}11#else12// expected-no-diagnostics13#endif14 15#include <mm3dnow.h>16 17int foo(void *x) {18  _m_prefetch(x);19  _m_prefetchw(x);20  return 4;21}22#else23// expected-no-diagnostics24#endif25