aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Headers/mm3dnow.c
blob: a9b6dd88f8034afd2c67f9653006715a35f3c54a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// RUN: %clang_cc1 -fsyntax-only -ffreestanding %s -verify
// RUN: %clang_cc1 -fsyntax-only -D_CLANG_DISABLE_CRT_DEPRECATION_WARNINGS -ffreestanding %s -verify
// RUN: %clang_cc1 -fsyntax-only -ffreestanding -x c++ %s -verify

#if defined(i386) || defined(__x86_64__)
#ifndef _CLANG_DISABLE_CRT_DEPRECATION_WARNINGS
// expected-warning@mm3dnow.h:*{{The <mm3dnow.h> header is deprecated}}
#else
// expected-no-diagnostics
#endif

#include <mm3dnow.h>

int foo(void *x) {
  _m_prefetch(x);
  _m_prefetchw(x);
  return 4;
}
#else
// expected-no-diagnostics
#endif