Issue 175804
Summary [Clang FE] Use of the vector_size attribute allowed with non-power of two sizes.
Labels clang:frontend
Assignees
Reporter JonPsson1
    Clang allows programs like this, with a use of a 3xi64 vector type:

```
typedef long vec_long_24 __attribute__((__vector_size__(24)));
vec_long_24 global_long_24;

extern void passCallee_long_24(vec_long_24 x);

void loadAndPass_long_24(void) {
 passCallee_long_24(global_long_24);
}

```

GCC however reports `"error: number of vector components 3 not a power of two"`, per its documentation.

Is this intentional or should clang as well report the error?

@AmrDeveloper @simoll @silvasean @efriedma-quic @nikic @uweigand 
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to