verilator/test_regress/t/t_reloop_offset.out
Geza Lore 267c6f6dce
Improve Reloop to accept constant index offsets. (#2939)
V3Reloop now can roll up indexed assignments between arrays if there is a
constant offset between indices on the left and right hand sides, e.g.:

a[0] = b[2];
a[1] = b[3];
...
a[x] = b[x + 2];
2021-05-10 18:01:11 +01:00

18 lines
283 B
Plaintext

shift down 1
oarray[63] is 0
oarray[62] is 63
oarray[61] is 62
oarray[32] is 33
oarray[ 2] is 3
oarray[ 1] is 2
oarray[ 0] is 1
shift up 2
oarray[63] is 61
oarray[62] is 60
oarray[61] is 59
oarray[32] is 30
oarray[ 2] is 0
oarray[ 1] is 2
oarray[ 0] is 1
*-* All Finished *-*