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
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to