| 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 | #if defined(i386) || defined(__x86_64__) |
| 6 | #include <mm3dnow.h> |
| 7 | |
| 8 | int __attribute__((__target__(("3dnow")))) foo(int a) { |
| 9 | _m_femms(); |
| 10 | return 4; |
| 11 | } |
| 12 | |
| 13 | __m64 __attribute__((__target__(("3dnowa")))) bar(__m64 a) { |
| 14 | return _m_pf2iw(a); |
| 15 | } |
| 16 | #endif |
| 17 |