File: reordered_if_blocks_dst.spvasm

package info (click to toggle)
spirv-tools 2026.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 28,900 kB
  • sloc: cpp: 477,281; javascript: 5,908; python: 3,326; ansic: 488; sh: 450; ruby: 88; makefile: 18; lisp: 9
file content (87 lines) | stat: -rw-r--r-- 3,334 bytes parent folder | download | duplicates (20)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
               OpCapability Shader
          %1 = OpExtInstImport "GLSL.std.450"
               OpMemoryModel Logical GLSL450
               OpEntryPoint Fragment %4 "main" %8 %44
               OpExecutionMode %4 OriginUpperLeft
               OpSource ESSL 310
               OpName %4 "main"
               OpName %8 "v"
               OpName %44 "color"
               OpDecorate %8 RelaxedPrecision
               OpDecorate %8 Location 0
               OpDecorate %9 RelaxedPrecision
               OpDecorate %18 RelaxedPrecision
               OpDecorate %19 RelaxedPrecision
               OpDecorate %20 RelaxedPrecision
               OpDecorate %21 RelaxedPrecision
               OpDecorate %22 RelaxedPrecision
               OpDecorate %24 RelaxedPrecision
               OpDecorate %25 RelaxedPrecision
               OpDecorate %26 RelaxedPrecision
               OpDecorate %27 RelaxedPrecision
               OpDecorate %29 RelaxedPrecision
               OpDecorate %30 RelaxedPrecision
               OpDecorate %31 RelaxedPrecision
               OpDecorate %34 RelaxedPrecision
               OpDecorate %35 RelaxedPrecision
               OpDecorate %36 RelaxedPrecision
               OpDecorate %37 RelaxedPrecision
               OpDecorate %38 RelaxedPrecision
               OpDecorate %39 RelaxedPrecision
               OpDecorate %40 RelaxedPrecision
               OpDecorate %41 RelaxedPrecision
               OpDecorate %42 RelaxedPrecision
               OpDecorate %44 RelaxedPrecision
               OpDecorate %44 Location 0
               OpDecorate %45 RelaxedPrecision
          %2 = OpTypeVoid
          %3 = OpTypeFunction %2
          %6 = OpTypeFloat 32
          %7 = OpTypePointer Input %6
          %8 = OpVariable %7 Input
         %10 = OpConstant %6 0
         %11 = OpTypeBool
         %15 = OpTypeVector %6 4
         %16 = OpTypePointer Function %15
         %23 = OpConstant %6 0.5
         %32 = OpConstant %6 -0.5
         %33 = OpConstant %6 -0.300000012
         %43 = OpTypePointer Output %15
         %44 = OpVariable %43 Output
          %4 = OpFunction %2 None %3
          %5 = OpLabel
          %9 = OpLoad %6 %8
         %12 = OpFOrdLessThanEqual %11 %9 %10
               OpSelectionMerge %14 None
               OpBranchConditional %12 %28 %13
         %13 = OpLabel
         %18 = OpLoad %6 %8
         %19 = OpExtInst %6 %1 Sqrt %18
         %20 = OpLoad %6 %8
         %21 = OpExtInst %6 %1 FSign %20
         %22 = OpLoad %6 %8
         %24 = OpExtInst %6 %1 FMax %22 %23
         %25 = OpLoad %6 %8
         %26 = OpExtInst %6 %1 Floor %25
         %27 = OpCompositeConstruct %15 %19 %21 %24 %26
               OpBranch %14
         %28 = OpLabel
         %29 = OpLoad %6 %8
         %30 = OpExtInst %6 %1 Log %29
         %31 = OpLoad %6 %8
         %34 = OpExtInst %6 %1 FClamp %31 %32 %33
         %35 = OpFMul %6 %30 %34
         %36 = OpLoad %6 %8
         %37 = OpExtInst %6 %1 Sin %36
         %38 = OpLoad %6 %8
         %39 = OpExtInst %6 %1 Cos %38
         %40 = OpLoad %6 %8
         %41 = OpExtInst %6 %1 Exp %40
         %42 = OpCompositeConstruct %15 %35 %37 %39 %41
               OpBranch %14
         %14 = OpLabel
         %45 = OpPhi %15 %27 %13 %42 %28
               OpStore %44 %45
               OpReturn
               OpFunctionEnd