| 1 |
// RUN: %clang_cc1 %s -triple spir -cl-std=CL2.0 -fdeclare-opencl-builtins -finclude-default-header -emit-llvm-bc -o %t.bc |
| 2 |
|
| 3 |
// RUN: llvm-spirv %t.bc -o %t.spv |
| 4 |
// RUN: spirv-val %t.spv |
| 5 |
// RUN: llvm-spirv %t.spv -to-text -o - | FileCheck %s --check-prefix=CHECK-SPIRV |
| 6 |
// RUN: llvm-spirv %t.spv -r -emit-opaque-pointers -o - | llvm-dis -o - | FileCheck %s --check-prefix=CHECK-LLVM |
| 7 |
|
| 8 |
// CHECK-SPIRV: Capability GroupNonUniformBallot |
| 9 |
// CHECK-SPIRV: Decorate {{[0-9]+}} BuiltIn 4418 |
| 10 |
|
| 11 |
// CHECK-LLVM: test_mask |
| 12 |
// CHECK-LLVM: call spir_func <4 x i32> @_Z21get_sub_group_gt_maskv() |
| 13 |
|
| 14 |
kernel void test_mask(global uint4 *out) |
| 15 |
{ |
| 16 |
*out = get_sub_group_gt_mask(); |
| 17 |
} |