Page 1 of 1

RISC-V Pseudoinstructions - Illegal operands?

Posted: Tue Aug 16, 2022 9:51 pm
by technosf
I am compiling a RISC-V main program and having mixed results with psuedoinstructions:

mv works

li does not compile:

Code: Select all

Error: illegal operands `li t0,_dest'
Is there documentation on which psuedos are supported?

Cheers

Re: RISC-V Pseudoinstructions - Illegal operands?

Posted: Tue Aug 16, 2022 11:31 pm
by technosf
Answering my own question - I was using li when I needed to use la :roll: