[PATCH] D20468: [X86][AVX] Ensure zero-extension of _mm256_extract_epi8 and _mm256_extract_epi16

David Kreitzer via cfe-commits cfe-commits at lists.llvm.org
Fri May 20 14:08:14 PDT 2016

DavidKreitzer added a subscriber: DavidKreitzer.
DavidKreitzer added a comment.

Hi Michael,

I think the Intel Intrinsics reference and the Intel Compiler are in error and that this is the right fix for the LLVM headers. (I'll follow up to get the Intel Intrinsics reference & Intel Compiler fixed.)

The _mm256_extract_epiN "convenience" intrinsics were first introduced by gcc and used an "int" return type. They were added to the Intel Compiler about 2 years ago, but for some reason were defined to use the smaller signed types. I'm double checking with the developer that added them, but I think it was just a mistake.




More information about the cfe-commits mailing list