Author: echristo
Date: Tue Oct 13 13:40:17 2015
New Revision: 250202

URL: http://llvm.org/viewvc/llvm-project?rev=250202&view=rev
Log:
Add subtarget feature support for 3dnowa to the 3dnowa intrinsics.

Modified:
    cfe/trunk/lib/Headers/mm3dnow.h

Modified: cfe/trunk/lib/Headers/mm3dnow.h
URL: 
http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Headers/mm3dnow.h?rev=250202&r1=250201&r2=250202&view=diff
==============================================================================
--- cfe/trunk/lib/Headers/mm3dnow.h (original)
+++ cfe/trunk/lib/Headers/mm3dnow.h Tue Oct 13 13:40:17 2015
@@ -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);


_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to