> oceans# pkg_info -E /usr/local/riscv64-unknown-elf/bin/objdump
> /usr/local/riscv64-unknown-elf/bin/objdump: riscv-elf-binutils-2.40p1
> riscv-elf-binutils-2.40p1 binutils for riscv-elf cross-development
>
> I'm using this one since the one in base is unuseable.  Also in the riscv
> port objdump they mix up add op codes with addi op codes, ie.
>
> oceans# grep f8840513 kernel.dump | head
> ffffffc00023c74c:       f8840513                add     a0,s0,-120
> ffffffc0002470e8:       f8840513                add     a0,s0,-120
>
> these are definitely addi op codes as this test program shows:

Are you sure this isn't just an abbreviated form where the assembler
will choose the right instruction (addi) when it sees the immediate
parameter at the end?

https://stackoverflow.com/questions/43550982/riscv-assembler-output-is-not-what-i-expected-for-register-and-immediate-opera?rq=3

-- 
May the most significant bit of your life be positive.

Reply via email to