e2k: Fix decoding fcomb and pshufb.

This commit is contained in:
Denis Drakhnia 2021-02-07 10:57:29 +02:00 committed by Denis Drakhnia
parent 177922ca64
commit b692d4c596
1 changed files with 2 additions and 2 deletions

View File

@ -4458,7 +4458,7 @@ static void alop_decode(Instr *instr)
case FCMB1: { case FCMB1: {
int opc1 = comb_opc1(instr); int opc1 = comb_opc1(instr);
int opc2 = comb_opc2(instr); int opc2 = comb_opc2(instr);
if (!icomb_check(instr, opc1, opc2)) { if (!fcomb_check(instr, opc1, opc2)) {
e2k_tr_gen_exception(instr->ctx, E2K_EXCP_ILLOPC); e2k_tr_gen_exception(instr->ctx, E2K_EXCP_ILLOPC);
return; return;
} }
@ -4471,7 +4471,7 @@ static void alop_decode(Instr *instr)
&& is_chan_0134(instr->chan) && is_chan_0134(instr->chan)
&& instr->ctx->version >= 2) && instr->ctx->version >= 2)
{ {
alop->format = ALOPF21; alop->format = ALOPF12_PSHUFH;
alop->op = OP_PSHUFB; alop->op = OP_PSHUFB;
} else { } else {
e2k_tr_gen_exception(instr->ctx, E2K_EXCP_ILLOPC); e2k_tr_gen_exception(instr->ctx, E2K_EXCP_ILLOPC);