xref: /aosp_15_r20/external/skia/tests/sksl/shared/ArrayCast.skrp (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
172 instructions
2
3[immutable slots]
4i0 = 0x3F800000 (1.0)
5i1 = 0x40000000 (2.0)
6i2 = 0x40400000 (3.0)
7i3 = 0x40800000 (4.0)
8i4 = 0x00000001 (1.401298e-45)
9i5 = 0x00000001 (1.401298e-45)
10i6 = 0x00000001 (1.401298e-45)
11i7 = 0x00000002 (2.802597e-45)
12i8 = 0x00000002 (2.802597e-45)
13i9 = 0x00000002 (2.802597e-45)
14i10 = 0x00000003 (4.203895e-45)
15i11 = 0x00000003 (4.203895e-45)
16i12 = 0x00000003 (4.203895e-45)
17i13 = 0x3F800000 (1.0)
18i14 = 0x40000000 (2.0)
19i15 = 0x40400000 (3.0)
20i16 = 0x40800000 (4.0)
21i17 = 0x40A00000 (5.0)
22i18 = 0x40C00000 (6.0)
23i19 = 0x40E00000 (7.0)
24i20 = 0x41000000 (8.0)
25
26store_src_rg                   coords = src.rg
27init_lane_masks                CondMask = LoopMask = RetMask = true
28copy_4_immutables_unmasked     f[0], f[1], f[2], f[3] = i0..3 [0x3F800000 (1.0), 0x40000000 (2.0), 0x40400000 (3.0), 0x40800000 (4.0)]
29copy_4_slots_unmasked          h[0], h[1], h[2], h[3] = f[0], f[1], f[2], f[3]
30copy_4_slots_unmasked          f[0], f[1], f[2], f[3] = h[0], h[1], h[2], h[3]
31copy_4_slots_unmasked          h[0], h[1], h[2], h[3] = f[0], f[1], f[2], f[3]
32copy_4_immutables_unmasked     i3[0], i3[1](0) = i4..7 [0x00000001 (1.401298e-45), 0x00000001 (1.401298e-45), 0x00000001 (1.401298e-45), 0x00000002 (2.802597e-45)]
33copy_4_immutables_unmasked     i3[1](1..2), i3[2](0..1) = i8..11 [0x00000002 (2.802597e-45), 0x00000002 (2.802597e-45), 0x00000003 (4.203895e-45), 0x00000003 (4.203895e-45)]
34copy_constant                  i3[2](2) = 0x00000003 (4.203895e-45)
35copy_4_slots_unmasked          s3[0], s3[1](0) = i3[0], i3[1](0)
36copy_4_slots_unmasked          s3[1](1..2), s3[2](0..1) = i3[1](1..2), i3[2](0..1)
37copy_slot_unmasked             s3[2](2) = i3[2](2)
38copy_4_slots_unmasked          i3[0], i3[1](0) = s3[0], s3[1](0)
39copy_4_slots_unmasked          i3[1](1..2), i3[2](0..1) = s3[1](1..2), s3[2](0..1)
40copy_slot_unmasked             i3[2](2) = s3[2](2)
41copy_4_slots_unmasked          s3[0], s3[1](0) = i3[0], i3[1](0)
42copy_4_slots_unmasked          s3[1](1..2), s3[2](0..1) = i3[1](1..2), i3[2](0..1)
43copy_slot_unmasked             s3[2](2) = i3[2](2)
44copy_4_immutables_unmasked     h2x2[0] = i13..16 [0x3F800000 (1.0), 0x40000000 (2.0), 0x40400000 (3.0), 0x40800000 (4.0)]
45copy_4_immutables_unmasked     h2x2[1] = i17..20 [0x40A00000 (5.0), 0x40C00000 (6.0), 0x40E00000 (7.0), 0x41000000 (8.0)]
46copy_4_slots_unmasked          f2x2[0] = h2x2[0]
47copy_4_slots_unmasked          f2x2[1] = h2x2[1]
48copy_4_slots_unmasked          f2x2[0] = h2x2[0]
49copy_4_slots_unmasked          f2x2[1] = h2x2[1]
50copy_4_slots_unmasked          h2x2[0] = f2x2[0]
51copy_4_slots_unmasked          h2x2[1] = f2x2[1]
52copy_4_slots_unmasked          $0..3 = f[0], f[1], f[2], f[3]
53copy_4_slots_unmasked          $12..15 = h[0], h[1], h[2], h[3]
54copy_4_slots_unmasked          $4..7 = $12..15
55cmpeq_4_floats                 $0..3 = equal($0..3, $4..7)
56bitwise_and_2_ints             $0..1 &= $2..3
57bitwise_and_int                $0 &= $1
58copy_3_slots_unmasked          $1..3 = i3[0]
59copy_4_slots_unmasked          $12..15 = s3[0], s3[1](0)
60copy_4_slots_unmasked          $16..19 = s3[1](1..2), s3[2](0..1)
61copy_slot_unmasked             $20 = s3[2](2)
62copy_3_slots_unmasked          $4..6 = $12..14
63cmpeq_3_ints                   $1..3 = equal($1..3, $4..6)
64bitwise_and_int                $2 &= $3
65bitwise_and_int                $1 &= $2
66copy_3_slots_unmasked          $2..4 = i3[1]
67copy_3_slots_unmasked          $5..7 = $15..17
68cmpeq_3_ints                   $2..4 = equal($2..4, $5..7)
69bitwise_and_int                $3 &= $4
70bitwise_and_int                $2 &= $3
71copy_3_slots_unmasked          $3..5 = i3[2]
72copy_3_slots_unmasked          $6..8 = $18..20
73cmpeq_3_ints                   $3..5 = equal($3..5, $6..8)
74bitwise_and_int                $4 &= $5
75bitwise_and_int                $3 &= $4
76bitwise_and_int                $2 &= $3
77bitwise_and_int                $1 &= $2
78bitwise_and_int                $0 &= $1
79copy_4_slots_unmasked          $1..4 = f2x2[0]
80copy_4_slots_unmasked          $12..15 = h2x2[0]
81copy_4_slots_unmasked          $16..19 = h2x2[1]
82copy_4_slots_unmasked          $5..8 = $12..15
83cmpeq_4_floats                 $1..4 = equal($1..4, $5..8)
84bitwise_and_2_ints             $1..2 &= $3..4
85bitwise_and_int                $1 &= $2
86copy_4_slots_unmasked          $2..5 = f2x2[1]
87copy_4_slots_unmasked          $6..9 = $16..19
88cmpeq_4_floats                 $2..5 = equal($2..5, $6..9)
89bitwise_and_2_ints             $2..3 &= $4..5
90bitwise_and_int                $2 &= $3
91bitwise_and_int                $1 &= $2
92bitwise_and_int                $0 &= $1
93swizzle_4                      $0..3 = ($0..3).xxxx
94copy_4_uniforms                $4..7 = colorRed
95copy_4_uniforms                $8..11 = colorGreen
96mix_4_ints                     $0..3 = mix($4..7, $8..11, $0..3)
97load_src                       src.rgba = $0..3
98