search for: v2sw

Displaying 1 result from an estimated 1 matches for "v2sw".

2012 Feb 14
1
[LLVMdev] question on scalarization
...have vector code scalarized, as is done, e.g., for the Mips backend. However, I cannot find a way to force the instruction selector or type legalizer to scalarize the vectors (i.e., vector types and vector ops). Can anyone help me out? The code I am trying to compile is as follows: typedef short v2sw __attribute__ ((vector_size (8))); int main(int argc, char ** argv) { v2sw a = {1,2,3,4}; v2sw b = {5,6,7,8}; v2sw c = a; int i; for (i=0;i<argc;i++) c += b; printf("%d %d %d %d\n",c[0],c[1],c[2],c[3]); return 0; } When I compile this to bytecode with clang and...