bug-binutils
[Top][All Lists]
Advanced

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

[Bug gas/23526] New: 32-bit address can be encoded with addr32 prefix


From: hjl.tools at gmail dot com
Subject: [Bug gas/23526] New: 32-bit address can be encoded with addr32 prefix
Date: Tue, 14 Aug 2018 08:13:42 +0000

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

            Bug ID: 23526
           Summary: 32-bit address can be encoded with addr32 prefix
           Product: binutils
           Version: 2.32 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gas
          Assignee: unassigned at sourceware dot org
          Reporter: hjl.tools at gmail dot com
  Target Milestone: ---
            Target: x86-64

address@hidden binutils]$ cat 2.s
        .allow_index_reg
        mov    0xff332211, %eax
        mov    -0xccddef(,%eiz,), %eax
        mov    %eax, 0xff332211
        mov    %eax, -0xccddef(,%eiz,)
        mov    -0xccddef(,%eiz,), %ebx
        mov    %ebx, -0xccddef(,%eiz,)
address@hidden binutils]$ gcc -c 2.s
address@hidden binutils]$ ./objdump -dw 2.o

2.o:     file format elf64-x86-64


Disassembly of section .text:

0000000000000000 <.text>:
   0:   a1 11 22 33 ff 00 00 00 00      movabs 0xff332211,%eax
   9:   67 8b 04 25 11 22 33 ff         mov    0xff332211,%eax
  11:   a3 11 22 33 ff 00 00 00 00      movabs %eax,0xff332211
  1a:   67 89 04 25 11 22 33 ff         mov    %eax,0xff332211
  22:   67 8b 1c 25 11 22 33 ff         mov    0xff332211,%ebx
  2a:   67 89 1c 25 11 22 33 ff         mov    %ebx,0xff332211
address@hidden binutils]$ cat 3.s
        mov    0xff332211, %ebx
        mov    %ebx, 0xff332211
address@hidden binutils]$ gcc -c 3.s
3.s: Assembler messages:
3.s:1: Error: unsupported instruction `mov'
3.s:2: Error: unsupported instruction `mov'
address@hidden binutils]$

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