From patchwork Wed May 1 05:05:36 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 10924595 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id AECB81398 for ; Wed, 1 May 2019 05:29:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A001228DC4 for ; Wed, 1 May 2019 05:29:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9415728E2B; Wed, 1 May 2019 05:29:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.0 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 28B5528DC4 for ; Wed, 1 May 2019 05:29:43 +0000 (UTC) Received: from localhost ([127.0.0.1]:36660 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hLhoM-0000qO-Hj for patchwork-qemu-devel@patchwork.kernel.org; Wed, 01 May 2019 01:29:42 -0400 Received: from eggs.gnu.org ([209.51.188.92]:38548) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hLhRo-0006oE-Dj for qemu-devel@nongnu.org; Wed, 01 May 2019 01:06:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hLhRl-00036o-D1 for qemu-devel@nongnu.org; Wed, 01 May 2019 01:06:24 -0400 Received: from mail-pg1-x543.google.com ([2607:f8b0:4864:20::543]:46742) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hLhRl-00036V-7a for qemu-devel@nongnu.org; Wed, 01 May 2019 01:06:21 -0400 Received: by mail-pg1-x543.google.com with SMTP id n2so7846960pgg.13 for ; Tue, 30 Apr 2019 22:06:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=XwoaUdVIRqjp6Whyx2wUcZDo65i8rf+ItxdtJjgV/mU=; b=F4k64hXY//oO6HmbKkxd9YWheaP9IbgnoTlAHeTa920tyi2MeIdMf7ll8DcQhiGCHB DDPzWWJwjAKO8k9Z+jlGMvFqtdTsXeRQv8+vFE/xDKHDLlhP8ker8WN3MRfntkL7UpfP qwugmd998DW30MHgE9tEOYisGOy6Gkbiv97NPHg1B9d/8DFENQhwgDJsboEXHgs9QAQx uu2LcuBRd78kSmfbXkStqmm8fpdPFIMsY0pwYiNZ4mSUmQoJs0bRRyl435QyoSxWrd3v O0WJHizH9l4gpeqE5kPKQFrUPzivkYTlj6M5AnCpIEuwVb6dfc82HnvsnQjsLAeMBnHy FJ9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=XwoaUdVIRqjp6Whyx2wUcZDo65i8rf+ItxdtJjgV/mU=; b=YmG5+qnBlMJXXHWYkBCtYU3fUFP2HeRyWKjROmUXf11cRMpgA4Z6B3vhtab+mJ+2iD wqeh63Xx7vTf7F1lBbSFZhItdq8REMyoE8TnPQuwEfMnBsE/AGnIMhRIhPVqaEXJRHlg STsLK4uUcFgwzmSttafHPzYenpoD+RHFWwQDTP8fp3TrwBJP73GHSl93VDX7c0G6VIPf eKcd9EFoJr76aAX5w30oLbb7fjWZT8VjpqNshGY5lcKYrNnS3129dFdHOdtTJO97Eg7N ISu8qeUffcfyyuByM5dt/ZZdEv1vuXrJ4w7I2vGsJvL7IffSrb18wC/NGQ47a8YwWsaE IIMw== X-Gm-Message-State: APjAAAUY8XeRTniiXIDDgQYZSB2JnTXTaUuXJUvL5T1pfpzE9hY2bZhi uvoJyk5yrOIBTN5sBppqbvzXvvatIzk= X-Google-Smtp-Source: APXvYqyVxb2Y8UagwHQghtJuZ+G1O/8vkfHhFppSWGt2uR3bJTh8ZfVWj4DXZBx3UJbmu461l3UZ/g== X-Received: by 2002:a63:6ac1:: with SMTP id f184mr73580019pgc.25.1556687180059; Tue, 30 Apr 2019 22:06:20 -0700 (PDT) Received: from localhost.localdomain (97-113-189-189.tukw.qwest.net. [97.113.189.189]) by smtp.gmail.com with ESMTPSA id t127sm9687251pfb.106.2019.04.30.22.06.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 30 Apr 2019 22:06:19 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Tue, 30 Apr 2019 22:05:36 -0700 Message-Id: <20190501050536.15580-30-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190501050536.15580-1-richard.henderson@linaro.org> References: <20190501050536.15580-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::543 Subject: [Qemu-devel] [PATCH v2 29/29] target/xtensa: Use tcg_gen_abs_i32 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Max Filippov Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP Cc: Max Filippov Signed-off-by: Richard Henderson Acked-by: Max Filippov --- target/xtensa/translate.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/target/xtensa/translate.c b/target/xtensa/translate.c index 301c8e3161..b063fa85f2 100644 --- a/target/xtensa/translate.c +++ b/target/xtensa/translate.c @@ -1709,14 +1709,7 @@ void restore_state_to_opc(CPUXtensaState *env, TranslationBlock *tb, static void translate_abs(DisasContext *dc, const OpcodeArg arg[], const uint32_t par[]) { - TCGv_i32 zero = tcg_const_i32(0); - TCGv_i32 neg = tcg_temp_new_i32(); - - tcg_gen_neg_i32(neg, arg[1].in); - tcg_gen_movcond_i32(TCG_COND_GE, arg[0].out, - arg[1].in, zero, arg[1].in, neg); - tcg_temp_free(neg); - tcg_temp_free(zero); + tcg_gen_abs_i32(arg[0].out, arg[1].in); } static void translate_add(DisasContext *dc, const OpcodeArg arg[],