2021-01-05 19:31:15 +00:00
|
|
|
13 registers, 35 instructions:
|
2021-01-08 19:45:42 +00:00
|
|
|
0 r0 = uniform32 ptr0 0
|
|
|
|
1 r1 = uniform32 ptr0 C
|
2021-01-05 19:31:15 +00:00
|
|
|
2 r2 = splat 0 (0)
|
|
|
|
3 r3 = splat 40000000 (2)
|
|
|
|
4 r4 = splat 3F800000 (1)
|
|
|
|
5 r5 = mul_f32 r2 r0
|
|
|
|
6 r6 = splat 1 (1.4012985e-45)
|
2020-12-22 16:28:59 +00:00
|
|
|
7 r7 = splat 2 (2.8025969e-45)
|
2021-01-05 19:31:15 +00:00
|
|
|
8 r8 = splat 3 (4.2038954e-45)
|
2020-12-22 16:28:59 +00:00
|
|
|
loop:
|
|
|
|
9 r9 = index
|
2021-01-05 19:31:15 +00:00
|
|
|
10 r10 = mul_f32 r3 r9
|
|
|
|
11 r10 = add_f32 r10 r5
|
|
|
|
12 r9 = mul_f32 r2 r9
|
|
|
|
13 r11 = add_f32 r9 r0
|
|
|
|
14 r9 = add_f32 r9 r5
|
|
|
|
15 r9 = add_f32 r9 r4
|
|
|
|
16 r9 = div_f32 r4 r9
|
|
|
|
17 r10 = mul_f32 r10 r9
|
|
|
|
18 r9 = mul_f32 r11 r9
|
|
|
|
19 r10 = trunc r10
|
|
|
|
20 r9 = trunc r9
|
|
|
|
21 r9 = mul_i32 r9 r1
|
|
|
|
22 r9 = add_i32 r10 r9
|
|
|
|
23 r9 = shl_i32 r9 2
|
2021-01-08 19:45:42 +00:00
|
|
|
24 r10 = gather32 ptr0 4 r9
|
2021-01-05 19:31:15 +00:00
|
|
|
25 r11 = add_i32 r9 r6
|
2021-01-08 19:45:42 +00:00
|
|
|
26 r11 = gather32 ptr0 4 r11
|
2021-01-05 19:31:15 +00:00
|
|
|
27 r12 = add_i32 r9 r7
|
2021-01-08 19:45:42 +00:00
|
|
|
28 r12 = gather32 ptr0 4 r12
|
2021-01-05 19:31:15 +00:00
|
|
|
29 r9 = add_i32 r9 r8
|
2021-01-08 19:45:42 +00:00
|
|
|
30 r9 = gather32 ptr0 4 r9
|
|
|
|
31 store32 ptr1 r10
|
|
|
|
32 store32 ptr2 r11
|
|
|
|
33 store32 ptr3 r12
|
|
|
|
34 store32 ptr4 r9
|