mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-15 23:31:37 +00:00
Give ATTR_VEX higher priority when generating the disassembler context table. Fixes disassembling of VEX instructions with 'pp'=00. Fixes subset of PR10678.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138552 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ea03659d23
commit
113061d39b
@ -84,3 +84,6 @@
|
||||
|
||||
# CHECK: vcvtps2pd %xmm0, %ymm0
|
||||
0xc5 0xfc 0x5a 0xc0
|
||||
|
||||
# CHECK: vandps (%rdx), %xmm1, %xmm7
|
||||
0xc5 0xf0 0x54 0x3a
|
||||
|
@ -515,6 +515,8 @@ void DisassemblerTables::emitContextTable(raw_ostream &o, uint32_t &i) const {
|
||||
o << "IC_VEX_XD";
|
||||
else if ((index & ATTR_VEX) && (index & ATTR_XS))
|
||||
o << "IC_VEX_XS";
|
||||
else if (index & ATTR_VEX)
|
||||
o << "IC_VEX";
|
||||
else if ((index & ATTR_64BIT) && (index & ATTR_REXW) && (index & ATTR_XS))
|
||||
o << "IC_64BIT_REXW_XS";
|
||||
else if ((index & ATTR_64BIT) && (index & ATTR_REXW) && (index & ATTR_XD))
|
||||
@ -538,8 +540,6 @@ void DisassemblerTables::emitContextTable(raw_ostream &o, uint32_t &i) const {
|
||||
o << "IC_XD";
|
||||
else if (index & ATTR_OPSIZE)
|
||||
o << "IC_OPSIZE";
|
||||
else if (index & ATTR_VEX)
|
||||
o << "IC_VEX";
|
||||
else
|
||||
o << "IC";
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user