Test that all vector-vs-scalar builtin operators type check
successfully.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
See also: very similar baseline tests for C++: D151059
I'm interested in any feedback about the correct semantics for this.
I started writing these tests while investigating the behavior of vector vs scalar operations in C++ for D151060 and finding a lot of that inconsistent.
I want to get down checks that these cases are all appropriately accepted.
Interested in feedback from anyone working with the ext_vector_types.
Thanks for texting the test coverage!
clang/test/Sema/ext_vector_ops.c | ||
---|---|---|
30 | Not sure if vs is the right connector here, maybe something like Operators with one integer vector and scalar.. Period at end of These will splat |
Thank you for the additional test coverage! The changes LGTM modulo the suggestion from @fhahn on how to improve the comments. (Note, given your goal of verifying that operations work, you might want to consider adding similar coverage for CodeGen tests to verify that we emit sensible LLVM IR for each of these operations as well, if we don't already have sufficient coverage for it.)
Not sure if vs is the right connector here, maybe something like Operators with one integer vector and scalar.. Period at end of These will splat