1 // RUN: %clang_cc1 -finclude-default-header -fnative-half-type -triple \
2 // RUN: dxil-pc-shadermodel6.3-compute %s -emit-llvm -disable-llvm-passes -o - | \
3 // RUN: FileCheck %s --check-prefixes=CHECK,CHECK-DXIL
4 // RUN: %clang_cc1 -finclude-default-header -fnative-half-type -triple \
5 // RUN: spirv-pc-vulkan-compute %s -emit-llvm -disable-llvm-passes -o - | \
6 // RUN: FileCheck %s --check-prefixes=CHECK,CHECK-SPIRV
8 // Test basic lowering to runtime function call for int values.
10 // CHECK-LABEL: define {{.*}}test
12 // CHECK-SPIRV: %[[#entry_tok0:]] = call token @llvm.experimental.convergence.entry()
13 // CHECK-SPIRV: %[[RET:.*]] = call spir_func i1 @llvm.spv.wave.all(i1 %{{[a-zA-Z0-9]+}}) [ "convergencectrl"(token %[[#entry_tok0]]) ]
14 // CHECK-DXIL: %[[RET:.*]] = call i1 @llvm.dx.wave.all(i1 %{{[a-zA-Z0-9]+}})
15 // CHECK: ret i1 %[[RET]]
16 return WaveActiveAllTrue(p1);