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

            Bug ID: 24263
           Summary: Missing 0x67 prefix for VSIB address without base
                    register
           Product: binutils
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gas
          Assignee: unassigned at sourceware dot org
          Reporter: hjl.tools at gmail dot com
  Target Milestone: ---
            Target: x32

[hjl@gnu-4 x32]$ make AS=as
as --x32  -o x.o x.s
objdump -dw x.o

x.o:     file format elf32-x86-64


Disassembly of section .text:

00000000 <.text>:
   0:   c4 22 1d 92 1c 3d 0c 00 00 00   vgatherdps %ymm12,0xc(,%ymm15,1),%ymm11
[hjl@gnu-4 x32]$ 

Since VSIB index is sign-extended, without base register, 0xc(,%ymm15,1)
will point to the wrong address if there is no 0x67 address size prefix.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to