i386: Clear vex instead of vex.evex
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 4 Apr 2018 11:36:44 +0000 (04:36 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 4 Apr 2018 11:36:44 +0000 (04:36 -0700)
commitcaf0678c84b5b55fbc4bcc853954745a4ad8b658
tree659854869daa9b3293528a92e33aea9d6644bc65
parent142b7a144b46af91cd59a41a8f87f5f3b0338cdf
i386: Clear vex instead of vex.evex

"vex" has many fields to control how to decode an instruction.  Clear
all fields in "vex" before decoding an instruction to avoid using values
left from the previous instruction.

gas/

PR binutils/23025
* testsuite/gas/i386/prefix.s: Add tests for vcvtpd2dq with
VEX and EVEX prefixes.
* testsuite/gas/i386/prefix.d: Updated.

opcodes/

PR binutils/23025
* i386-dis.c (get_valid_dis386): Don't set vex.prefix nor vex.w
to 0.
(print_insn): Clear vex instead of vex.evex.
gas/ChangeLog
gas/testsuite/gas/i386/prefix.d
gas/testsuite/gas/i386/prefix.s
opcodes/ChangeLog
opcodes/i386-dis.c