bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/30512] New: objdump 2.40 for risc-v doesn't have "addi" in


From: amitch1999 at gmail dot com
Subject: [Bug binutils/30512] New: objdump 2.40 for risc-v doesn't have "addi" instruction
Date: Mon, 05 Jun 2023 07:08:31 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=30512

            Bug ID: 30512
           Summary: objdump 2.40 for risc-v doesn't have "addi"
                    instruction
           Product: binutils
           Version: 2.40
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: binutils
          Assignee: unassigned at sourceware dot org
          Reporter: amitch1999 at gmail dot com
  Target Milestone: ---

Created attachment 14916
  --> https://sourceware.org/bugzilla/attachment.cgi?id=14916&action=edit
binutils 2.39 vs 2.40 <objdump -D> of the same ELF

I have noticed the objdump for risc-v calls the "addi" instruction "add", and
doesn't generates the "addi" instruction at all.
I looked at the op code at it matches the "addi" instruction but in the dump
it's named "add", and also the third argument is a number and not a register.
Same for shift instructions.
In binutils 2.39 it doesn't seem to happen.

Might not be a bug, since it's pretty clear the the third argument is an
immediate, but I think these two different instructions should have different
names in the dump as well.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]