Using the _mm_loadu_si128 compiler intrinsic with /O2, the compiler converts the unaligned load into an aligned load, causing a program to crash.Example code:-----------------------------#include <intrin.h>int main(){ int data[] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}; __m128i temp1, temp2, prod; temp1 = _mm_loadu_si128((__m128i *) &data[0]); temp2 = _mm_loadu_si128((__m128i *) &data[5]); prod = _mm_mul_epi32(temp1, temp2); return _mm_extract_epi32(prod, 0);}
Visual Studio/Silverlight/Tooling version
What category (if any) best represents this feedback?
Steps to reproduce
Product Language
Operating System
Operating System Language
Actual results
Expected results
Please wait...