Received: from eggs.gnu.org ([2001:4830:134:3::10]:35282) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WPc9u-0006s9-Tl for qemu-devel@nongnu.org; Mon, 17 Mar 2014 14:21:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WPc9p-0004M8-2n for qemu-devel@nongnu.org; Mon, 17 Mar 2014 14:21:10 -0400 Received: from mail-qc0-x235.google.com ([2607:f8b0:400d:c01::235]:49302) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WPc9o-0004M4-Tx for qemu-devel@nongnu.org; Mon, 17 Mar 2014 14:21:04 -0400 Received: by mail-qc0-f181.google.com with SMTP id e9so6470322qcy.12 for ; Mon, 17 Mar 2014 11:21:04 -0700 (PDT) Sender: Richard Henderson From: Richard Henderson Date: Mon, 17 Mar 2014 11:20:38 -0700 Message-Id: <1395080443-5853-7-git-send-email-rth@twiddle.net> In-Reply-To: <1395080443-5853-1-git-send-email-rth@twiddle.net> References: <1395080443-5853-1-git-send-email-rth@twiddle.net> Subject: [Qemu-devel] [PULL for-2.0 06/11] tcg-sparc: Dont handle constant arguments to ext32 ops List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: blauwirbel@gmail.com, peter.maydell@linaro.org Signed-off-by: Richard Henderson --- 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