bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/23230] New: aarch64: objdump disassembles invalid mrs


From: i-bugzilla-sourceware-org-kasujfzh at rf dot risimo.net
Subject: [Bug binutils/23230] New: aarch64: objdump disassembles invalid mrs
Date: Thu, 24 May 2018 18:03:05 +0000

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

            Bug ID: 23230
           Summary: aarch64: objdump disassembles invalid mrs
           Product: binutils
           Version: 2.30
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: binutils
          Assignee: unassigned at sourceware dot org
          Reporter: i-bugzilla-sourceware-org-kasujfzh at rf dot risimo.net
  Target Milestone: ---

$ cat mrs.asm
.global main
.section .text
.balign 4

main:
        mrs x0,s0_0_c0_c4_3
        .inst 0xd5200460
        .inst 0xd5300460
        ret
$ as -mcpu=saphira -o mrs.o mrs.asm
$ objdump -d mrs.o 

mrs.o:     file format elf64-littleaarch64


Disassembly of section .text:

0000000000000000 <main>:
   0:   d5200460        mrs     x0, s0_0_c0_c4_3
   4:   d5200460        mrs     x0, s0_0_c0_c4_3
   8:   d5300460        mrs     x0, s2_0_c0_c4_3
   c:   d65f03c0        ret
$

The MRS requires that bit 20 is set. However in 0xd5200460 the bit is not set
and objdump should return ".inst 0xd5200460".

Related problem is that the S value should be either 2 or 3 (depending on bit
o0) but not like in the above case.

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