blob: d9143c56de362ab374d335a32be776385178c08c [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 1
; Bound: 16
; 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
%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
%11 = OpSNegate %int %10
%12 = OpISub %int %9 %11
OpStore %c %12
OpReturn
OpFunctionEnd
%unused_entry_point = OpFunction %void None %3
%15 = OpLabel
OpReturn
OpFunctionEnd