bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/24633] New: gas/objdump accepts invalid encoding for vextr


From: hgreving at google dot com
Subject: [Bug binutils/24633] New: gas/objdump accepts invalid encoding for vextractf32x8 (possibly others).
Date: Mon, 03 Jun 2019 22:47:09 +0000

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

            Bug ID: 24633
           Summary: gas/objdump accepts invalid encoding for vextractf32x8
                    (possibly others).
           Product: binutils
           Version: 2.32
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: binutils
          Assignee: unassigned at sourceware dot org
          Reporter: hgreving at google dot com
  Target Milestone: ---

objdump does not check the vector length of vextractf32x8

main.s:

.byte 0x62
.byte 0xf3
.byte 0x7d
.byte 0x28
.byte 0x1b
.byte 0xc8
.byte 0x25

as-new --64 main.s
objdump -d a.out
[..]
59:   62 f3 7d 28 1b c8 25    vextractf32x8 $0x25,%ymm1,%xmm0

Intel's manual only lists the EVEX.LL' form (zmm source and ymm destination)

llvm-mc for example is correct:

echo '0x62 0xf3 0x7d 0x28 0x1b 0xc8 0x25' | llvm-mc-7 --disassemble
-triple=x86_64
        .text
<stdin>:1:1: warning: invalid instruction encoding
0x62 0xf3 0x7d 0x28 0x1b 0xc8 0x25
^
<stdin>:1:26: warning: invalid instruction encoding
0x62 0xf3 0x7d 0x28 0x1b 0xc8 0x25
                         ^
<stdin>:1:31: warning: invalid instruction encoding
0x62 0xf3 0x7d 0x28 0x1b 0xc8 0x25
                              ^
and

echo '0x62 0xf3 0x7d 0x48 0x1b 0xc8 0x25' | llvm-mc-7 --disassemble
-triple=x86_64
        .text
        vextractf32x8   $37, %zmm1, %ymm0

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