[clang] [clang][bytecode] Implement arithmetic, bitwise and compound assignment operator (PR #108949)
Timm Baeder via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 19 23:48:19 PDT 2024
tbaederr wrote:
Same question for regular binary operators:
```c++
using VI __attribute__((ext_vector_type(4))) = int;
constexpr int a() {
VI a = {0, 0, 0, 0};
VI b = {1,1,1,1};
VI C = (a + b);
return 0;
}
static_assert(a() == 0);
```
Also, might make sense to add them to `test/AST/ByteCode/vectors.cpp`.
https://github.com/llvm/llvm-project/pull/108949
More information about the cfe-commits
mailing list