Created attachment 11330 [details] gcc test rkotler@mipssw006:~/rt-rk-4doug/tmp$ ~/llvmw/install/bin/clang ../tests-c/pr23135.c -std=gnu89 -lm ../tests-c/pr23135.c:10:28: error: mode attribute only supported for integer and floating-point types typedef int __attribute__((mode(SI))) __attribute__((vector_size (8))) vecint; ^ ../tests-c/pr23135.c:13:19: warning: excess elements in scalar initializer vecint i = { 150, 100 }; ^~~ ../tests-c/pr23135.c:14:18: warning: excess elements in scalar initializer vecint j = { 10, 13 }; ^~ ../tests-c/pr23135.c:27:5: warning: implicitly declaring library function 'abort' with type 'void (void) __attribute__((noreturn))' abort (); ^ ../tests-c/pr23135.c:27:5: note: please include the header <stdlib.h> or explicitly provide a declaration for 'abort' ../tests-c/pr23135.c:133:3: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' exit (0); ^ ../tests-c/pr23135.c:133:3: note: please include the header <stdlib.h> or explicitly provide a declaration for 'exit' 4 warnings and 1 error generated. rkotler@mipssw006:~/rt-rk-4doug/tmp$
It isn't clear that we want to support this. Our goal is not to pass the GCC testsuite.
Reproducable in trunk. Mode attribute is not working with vector types. I'm going to handle this one if there are no objections. Alexey Frolov ============= Software Engineer Intel Compiler Team Intel
Fixed in r240125. Alexey Frolov ============= Software Engineer Intel Compiler Team Intel