summaryrefslogtreecommitdiffstats
path: root/test/Headers/mm3dnow.c
blob: 255483cb9b836451320ddcd9ecd7da144ab6af4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// RUN: %clang_cc1 -fsyntax-only -ffreestanding %s -verify
// RUN: %clang_cc1 -fsyntax-only -ffreestanding -x c++ %s -verify
// expected-no-diagnostics

#if defined(i386) || defined(__x86_64__)
#include <mm3dnow.h>

int __attribute__((__target__(("3dnow")))) foo(int a) {
  _m_femms();
  return 4;
}

__m64 __attribute__((__target__(("3dnowa")))) bar(__m64 a) {
  return _m_pf2iw(a);
}
#endif