[Libre-soc-dev] setvl lost its reserved fields (was: setvl gaining CTR mode)

Jacob Lifshay programmerjake at gmail.com
Sun Jul 3 07:28:40 BST 2022


On Sat, Jul 2, 2022, 23:20 Jacob Lifshay <programmerjake at gmail.com> wrote:

> On Sat, Jul 2, 2022, 23:10 Jacob Lifshay <programmerjake at gmail.com> wrote:
>
>> setvl 0, 0, imm
>>     mvl = vl = imm
>>
>
> svstep. can be setvl. 0, 0, 1, vf=1 (encoded with SVi = 0)
>

if you want the other svstep modes, setvl 0, 0, imm, vf=1 can be changed to
always be svstep imm for all immediates. if you want a fixed length
vertical-first loop (which imho would be much more uncommon than vf=0
fixed-length setvl), do:

li tmp, ~0 # or any other value >= imm
setvl 0, tmp, imm, vf=1 # tmp is a temporary gpr

Jacob

>


More information about the Libre-soc-dev mailing list