By Using vector instructions through built-in functions , this program should compile:
int main(){
double v_sse __attribute__ ((vector_size (16)));
v_sse=v_sse+3.4;
double result=v_sse[0];
}
Instead, I get errors in both operations complaining of invalid operands / types.
I compile on the x86-64 system, so -msse2 is implicit, and my compiler is 4.6.3 (checked also with 4.7.0, it does not work). Where is the catch?
source
share