e2k: Add packuswh instr.
This commit is contained in:
parent
8c318f6306
commit
e33a9d258b
@ -93,8 +93,9 @@ DEF_HELPER_2(pmovmskpd, i64, i64, i64)
|
||||
|
||||
/* Packed packs */
|
||||
DEF_HELPER_2(packsshb, i64, i64, i64)
|
||||
DEF_HELPER_2(packsswh, i64, i64, i64)
|
||||
DEF_HELPER_2(packushb, i64, i64, i64)
|
||||
DEF_HELPER_2(packsswh, i64, i64, i64)
|
||||
DEF_HELPER_2(packuswh, i64, i64, i64)
|
||||
|
||||
/* Packed unpacks */
|
||||
DEF_HELPER_2(punpcklbh, i64, i64, i64)
|
||||
|
@ -178,6 +178,7 @@ GEN_HELPER_PACKED(pmovmskpd, sd, MOVMASK(ub, sd))
|
||||
GEN_HELPER_PACKED(packsshb, sh, PACK(sb, sh, satsb))
|
||||
GEN_HELPER_PACKED(packushb, uh, PACK(ub, sh, satub))
|
||||
GEN_HELPER_PACKED(packsswh, sw, PACK(sh, sw, satsh))
|
||||
GEN_HELPER_PACKED(packuswh, sw, PACK(uh, sw, satuh))
|
||||
|
||||
#define GEN_HELPER_PACKED_UNPACK(name, type, offset) \
|
||||
GEN_HELPER_PACKED(name, type, { \
|
||||
|
@ -3131,6 +3131,7 @@ static void gen_op(DisasContext *ctx, Instr *instr)
|
||||
case OP_PACKSSHB: gen_alopf1_ddd(instr, gen_helper_packsshb); break;
|
||||
case OP_PACKUSHB: gen_alopf1_ddd(instr, gen_helper_packushb); break;
|
||||
case OP_PACKSSWH: gen_alopf1_ddd(instr, gen_helper_packsswh); break;
|
||||
case OP_PACKUSWH: gen_alopf1_ddd(instr, gen_helper_packuswh); break;
|
||||
case OP_PUNPCKLBH: gen_alopf1_ddd(instr, gen_helper_punpcklbh); break;
|
||||
case OP_PUNPCKLHW: gen_alopf1_ddd(instr, gen_helper_punpcklhw); break;
|
||||
case OP_PUNPCKLWD: gen_alopf1_ddd(instr, gen_helper_punpcklwd); break;
|
||||
@ -3428,7 +3429,6 @@ static void gen_op(DisasContext *ctx, Instr *instr)
|
||||
case OP_MOVXA:
|
||||
case OP_MOVXC:
|
||||
case OP_MPSADBH:
|
||||
case OP_PACKUSWH:
|
||||
case OP_PFHADDS:
|
||||
case OP_PFHSUBS:
|
||||
case OP_PFADDSUBS:
|
||||
|
Loading…
Reference in New Issue
Block a user