Home | History | Annotate | Download | only in CodeGenOpenCL
      1 // RUN: %clang_cc1 %s -O0 -emit-llvm -o - | FileCheck %s
      2 
      3 typedef unsigned char __attribute__((ext_vector_type(3))) uchar3;
      4 
      5 //CHECK: {{%.*}} = shufflevector <3 x i8> {{%.*}}, <3 x i8> <i8 1, i8 1, i8 undef>, <3 x i32> <i32 0, i32 3, i32 2>
      6 
      7 kernel void test_odd_vector1 (uchar3 lhs)
      8 {
      9   lhs.odd = 1;
     10 }
     11 
     12 //CHECK: {{%.*}} = shufflevector <3 x i8> {{%.*}}, <3 x i8> <i8 2, i8 2, i8 undef>, <3 x i32> <i32 0, i32 1, i32 3>
     13 
     14 kernel void test_odd_vector2 (uchar3 lhs)
     15 {
     16   lhs.hi = 2;
     17 }
     18