r272118 - [X86] Put parentheses around macro arguments in intrinsics.

Craig Topper via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 7 23:08:04 PDT 2016


Author: ctopper
Date: Wed Jun  8 01:08:04 2016
New Revision: 272118

URL: http://llvm.org/viewvc/llvm-project?rev=272118&view=rev
Log:
[X86] Put parentheses around macro arguments in intrinsics.

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

Modified: cfe/trunk/lib/Headers/avx512fintrin.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Headers/avx512fintrin.h?rev=272118&r1=272117&r2=272118&view=diff
==============================================================================
--- cfe/trunk/lib/Headers/avx512fintrin.h (original)
+++ cfe/trunk/lib/Headers/avx512fintrin.h Wed Jun  8 01:08:04 2016
@@ -375,16 +375,16 @@ _mm512_set4_ps (float __A, float __B, fl
 }
 
 #define _mm512_setr4_epi32(e0,e1,e2,e3)               \
-  _mm512_set4_epi32(e3,e2,e1,e0)
+  _mm512_set4_epi32((e3),(e2),(e1),(e0))
 
 #define _mm512_setr4_epi64(e0,e1,e2,e3)               \
-  _mm512_set4_epi64(e3,e2,e1,e0)
+  _mm512_set4_epi64((e3),(e2),(e1),(e0))
 
 #define _mm512_setr4_pd(e0,e1,e2,e3)                \
-  _mm512_set4_pd(e3,e2,e1,e0)
+  _mm512_set4_pd((e3),(e2),(e1),(e0))
 
 #define _mm512_setr4_ps(e0,e1,e2,e3)                \
-  _mm512_set4_ps(e3,e2,e1,e0)
+  _mm512_set4_ps((e3),(e2),(e1),(e0))
 
 static __inline__ __m512d __DEFAULT_FN_ATTRS
 _mm512_broadcastsd_pd(__m128d __X)
@@ -9536,7 +9536,8 @@ _mm512_set_epi32 (int __A, int __B, int
 
 #define _mm512_setr_epi32(e0,e1,e2,e3,e4,e5,e6,e7,           \
        e8,e9,e10,e11,e12,e13,e14,e15)          \
-  _mm512_set_epi32(e15,e14,e13,e12,e11,e10,e9,e8,e7,e6,e5,e4,e3,e2,e1,e0)
+  _mm512_set_epi32((e15),(e14),(e13),(e12),(e11),(e10),(e9),(e8),(e7),(e6), \
+                   (e5),(e4),(e3),(e2),(e1),(e0))
 
 static __inline__ __m512i __DEFAULT_FN_ATTRS
 _mm512_set_epi64 (long long __A, long long __B, long long __C,
@@ -9548,7 +9549,7 @@ _mm512_set_epi64 (long long __A, long lo
 }
 
 #define _mm512_setr_epi64(e0,e1,e2,e3,e4,e5,e6,e7)           \
-  _mm512_set_epi64(e7,e6,e5,e4,e3,e2,e1,e0)
+  _mm512_set_epi64((e7),(e6),(e5),(e4),(e3),(e2),(e1),(e0))
 
 static __inline__ __m512d __DEFAULT_FN_ATTRS
 _mm512_set_pd (double __A, double __B, double __C, double __D,
@@ -9559,7 +9560,7 @@ _mm512_set_pd (double __A, double __B, d
 }
 
 #define _mm512_setr_pd(e0,e1,e2,e3,e4,e5,e6,e7)              \
-  _mm512_set_pd(e7,e6,e5,e4,e3,e2,e1,e0)
+  _mm512_set_pd((e7),(e6),(e5),(e4),(e3),(e2),(e1),(e0))
 
 static __inline__ __m512 __DEFAULT_FN_ATTRS
 _mm512_set_ps (float __A, float __B, float __C, float __D,
@@ -9573,7 +9574,8 @@ _mm512_set_ps (float __A, float __B, flo
 }
 
 #define _mm512_setr_ps(e0,e1,e2,e3,e4,e5,e6,e7,e8,e9,e10,e11,e12,e13,e14,e15) \
-  _mm512_set_ps(e15,e14,e13,e12,e11,e10,e9,e8,e7,e6,e5,e4,e3,e2,e1,e0)
+  _mm512_set_ps((e15),(e14),(e13),(e12),(e11),(e10),(e9),(e8),(e7),(e6),(e5), \
+                (e4),(e3),(e2),(e1),(e0))
 
 #undef __DEFAULT_FN_ATTRS
 




More information about the cfe-commits mailing list