xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGenOpenCL/vectorLoadStore.cl (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc// RUN: %clang_cc1 %s -emit-llvm -O0 -o - | FileCheck %s
2*f4a2713aSLionel Sambuc
3*f4a2713aSLionel Sambuctypedef char char3 __attribute((ext_vector_type(3)));;
4*f4a2713aSLionel Sambuc
5*f4a2713aSLionel Sambuc// Check for optimized vec3 load/store which treats vec3 as vec4.
6*f4a2713aSLionel Sambucvoid foo(char3 *P, char3 *Q) {
7*f4a2713aSLionel Sambuc  *P = *Q;
8*f4a2713aSLionel Sambuc  // CHECK: %{{.*}} = shufflevector <4 x i8> %{{.*}}, <4 x i8> undef, <3 x i32> <i32 0, i32 1, i32 2>
9*f4a2713aSLionel Sambuc}
10