提交 f878d2d2 编写于 作者: L Laurent Desnogues 提交者: Andrzej Zaborowski

ARM back-end: Add TCG not

this patch:

 - implements TCG not.

Laurent
Signed-off-by: NLaurent Desnogues <laurent.desnogues@gmail.com>
Signed-off-by: NAndrzej Zaborowski <andrew.zaborowski@intel.com>
上级 10ee2aaa
...@@ -1427,6 +1427,10 @@ static inline void tcg_out_op(TCGContext *s, int opc, ...@@ -1427,6 +1427,10 @@ static inline void tcg_out_op(TCGContext *s, int opc,
case INDEX_op_neg_i32: case INDEX_op_neg_i32:
tcg_out_dat_imm(s, COND_AL, ARITH_RSB, args[0], args[1], 0); tcg_out_dat_imm(s, COND_AL, ARITH_RSB, args[0], args[1], 0);
break; break;
case INDEX_op_not_i32:
tcg_out_dat_reg(s, COND_AL,
ARITH_MVN, args[0], 0, args[1], SHIFT_IMM_LSL(0));
break;
case INDEX_op_mul_i32: case INDEX_op_mul_i32:
tcg_out_mul32(s, COND_AL, args[0], args[1], args[2]); tcg_out_mul32(s, COND_AL, args[0], args[1], args[2]);
break; break;
...@@ -1561,6 +1565,7 @@ static const TCGTargetOpDef arm_op_defs[] = { ...@@ -1561,6 +1565,7 @@ static const TCGTargetOpDef arm_op_defs[] = {
{ INDEX_op_or_i32, { "r", "r", "rI" } }, { INDEX_op_or_i32, { "r", "r", "rI" } },
{ INDEX_op_xor_i32, { "r", "r", "rI" } }, { INDEX_op_xor_i32, { "r", "r", "rI" } },
{ INDEX_op_neg_i32, { "r", "r" } }, { INDEX_op_neg_i32, { "r", "r" } },
{ INDEX_op_not_i32, { "r", "r" } },
{ INDEX_op_shl_i32, { "r", "r", "ri" } }, { INDEX_op_shl_i32, { "r", "r", "ri" } },
{ INDEX_op_shr_i32, { "r", "r", "ri" } }, { INDEX_op_shr_i32, { "r", "r", "ri" } },
......
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
#define TCG_TARGET_HAS_ext16s_i32 #define TCG_TARGET_HAS_ext16s_i32
#define TCG_TARGET_HAS_neg_i32 #define TCG_TARGET_HAS_neg_i32
#undef TCG_TARGET_HAS_neg_i64 #undef TCG_TARGET_HAS_neg_i64
#define TCG_TARGET_HAS_not_i32
#undef TCG_TARGET_STACK_GROWSUP #undef TCG_TARGET_STACK_GROWSUP
enum { enum {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册