]> granicus.if.org Git - clang/commitdiff
Add subtarget feature support for 3dnowa to the 3dnowa intrinsics.
authorEric Christopher <echristo@gmail.com>
Tue, 13 Oct 2015 18:40:17 +0000 (18:40 +0000)
committerEric Christopher <echristo@gmail.com>
Tue, 13 Oct 2015 18:40:17 +0000 (18:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@250202 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Headers/mm3dnow.h

index 3218df8271775d05d4c24380f8296fcfe8f528da..cb93faf2b6a4969a34822b1889adaa4986ce17be 100644 (file)
@@ -132,6 +132,10 @@ _m_pmulhrw(__m64 __m1, __m64 __m2) {
   return (__m64)__builtin_ia32_pmulhrw((__v4hi)__m1, (__v4hi)__m2);
 }
 
+/* Handle the 3dnowa instructions here. */
+#undef __DEFAULT_FN_ATTRS
+#define __DEFAULT_FN_ATTRS __attribute__((__always_inline__, __nodebug__, __target__("3dnowa")))
+
 static __inline__ __m64 __DEFAULT_FN_ATTRS
 _m_pf2iw(__m64 __m) {
   return (__m64)__builtin_ia32_pf2iw((__v2sf)__m);