blob: 0a4a92e0c0668db0a57a9cfdd2b7cea7c0ae926a [file] [log] [blame]
// RUN: clspv -int8 %s -o %t.spv
// RUN: spirv-dis -o %t2.spvasm %t.spv
// RUN: FileCheck %s < %t2.spvasm
// RUN: spirv-val --target-env vulkan1.0 %t.spv
// CHECK-DAG: %[[float:[0-9a-zA-Z_]+]] = OpTypeFloat 32
// CHECK-DAG: %[[uint:[0-9a-zA-Z_]+]] = OpTypeInt 32 0
// CHECK-DAG: %[[uint_0:[0-9a-zA-Z_]+]] = OpConstant %[[uint]] 0
// CHECK: %[[__original_id_21:[0-9]+]] = OpConvertUToF %[[float]] %[[__original_id_20:[0-9]+]]
kernel void __attribute__((reqd_work_group_size(1, 1, 1))) foo(global float* dst, global uint* src)
{
*dst = convert_float(*src);
}