blob: 9ddfafeb10351d1082b7823ded2f6d0c8d07ad41 [file] [log] [blame]
; 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
%int_n2147483647 = OpConstant %int -2147483647
%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
OpStore %c %int_n2147483647
%19 = OpLoad %int %c
OpReturnValue %19
OpFunctionEnd