Following is the code:
int add = foo;
vector signed int v_add;
v_add[0] = add;
The error is: error: invalid types 'vector int[int]' for array subscript
Problem stays when I try add = v_add[0];
Please explain the cause of this problem. I am using gnu version 3.3.2
You can't treat AltiVec types like
vector signed intas if they are arrays. Use e.g. thevec_ldintrinsic to load values from an array to an AltiVec vector.