in a quick attampt, I tried to store AVX2-data (type __m256i) in a vector:
__m256i values= _mm256_set_epi32(2, 4, 6, 8, 10, 12, 14, 16);
std::vector< __m256i > vecValues;
for ( int k = 0; k < static_cast< int >(100); k++ )
{
vecValues.push_back( values);
}
Using VS2012, this works in debug mode, but give an "Unhandled exception / access violation" when running in release mode.
Can someone explain, why, and how to store the data correctly?