Bitwise complement applied to vector of floats described with
attribute ext_vector_type is not diagnosed as error. Attempt to
compile such construct causes assertion violation in Instruction.cpp.
With this change the complement is treated similar to the case of
vector type described with attribute vector_size.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Hi,
test/Sema/types.c | ||
---|---|---|
92 ↗ | (On Diff #100891) | Can you also add a test for the vector_type variant? It might be more appropriate to put this at test/Sema/ext_vector* and test/Sema/vector* |
test/Sema/types.c | ||
---|---|---|
92 ↗ | (On Diff #100891) | The test for the vector_type variant already exists in test/Sema/vector-ops.c. I tried to made similar test file for ext_vector_type by copying vector-ops.c and replacing vector types accordingly, but there are many differences in diagnostic, so only the part that checks the complement operation was copied. |
Comment Actions
Updated regression test
The new regression test was obtained from Sema/vector-ops.c, the part of
it that checks binary complement was copied.