summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenOpenCL/vector_literals_valid.cl
Commit message (Collapse)AuthorAgeFilesLines
* [OpenCL] Fix vector literal test broken in rL367675.Anastasia Stulova2019-08-051-2/+2
| | | | | | | Avoid checking alignment unnecessary that is not portable among targets. llvm-svn: 367823
* [OpenCL] Allow OpenCL C style vector initialization in C++Anastasia Stulova2019-08-021-16/+59
| | | | | | | | | | | Allow creating vector literals from other vectors. float4 a = (float4)(1.0f, 2.0f, 3.0f, 4.0f); float4 v = (float4)(a.s23, a.s01); Differential revision: https://reviews.llvm.org/D65286 llvm-svn: 367675
* This handles the missing cases of opencl vector literals.Tanya Lattner2011-07-151-0/+22
Test cases provided by Anton Lokhmot. llvm-svn: 135322
OpenPOWER on IntegriCloud