xref: /aosp_15_r20/external/skia/tests/sksl/shared/Ossfuzz58483.asm.frag (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1               OpCapability Shader
2          %1 = OpExtInstImport "GLSL.std.450"
3               OpMemoryModel Logical GLSL450
4               OpEntryPoint Fragment %_entrypoint_v "_entrypoint" %sk_FragColor
5               OpExecutionMode %_entrypoint_v OriginUpperLeft
6               OpName %sk_FragColor "sk_FragColor"
7               OpName %_entrypoint_v "_entrypoint_v"
8               OpName %main "main"
9               OpDecorate %sk_FragColor RelaxedPrecision
10               OpDecorate %sk_FragColor Location 0
11               OpDecorate %sk_FragColor Index 0
12      %float = OpTypeFloat 32
13    %v4float = OpTypeVector %float 4
14%_ptr_Output_v4float = OpTypePointer Output %v4float
15%sk_FragColor = OpVariable %_ptr_Output_v4float Output
16       %void = OpTypeVoid
17          %9 = OpTypeFunction %void
18    %float_0 = OpConstant %float 0
19    %v2float = OpTypeVector %float 2
20         %13 = OpConstantComposite %v2float %float_0 %float_0
21%_ptr_Function_v2float = OpTypePointer Function %v2float
22         %17 = OpTypeFunction %v4float %_ptr_Function_v2float
23%float_0_333333343 = OpConstant %float 0.333333343
24    %float_1 = OpConstant %float 1
25         %25 = OpConstantComposite %v4float %float_1 %float_1 %float_1 %float_1
26%_entrypoint_v = OpFunction %void None %9
27         %10 = OpLabel
28         %14 = OpVariable %_ptr_Function_v2float Function
29               OpStore %14 %13
30         %16 = OpFunctionCall %v4float %main %14
31               OpStore %sk_FragColor %16
32               OpReturn
33               OpFunctionEnd
34       %main = OpFunction %v4float None %17
35         %18 = OpFunctionParameter %_ptr_Function_v2float
36         %19 = OpLabel
37         %20 = OpLoad %v2float %18
38         %22 = OpVectorTimesScalar %v2float %20 %float_0_333333343
39               OpStore %18 %22
40         %23 = OpCompositeExtract %float %22 0
41               OpReturnValue %25
42               OpFunctionEnd
43