RISC-V Pseudoinstructions - Illegal operands?

technosf
Posts: 16
Joined: Fri Dec 28, 2018 9:55 pm

RISC-V Pseudoinstructions - Illegal operands?

Postby technosf » Tue Aug 16, 2022 9:51 pm

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

technosf
Posts: 16
Joined: Fri Dec 28, 2018 9:55 pm

Re: RISC-V Pseudoinstructions - Illegal operands?

Postby technosf » Tue Aug 16, 2022 11:31 pm

Answering my own question - I was using li when I needed to use la :roll:

Who is online

Users browsing this forum: No registered users and 140 guests