diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2011-09-12 09:51:41 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2011-09-12 09:55:25 +0000 |
commit | 6a6719b22e9d5603b456833cfd27c3a7d6797ab3 (patch) | |
tree | af3ddce0d6bae689db89f29cf7781ce3265c3d37 | |
parent | 2cd3c27baee1badd51d79adec8c11509213d2a89 (diff) |
tcg/arm: Remove unused tcg_out_addi()2011.09.rebasing
Remove the unused function tcg_out_addi() from the ARM TCG backend;
this fixes a compilation failure on ARM hosts with newer gcc.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
-rw-r--r-- | tcg/arm/tcg-target.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/tcg/arm/tcg-target.c b/tcg/arm/tcg-target.c index 93eb0f1a4..ce4760d23 100644 --- a/tcg/arm/tcg-target.c +++ b/tcg/arm/tcg-target.c @@ -1820,21 +1820,6 @@ static inline void tcg_out_st(TCGContext *s, TCGType type, int arg, tcg_out_st32(s, COND_AL, arg, arg1, arg2); } -static void tcg_out_addi(TCGContext *s, int reg, tcg_target_long val) -{ - if (val > 0) - if (val < 0x100) - tcg_out_dat_imm(s, COND_AL, ARITH_ADD, reg, reg, val); - else - tcg_abort(); - else if (val < 0) { - if (val > -0x100) - tcg_out_dat_imm(s, COND_AL, ARITH_SUB, reg, reg, -val); - else - tcg_abort(); - } -} - static inline void tcg_out_mov(TCGContext *s, TCGType type, int ret, int arg) { tcg_out_dat_reg(s, COND_AL, ARITH_MOV, ret, 0, arg, SHIFT_IMM_LSL(0)); |