[cfe-commits] r138411 - /cfe/trunk/lib/Headers/avxintrin.h

Bruno Cardoso Lopes bruno.cardoso at gmail.com
Tue Aug 23 16:37:37 PDT 2011


Oh, forgot to mention, is going to be added on the llvm side, for
matching the intrinsic! :D

On Tue, Aug 23, 2011 at 4:33 PM, Eric Christopher <echristo at apple.com> wrote:
>
> 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
>



-- 
Bruno Cardoso Lopes
http://www.brunocardoso.cc




More information about the cfe-commits mailing list