target-tilegx: Implement v?int_* instructions.
PATCH 1/1 target-tilegx: Implement v?int_* instructions.
From: Chen Gang <[email protected]>
Signed-off-by Chen Gang <[email protected]>
--- target-tilegx/helper.h | 5 ++++ target-tilegx/simd_helper.c | 56 +++++++++++++++++++++++++++++++++++++++++++++ target-tilegx/translate.c | 14 ++++++++++++ 3 files changed, 75 insertions(+)
target-tilegx/helper.h +5 -0
@@ -10,6 +10,11 @@ DEF_HELPER_FLAGS_3(cmula, TCG_CALL_NO_RWG_SE, i64, i64, i64, i64) DEF_HELPER_FLAGS_3(cmulaf, TCG_CALL_NO_RWG_SE, i64, i64, i64, i64) DEF_HELPER_FLAGS_4(cmul2, TCG_CALL_NO_RWG_SE, i64, i64, i64, int, int) +DEF_HELPER_FLAGS_2(v1int_h, TCG_CALL_NO_RWG_SE, i64, i64, i64) +DEF_HELPER_FLAGS_2(v1int_l, TCG_CALL_NO_RWG_SE, i64, i64, i64) +DEF_HELPER_FLAGS_2(v2int_h, TCG_CALL_NO_RWG_SE, i64, i64, i64) +DEF_HELPER_FLAGS_2(v2int_l, TCG_CALL_NO_RWG_SE, i64, i64, i64) + DEF_HELPER_FLAGS_2(v1multu, TCG_CALL_NO_RWG_SE, i64, i64, i64) DEF_HELPER_FLAGS_2(v1shl, TCG_CALL_NO_RWG_SE, i64, i64, i64)DEF_HELPER_FLAGS_2 (v1shru,TCG_CALL_NO_RWG_SE , i64, i64, i64)
target-tilegx/simd_helper.c +56 -0
59 lines not on this page · raw message
target-tilegx/translate.c +14 -0
@@ -1334,10 +1334,17 @@ static TileExcp gen_rrr_opcode(DisasContext *dc, unsigned opext,case OE_RRR (V1DOTPUS ,0 ,X0 ):case OE_RRR (V1DOTPU ,0 ,X0 ):case OE_RRR (V1DOTP ,0 ,X0 ): +return TILEGX_EXCP_OPCODE_UNIMPLEMENTED ;case OE_RRR (V1INT_H ,0 ,X0 ):case OE_RRR (V1INT_H ,0 ,X1 ): +gen_helper_v1int_h (TDEST , tsrca, tsrcb); + mnemonic ="v1int_h" ; +break ;case OE_RRR (V1INT_L ,0 ,X0 ):case OE_RRR (V1INT_L ,0 ,X1 ): +gen_helper_v1int_l (TDEST , tsrca, tsrcb); + mnemonic ="v1int_l" ; +break ;case OE_RRR (V1MAXU ,0 ,X0 ):case OE_RRR (V1MAXU ,0 ,X1 ):case OE_RRR (V1MINU ,0 ,X0 ):
@@ -1403,10 +1410,17 @@ static TileExcp gen_rrr_opcode(DisasContext *dc, unsigned opext,case OE_RRR (V2CMPNE ,0 ,X1 ):case OE_RRR (V2DOTPA ,0 ,X0 ):case OE_RRR (V2DOTP ,0 ,X0 ): +return TILEGX_EXCP_OPCODE_UNIMPLEMENTED ;case OE_RRR (V2INT_H ,0 ,X0 ):case OE_RRR (V2INT_H ,0 ,X1 ): +gen_helper_v2int_h (TDEST , tsrca, tsrcb); + mnemonic ="v2int_h" ; +break ;case OE_RRR (V2INT_L ,0 ,X0 ):case OE_RRR (V2INT_L ,0 ,X1 ): +gen_helper_v2int_l (TDEST , tsrca, tsrcb); + mnemonic ="v2int_l" ; +break ;case OE_RRR (V2MAXS ,0 ,X0 ):case OE_RRR (V2MAXS ,0 ,X1 ):case OE_RRR (V2MINS ,0 ,X0 ):
Signature · 1 line
1.9.3