diff options
author | Yaxun Liu <Yaxun.Liu@amd.com> | 2016-06-08 15:11:21 +0000 |
---|---|---|
committer | Yaxun Liu <Yaxun.Liu@amd.com> | 2016-06-08 15:11:21 +0000 |
commit | de5698de405866349ba1db4be46093909b582841 (patch) | |
tree | 8d7cdc09971f1fb12c81ec3d12526749d0a5ed2c /unittests/AST | |
parent | e4079792195290bec7a0243d1d4c7b4a5a9d0dc9 (diff) | |
download | clang-de5698de405866349ba1db4be46093909b582841.tar.gz |
[OpenCL] Fix __builtin_astype for vec3 types.
__builtin_astype does not generate correct LLVM IR for vec3 types. This patch inserts bitcasts to/from vec4 when necessary in addition to generating vector shuffle. Sema and codegen tests are added.
Differential Revision: http://reviews.llvm.org/D20133
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@272153 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/AST')
0 files changed, 0 insertions, 0 deletions