blob: b7eb829642f9308517c4dc9fbaf9c4b67f7b2f75 [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
%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
%17 = OpIAdd %int %int_n2147483648 %int_1
OpStore %c %17
%19 = OpLoad %int %c
OpReturnValue %19
OpFunctionEnd