[cfe-commits] r138411 - /cfe/trunk/lib/Headers/avxintrin.h
Eric Christopher
echristo at apple.com
Tue Aug 23 16:33:21 PDT 2011
On Aug 23, 2011, at 4:29 PM, Bruno Cardoso Lopes wrote:
> Author: bruno
> Date: Tue Aug 23 18:29:45 2011
> New Revision: 138411
>
> URL: http://llvm.org/viewvc/llvm-project?rev=138411&view=rev
> Log:
> Fix _mm256_shuffle_ps mask! Example, for mask=203, Instead of:
> <i32 3, i32 2, i32 8, i32 11, i32 3, i32 6, i32 12, i32 15>
> generate:
> <i32 3, i32 2, i32 8, i32 11, i32 7, i32 6, i32 12, i32 15>
>
> Modified:
> cfe/trunk/lib/Headers/avxintrin.h
>
> Modified: cfe/trunk/lib/Headers/avxintrin.h
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Headers/avxintrin.h?rev=138411&r1=138410&r2=138411&view=diff
> ==============================================================================
> --- cfe/trunk/lib/Headers/avxintrin.h (original)
> +++ cfe/trunk/lib/Headers/avxintrin.h Tue Aug 23 18:29:45 2011
> @@ -341,7 +341,7 @@
> (__builtin_shufflevector((__v8sf)(a), (__v8sf)(b), \
> (mask) & 0x3, ((mask) & 0xc) >> 2, \
> (((mask) & 0x30) >> 4) + 8, (((mask) & 0xc0) >> 6) + 8, \
> - (mask) & 0x3 + 4, (((mask) & 0xc) >> 2) + 4, \
> + ((mask) & 0x3) + 4, (((mask) & 0xc) >> 2) + 4, \
> (((mask) & 0x30) >> 4) + 12, (((mask) & 0xc0) >> 6) + 12))
>
> #define _mm256_shuffle_pd(a, b, mask) \
>
Testcase! :)
-eric
More information about the cfe-commits
mailing list