I have recently started with SIMD and SSE instructions coding. To access individual elements of the 128 bits register, I do like this xml.m128i_i8[i]. But it gives compilation error :-
1>.outline_correct_C.cpp(65): error: union "__m128i" has no member "m128i_i8"
1> if(xm1.m128i_i8[i])
1> ^
1>
1>.outline_correct_C.cpp(65): error: expression must have class type
1> if(xm1.m128i_i8[i])
But, I have checked similar uses in the manuals also. Can you please clarify.
With regards.



