733fd74c29
An ES2-compatible for loop supports six separate rel-ops: < <= > >= != == Each rel-op, in addition to its expected usage, is also able to represent a loop which never terminates, as well as a loop which terminates instantly. Since SkVM unrolls these loops, we should make sure we do it properly. We now have unit tests for all of these cases. Change-Id: Icae04d48bc158bf8c0c98db97f76756a1a29110c Reviewed-on: https://skia-review.googlesource.com/c/skia/+/445756 Auto-Submit: John Stiles <johnstiles@google.com> Reviewed-by: Brian Osman <brianosman@google.com> Commit-Queue: John Stiles <johnstiles@google.com>
11 lines
223 B
Plaintext
11 lines
223 B
Plaintext
4 registers, 8 instructions:
|
|
0 r0 = uniform32 ptr0 14
|
|
1 r1 = uniform32 ptr0 18
|
|
2 r2 = uniform32 ptr0 1C
|
|
3 r3 = uniform32 ptr0 20
|
|
loop:
|
|
4 store32 ptr1 r0
|
|
5 store32 ptr2 r1
|
|
6 store32 ptr3 r2
|
|
7 store32 ptr4 r3
|