diff options
author | Aurelien Jarno <aurelien@aurel32.net> | 2009-09-30 14:16:12 +0200 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2009-09-30 14:16:12 +0200 |
commit | d68592022bfd5d9d60cb326bef40f71589b31e23 (patch) | |
tree | 59e0727842cf23a456588f0ad7fe28ee4211f854 /tcg/tcg.c | |
parent | e9a6625e8dc03f18d5a7271eeb933203122ac659 (diff) |
Revert part of 6692b043198d58a12317009edb98654c6839f043
Committed by accident.
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'tcg/tcg.c')
-rw-r--r-- | tcg/tcg.c | 12 |
1 files changed, 4 insertions, 8 deletions
@@ -1385,16 +1385,12 @@ static void temp_save(TCGContext *s, int temp, TCGRegSet allocated_regs) ts->val_type = TEMP_VAL_MEM; break; case TEMP_VAL_CONST: + reg = tcg_reg_alloc(s, tcg_target_available_regs[ts->type], + allocated_regs); if (!ts->mem_allocated) temp_allocate_frame(s, temp); - if (ts->type == TCG_TYPE_I32) { - tcg_out_sti(s, ts->type, ts->val, ts->mem_reg, ts->mem_offset); - } else { - reg = tcg_reg_alloc(s, tcg_target_available_regs[ts->type], - allocated_regs); - tcg_out_movi(s, ts->type, reg, ts->val); - tcg_out_st(s, ts->type, reg, ts->mem_reg, ts->mem_offset); - } + tcg_out_movi(s, ts->type, reg, ts->val); + tcg_out_st(s, ts->type, reg, ts->mem_reg, ts->mem_offset); ts->val_type = TEMP_VAL_MEM; break; case TEMP_VAL_MEM: |