Problem with AVX2 intrinsics

Problem with AVX2 intrinsics

I'm trying to compile the following simple program

#include "immintrin.h"

int main(int argc,char *argv[])
double a[] = {1.2, 2.3, 3.3, 4.4};
__m256d x1;
return 0;

and I get the following error message. How to fix it ?


$ icc -xAVX2 -O2 test.c
test0.c(7): error: a value of type "int" cannot be assigned to an entity of type "__m256d"

compilation aborted for test0.c (code 2)

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Problem solved. It should be _mm256_load_pd(a) instead of __mm256_load_pd(a)

Leave a Comment

Please sign in to add a comment. Not a member? Join today