Issue 179455
Summary Clang asserts when trying to cast with bitint ext_vector_types
Labels OpenCL, crash-on-valid
Assignees
Reporter arsenm
    https://godbolt.org/z/f9hzTjz4T

```
typedef _BitInt(4) i4;
typedef i4 __attribute__((ext_vector_type(8))) v8i4;

v8i4 vector_crash(int a) {
    return __builtin_astype((long)a, v8i4);
}
```

Additionally I expect this cast to long to be unnecessary. Without it, it complains that the sizes do not match.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to