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

            Bug ID: 20637
           Summary: 32-bit XOP instructions should silently ignore REX_B
           Product: binutils
           Version: 2.28 (HEAD)
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: binutils
          Assignee: unassigned at sourceware dot org
          Reporter: ram...@hex-rays.com
  Target Milestone: ---

Created attachment 9523
  --> https://sourceware.org/bugzilla/attachment.cgi?id=9523&action=edit
simple patch (no updates to changelog or testsuite)

32-bit XOP instructions should silently ignore REX_B (confirmed with Intel's
XED tool below)

$ hd xx.bin 
00000000  8f c9 78 e2 4d c2                                 |..x.M.|
00000006
$ xed -32 -ir xx.bin
XDIS 0: XOP       XOP        8FC978E24DC2             vphsubwd xmm1, xmmword
ptr [ebp-0x3e]
$ objdump-bad -Mintel -mi386 -b binary -D xx.bin 

xx.bin:     file format binary


Disassembly of section .data:

00000000 <.data>:
   0:   8f c9 78 e2 4d c2       vphsubwd xmm1,XMMWORD PTR [r13d-0x3e]
$ objdump-good -Mintel -mi386 -b binary -D xx.bin 

xx.bin:     file format binary


Disassembly of section .data:

00000000 <.data>:
   0:   8f c9 78 e2 4d c2       vphsubwd xmm1,XMMWORD PTR [ebp-0x3e]

Simple patch attached (no updates to changelog or testsuite).

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