| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 1 |
| ; Bound: 24 |
| ; Schema: 0 |
| OpCapability Shader |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint GLCompute %unused_entry_point "unused_entry_point" |
| OpExecutionMode %unused_entry_point LocalSize 1 1 1 |
| OpName %main "main" |
| OpName %b "b" |
| OpName %c "c" |
| OpName %unused_entry_point "unused_entry_point" |
| %void = OpTypeVoid |
| %3 = OpTypeFunction %void |
| %int = OpTypeInt 32 1 |
| %_ptr_Function_int = OpTypePointer Function %int |
| %int_2 = OpConstant %int 2 |
| %uint = OpTypeInt 32 0 |
| %uint_1 = OpConstant %uint 1 |
| %main = OpFunction %void None %3 |
| %4 = OpLabel |
| %b = OpVariable %_ptr_Function_int Function |
| %c = OpVariable %_ptr_Function_int Function |
| OpStore %b %int_2 |
| %9 = OpLoad %int %b None |
| %10 = OpLoad %int %b None |
| %12 = OpBitcast %uint %10 |
| %13 = OpNot %uint %12 |
| %14 = OpIAdd %uint %13 %uint_1 |
| %16 = OpBitcast %int %14 |
| %17 = OpBitcast %uint %9 |
| %18 = OpBitcast %uint %16 |
| %19 = OpISub %uint %17 %18 |
| %20 = OpBitcast %int %19 |
| OpStore %c %20 |
| OpReturn |
| OpFunctionEnd |
| %unused_entry_point = OpFunction %void None %3 |
| %23 = OpLabel |
| OpReturn |
| OpFunctionEnd |