[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL for-2.0 06/11] tcg-sparc: Dont handle constant argume
From: |
Richard Henderson |
Subject: |
[Qemu-devel] [PULL for-2.0 06/11] tcg-sparc: Dont handle constant arguments to ext32 ops |
Date: |
Mon, 17 Mar 2014 11:20:38 -0700 |
Signed-off-by: Richard Henderson <address@hidden>
---
tcg/sparc/tcg-target.c | 16 ++++------------
1 file changed, 4 insertions(+), 12 deletions(-)
diff --git a/tcg/sparc/tcg-target.c b/tcg/sparc/tcg-target.c
index 30a2eaa..3ae014d 100644
--- a/tcg/sparc/tcg-target.c
+++ b/tcg/sparc/tcg-target.c
@@ -1405,18 +1405,10 @@ static inline void tcg_out_op(TCGContext *s, TCGOpcode
opc, const TCGArg *args,
c = ARITH_UDIVX;
goto gen_arith;
case INDEX_op_ext32s_i64:
- if (const_args[1]) {
- tcg_out_movi(s, TCG_TYPE_I64, args[0], (int32_t)args[1]);
- } else {
- tcg_out_arithi(s, args[0], args[1], 0, SHIFT_SRA);
- }
+ tcg_out_arithi(s, args[0], args[1], 0, SHIFT_SRA);
break;
case INDEX_op_ext32u_i64:
- if (const_args[1]) {
- tcg_out_movi_imm32(s, args[0], args[1]);
- } else {
- tcg_out_arithi(s, args[0], args[1], 0, SHIFT_SRL);
- }
+ tcg_out_arithi(s, args[0], args[1], 0, SHIFT_SRL);
break;
case INDEX_op_brcond_i64:
@@ -1527,8 +1519,8 @@ static const TCGTargetOpDef sparc_op_defs[] = {
{ INDEX_op_neg_i64, { "r", "rJ" } },
{ INDEX_op_not_i64, { "r", "rJ" } },
- { INDEX_op_ext32s_i64, { "r", "ri" } },
- { INDEX_op_ext32u_i64, { "r", "ri" } },
+ { INDEX_op_ext32s_i64, { "r", "r" } },
+ { INDEX_op_ext32u_i64, { "r", "r" } },
{ INDEX_op_brcond_i64, { "rZ", "rJ" } },
{ INDEX_op_setcond_i64, { "r", "rZ", "rJ" } },
--
1.8.5.3
- [Qemu-devel] [PULL for-2.0 00/11] tcg-sparc updates, Richard Henderson, 2014/03/17
- [Qemu-devel] [PULL for-2.0 01/11] tcg-sparc: Fix ld64 for 32-bit mode, Richard Henderson, 2014/03/17
- [Qemu-devel] [PULL for-2.0 02/11] tcg-sparc: Fix tlb read, Richard Henderson, 2014/03/17
- [Qemu-devel] [PULL for-2.0 03/11] tcg-sparc: Tidy call+jump patterns, Richard Henderson, 2014/03/17
- [Qemu-devel] [PULL for-2.0 04/11] tcg-sparc: Use intptr_t as appropriate, Richard Henderson, 2014/03/17
- [Qemu-devel] [PULL for-2.0 05/11] tcg-sparc: Don't handle remainder, Richard Henderson, 2014/03/17
- [Qemu-devel] [PULL for-2.0 06/11] tcg-sparc: Dont handle constant arguments to ext32 ops,
Richard Henderson <=
- [Qemu-devel] [PULL for-2.0 07/11] tcg-sparc: Improve tcg_out_movi, Richard Henderson, 2014/03/17
- [Qemu-devel] [PULL for-2.0 08/11] tcg-sparc: Use TCGMemOp within qemu_ldst routines, Richard Henderson, 2014/03/17
- [Qemu-devel] [PULL for-2.0 09/11] tcg-sparc: Tidy tcg_out_tlb_load interface, Richard Henderson, 2014/03/17
- [Qemu-devel] [PULL for-2.0 10/11] tcg-sparc: Convert to new ldst helpers, Richard Henderson, 2014/03/17
- [Qemu-devel] [PULL for-2.0 11/11] tcg-sparc: Convert to new ldst opcodes, Richard Henderson, 2014/03/17
- Re: [Qemu-devel] [PULL for-2.0 00/11] tcg-sparc updates, Peter Maydell, 2014/03/17