1; SPIR-V
2; Version: 1.3
3; Generator: Khronos Glslang Reference Front End; 7
4; Bound: 19
5; Schema: 0
6               OpCapability Shader
7               OpCapability DemoteToHelperInvocationEXT
8               OpExtension "SPV_EXT_demote_to_helper_invocation"
9          %1 = OpExtInstImport "GLSL.std.450"
10               OpMemoryModel Logical GLSL450
11               OpEntryPoint Fragment %main "main" %FragColor
12               OpExecutionMode %main OriginUpperLeft
13               OpSource GLSL 450
14               OpSourceExtension "GL_EXT_demote_to_helper_invocation"
15               OpName %main "main"
16               OpName %FragColor "FragColor"
17               OpDecorate %FragColor Location 0
18       %void = OpTypeVoid
19          %3 = OpTypeFunction %void
20       %bool = OpTypeBool
21%_ptr_Function_bool = OpTypePointer Function %bool
22      %float = OpTypeFloat 32
23    %v4float = OpTypeVector %float 4
24%_ptr_Output_v4float = OpTypePointer Output %v4float
25  %FragColor = OpVariable %_ptr_Output_v4float Output
26    %float_1 = OpConstant %float 1
27    %float_0 = OpConstant %float 0
28         %19 = OpConstantComposite %v4float %float_1 %float_0 %float_0 %float_1
29       %main = OpFunction %void None %3
30          %5 = OpLabel
31          %9 = OpIsHelperInvocationEXT %bool
32               OpDemoteToHelperInvocationEXT
33         %10 = OpLogicalNot %bool %9
34               OpSelectionMerge %12 None
35               OpBranchConditional %10 %11 %12
36         %11 = OpLabel
37               OpStore %FragColor %19
38               OpBranch %12
39         %12 = OpLabel
40               OpReturn
41               OpFunctionEnd
42