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