summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/vector-gcc-compat.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [Sema] Silence buildbot failures introduced by r302935Simon Dardis2017-05-121-1/+1
| | | | | | | Attempt to silence buildbot failures by pinning the test to a given triple rather than the host's triple. llvm-svn: 302941
* [Sema] Support implicit scalar to vector conversionsSimon Dardis2017-05-121-0/+328
This patch teaches clang to perform implicit scalar to vector conversions when one of the operands of a binary vector expression is a scalar which can be converted to the element type of the vector without truncation following GCC's implementation. If the (constant) scalar is can be casted safely, it is implicitly casted to the vector elements type and splatted to produce a vector of the same type. Contributions from: Petar Jovanovic Reviewers: bruno, vkalintiris Differential Revision: https://reviews.llvm.org/D25866 llvm-svn: 302935
OpenPOWER on IntegriCloud