bug-binutils
[Top][All Lists]
Advanced

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

[Bug gas/32382] beq is misassembled


From: hjl.tools at gmail dot com
Subject: [Bug gas/32382] beq is misassembled
Date: Thu, 21 Nov 2024 23:01:30 +0000

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

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|as for RISC-V generates     |beq is misassembled
                   |gobbledygook with unusual   |
                   |but valid label formatting  |
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2024-11-21
     Ever confirmed|0                           |1
            Version|2.43.1                      |2.44 (HEAD)

--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> ---
$ cat y.s
        beq t0, t1, 16
$ ./gas/as-new -o y.o y.s
$ ./binutils/objdump -dwr y.o

y.o:     file format elf64-littleriscv


Disassembly of section .text:

0000000000000000 <.text>:
   0:   00629463                bne     t0,t1,8 <.text+0x8>
   4:   0000006f                j       4 <.text+0x4>   4: R_RISCV_JAL 
*ABS*+0x10
$ llvm-mc --triple=riscv64-linux --filetype=obj  -o y.o y.s
$ ./binutils/objdump -dwr y.o

y.o:     file format elf64-littleriscv


Disassembly of section .text:

0000000000000000 <.text>:
   0:   00628863                beq     t0,t1,10 <.text+0x10>
$

-- 
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]