I am trying to use a _mm_slli_epi64to switch a _m128ione position. I do not understand that the following code does not give me the output of all zeros as I expected, but rather prints 0x00010000000000000000000000000000. What could be wrong?
__m128i z = _mm_setr_epi8(0x80,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);
printblock("z = ", z);
z = _mm_slli_epi64(z, 1);
printblock("z = ", z);
return;
source
share