2021-07-30 18:59:06 +00:00
|
|
|
; SPIR-V
|
|
|
|
; Version: 1.3
|
|
|
|
; Generator: Google Tint Compiler; 0
|
|
|
|
; Bound: 20
|
|
|
|
; Schema: 0
|
|
|
|
OpCapability Shader
|
|
|
|
OpMemoryModel Logical GLSL450
|
|
|
|
OpEntryPoint GLCompute %unused_entry_point "unused_entry_point"
|
|
|
|
OpExecutionMode %unused_entry_point LocalSize 1 1 1
|
|
|
|
OpName %unused_entry_point "unused_entry_point"
|
|
|
|
OpName %add_int_min_explicit "add_int_min_explicit"
|
|
|
|
OpName %a "a"
|
|
|
|
OpName %b "b"
|
|
|
|
OpName %c "c"
|
|
|
|
%void = OpTypeVoid
|
|
|
|
%1 = OpTypeFunction %void
|
|
|
|
%int = OpTypeInt 32 1
|
|
|
|
%5 = OpTypeFunction %int
|
|
|
|
%int_n2147483648 = OpConstant %int -2147483648
|
|
|
|
%_ptr_Function_int = OpTypePointer Function %int
|
|
|
|
%12 = OpConstantNull %int
|
|
|
|
%int_1 = OpConstant %int 1
|
2022-08-04 19:48:27 +00:00
|
|
|
%int_n2147483647 = OpConstant %int -2147483647
|
2021-07-30 18:59:06 +00:00
|
|
|
%unused_entry_point = OpFunction %void None %1
|
|
|
|
%4 = OpLabel
|
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|
|
|
|
%add_int_min_explicit = OpFunction %int None %5
|
|
|
|
%8 = OpLabel
|
|
|
|
%a = OpVariable %_ptr_Function_int Function %12
|
|
|
|
%b = OpVariable %_ptr_Function_int Function %12
|
|
|
|
%c = OpVariable %_ptr_Function_int Function %12
|
|
|
|
OpStore %a %int_n2147483648
|
|
|
|
%13 = OpLoad %int %a
|
|
|
|
%15 = OpIAdd %int %13 %int_1
|
|
|
|
OpStore %b %15
|
2022-08-04 19:48:27 +00:00
|
|
|
OpStore %c %int_n2147483647
|
2021-07-30 18:59:06 +00:00
|
|
|
%19 = OpLoad %int %c
|
|
|
|
OpReturnValue %19
|
|
|
|
OpFunctionEnd
|