avx2指令存储8个整数是什么?

avx2指令存储8个整数是什么?

问题描述:

我想将8个整数从 __ m256i 变量存储到8 x 32位 int s的数组中.我以为该指令是 _mm256_store_epi32 ,但是我收到一条错误消息,指出该指令甚至不存在!

I want to store the 8 integers from a __m256i variable to an array of 8 x 32 bit ints. I thought the instruction for that would be _mm256_store_epi32, but I get an error that this instruction doesn't even exist!

看看 _mm256_store_si256 _mm256_storeu_si256 .

Have a look at the Intel Intrinsics Guide. Depending on whether your destination is aligned, you need _mm256_store_si256 or _mm256_storeu_si256.