Issue 244489
Summary [clang] Clang asserts during codegen for vectors of sub-byte _BitInt elements
Labels clang, clang:codegen
Assignees
Reporter andykaylor
    Clang has allowed sub-byte _BitInt(N) vector elements since https://github.com/llvm/llvm-project/pull/140253. However, it currently asserts during codegen for the following code:

```
typedef unsigned _BitInt(4) v8u4 __attribute__((ext_vector_type(8)));
v8u4 g4 = {0, 1, 2, 3, 12, 13, 14, 15};
```
https://godbolt.org/z/jhbx7ebr8

I'm not sure how long this has been happening. I discovered it accidentally while adding a test case for CIR.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to