xref: /aosp_15_r20/external/skia/tests/sksl/spirv/Ossfuzz37627.asm.frag (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1*c8dee2aaSAndroid Build Coastguard Worker               OpCapability Shader
2*c8dee2aaSAndroid Build Coastguard Worker          %1 = OpExtInstImport "GLSL.std.450"
3*c8dee2aaSAndroid Build Coastguard Worker               OpMemoryModel Logical GLSL450
4*c8dee2aaSAndroid Build Coastguard Worker               OpEntryPoint Fragment %main "main"
5*c8dee2aaSAndroid Build Coastguard Worker               OpExecutionMode %main OriginUpperLeft
6*c8dee2aaSAndroid Build Coastguard Worker               OpName %main "main"
7*c8dee2aaSAndroid Build Coastguard Worker               OpName %x "x"
8*c8dee2aaSAndroid Build Coastguard Worker       %void = OpTypeVoid
9*c8dee2aaSAndroid Build Coastguard Worker          %4 = OpTypeFunction %void
10*c8dee2aaSAndroid Build Coastguard Worker       %uint = OpTypeInt 32 0
11*c8dee2aaSAndroid Build Coastguard Worker%_ptr_Function_uint = OpTypePointer Function %uint
12*c8dee2aaSAndroid Build Coastguard Worker     %uint_1 = OpConstant %uint 1
13*c8dee2aaSAndroid Build Coastguard Worker       %main = OpFunction %void None %4
14*c8dee2aaSAndroid Build Coastguard Worker          %5 = OpLabel
15*c8dee2aaSAndroid Build Coastguard Worker          %x = OpVariable %_ptr_Function_uint Function
16*c8dee2aaSAndroid Build Coastguard Worker         %10 = OpLoad %uint %x
17*c8dee2aaSAndroid Build Coastguard Worker         %11 = OpIAdd %uint %10 %uint_1
18*c8dee2aaSAndroid Build Coastguard Worker               OpStore %x %11
19*c8dee2aaSAndroid Build Coastguard Worker         %12 = OpSNegate %uint %11
20*c8dee2aaSAndroid Build Coastguard Worker               OpReturn
21*c8dee2aaSAndroid Build Coastguard Worker               OpFunctionEnd
22