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
Diff Detail
- Build Status
Buildable 6895 Build 6895: arc lint + arc unit
Event Timeline
Hi,
test/Sema/types.c | ||
---|---|---|
92 | 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 | 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. |
Updated regression test
The new regression test was obtained from Sema/vector-ops.c, the part of
it that checks binary complement was copied.
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*