Files
rk35xx-android14/external/clang/test/CodeGenOpenCL/vector_odd.cl
T
hmz007 36ed224bac Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a)
Signed-off-by: hmz007 <hmz007@gmail.com>
Change-Id: Ib87fdbe7a0be7dc961af3500fe9ea4589a127f9f
2024-10-29 18:12:02 +08:00

18 lines
481 B
Common Lisp

// RUN: %clang_cc1 %s -O0 -emit-llvm -o - | FileCheck %s
typedef unsigned char __attribute__((ext_vector_type(3))) uchar3;
//CHECK: {{%.*}} = shufflevector <3 x i8> {{%.*}}, <3 x i8> <i8 1, i8 1, i8 undef>, <3 x i32> <i32 0, i32 3, i32 2>
kernel void test_odd_vector1 (uchar3 lhs)
{
lhs.odd = 1;
}
//CHECK: {{%.*}} = shufflevector <3 x i8> {{%.*}}, <3 x i8> <i8 2, i8 2, i8 undef>, <3 x i32> <i32 0, i32 1, i32 3>
kernel void test_odd_vector2 (uchar3 lhs)
{
lhs.hi = 2;
}