mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 19:12:56 +02:00
Fix the disassembly of the X86 crc32 instruction. Bug 10702 and rdar://8795217
llvm-svn: 138771
This commit is contained in:
parent
4d90e53381
commit
f1aef98ad2
@ -24,3 +24,6 @@
|
|||||||
|
|
||||||
# CHECK: pshufb
|
# CHECK: pshufb
|
||||||
0x0f 0x38 0x00 0xc0
|
0x0f 0x38 0x00 0xc0
|
||||||
|
|
||||||
|
# CHECK: crc32b %al, %eax
|
||||||
|
0xf2 0x0f 0x38 0xf0 0xc0
|
||||||
|
@ -68,7 +68,7 @@ namespace X86Local {
|
|||||||
DC = 7, DD = 8, DE = 9, DF = 10,
|
DC = 7, DD = 8, DE = 9, DF = 10,
|
||||||
XD = 11, XS = 12,
|
XD = 11, XS = 12,
|
||||||
T8 = 13, P_TA = 14,
|
T8 = 13, P_TA = 14,
|
||||||
A6 = 15, A7 = 16
|
A6 = 15, A7 = 16, TF = 17
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -805,6 +805,7 @@ void RecognizableInstr::emitDecodePath(DisassemblerTables &tables) const {
|
|||||||
opcodeToSet = Opcode;
|
opcodeToSet = Opcode;
|
||||||
break;
|
break;
|
||||||
case X86Local::T8:
|
case X86Local::T8:
|
||||||
|
case X86Local::TF:
|
||||||
opcodeType = THREEBYTE_38;
|
opcodeType = THREEBYTE_38;
|
||||||
if (needsModRMForDecode(Form))
|
if (needsModRMForDecode(Form))
|
||||||
filter = new ModFilter(isRegFormat(Form));
|
filter = new ModFilter(isRegFormat(Form));
|
||||||
|
Loading…
Reference in New Issue
Block a user