Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGenOpenCL / vector_odd.cl
blobc44328bfaa71dc82444fb6b86646d80139c34193
1 // RUN: %clang_cc1 %s -O0 -emit-llvm -o - | FileCheck %s
3 typedef unsigned char __attribute__((ext_vector_type(3))) uchar3;
5 //CHECK: {{%.*}} = shufflevector <3 x i8> {{%.*}}, <3 x i8> <i8 1, i8 1, i8 undef>, <3 x i32> <i32 0, i32 3, i32 2>
7 kernel void test_odd_vector1 (uchar3 lhs)
9 lhs.odd = 1;
12 //CHECK: {{%.*}} = shufflevector <3 x i8> {{%.*}}, <3 x i8> <i8 2, i8 2, i8 undef>, <3 x i32> <i32 0, i32 1, i32 3>
14 kernel void test_odd_vector2 (uchar3 lhs)
16 lhs.hi = 2;