[Bug c++/51033] Partial vector extension support
marc.glisse at normalesup dot org
gcc-bugzilla@gcc.gnu.org
Tue Nov 8 22:19:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51033
--- Comment #4 from Marc Glisse <marc.glisse at normalesup dot org> 2011-11-08 22:18:33 UTC ---
(In reply to comment #3)
> All vector support should also be in the C++ front-end. Can you give an
> example of something which does not work? Templates with vectors work already
> too.
#include <x86intrin.h>
double f(){
__m256d x={1,2,3,4};
__m256i m={1,2,3,0};
return __builtin_shuffle(x,m)[0];
}
error: ‘__builtin_shuffle’ was not declared in this scope
If I just return x[0], I get:
error: invalid types ‘__m256d {aka __vector(4) double}[int]’ for array
subscript
More information about the Gcc-bugs
mailing list