1 ; RUN: llc -mtriple=spirv-unknown-vulkan-compute -O0 %s -o - | FileCheck %s
2 ; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv-unknown-vulkan-compute %s -o - -filetype=obj | spirv-val %}
4 target triple = "spirv-unknown-vulkan1.3-compute"
6 ; Function Attrs: convergent noinline norecurse nounwind optnone
7 define spir_func noundef i32 @_Z7processv() #0 {
9 ; CHECK: %[[#entry:]] = OpLabel
10 ; CHECK: OpSelectionMerge %[[#merge:]] None
11 ; CHECK: OpBranchConditional %[[#]] %[[#left:]] %[[#right:]]
13 %0 = call token @llvm.experimental.convergence.entry()
14 %1 = alloca i32, align 4
15 br i1 true, label %left, label %right
17 ; CHECK: %[[#left]] = OpLabel
18 ; CHECK: OpBranch %[[#merge]]
23 ; CHECK: %[[#right]] = OpLabel
24 ; CHECK: OpBranch %[[#merge]]
29 ; CHECK: %[[#merge]] = OpLabel
30 ; CHECK: OpReturnValue %[[#]]
35 ; Function Attrs: convergent nocallback nofree nosync nounwind willreturn memory(none)
36 declare token @llvm.experimental.convergence.entry() #1
38 ; Function Attrs: convergent nocallback nofree nosync nounwind willreturn memory(none)
39 declare token @llvm.experimental.convergence.loop() #1
42 attributes #0 = { convergent noinline norecurse nounwind optnone "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" }
43 attributes #1 = { convergent nocallback nofree nosync nounwind willreturn memory(none) }
44 attributes #2 = { convergent norecurse "frame-pointer"="all" "hlsl.numthreads"="1,1,1" "hlsl.shader"="compute" "no-trapping-math"="true" "stack-protector-buffer-size"="8" }
45 attributes #3 = { convergent }
47 !llvm.module.flags = !{!0, !1, !2}
50 !0 = !{i32 1, !"wchar_size", i32 4}
51 !1 = !{i32 4, !"dx.disable_optimizations", i32 1}
52 !2 = !{i32 7, !"frame-pointer", i32 2}