From patchwork Sat Apr 20 07:34:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 162585 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp316406jan; Sat, 20 Apr 2019 01:03:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqyFxmZ4eksSZzWtc6LyqBoaaYtUXhvZ+CcnU6zSqUHkqifPxXp4UXncDWs+8H2JqlouKlPE X-Received: by 2002:a5d:6706:: with SMTP id o6mr2867948wru.36.1555747393908; Sat, 20 Apr 2019 01:03:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555747393; cv=none; d=google.com; s=arc-20160816; b=bEHH1AwTDeFZMCzYwyNjspwM1zXtV2D51aFsDz9uASWT6BoTPD2cnTDebAq+aANnmd qHMPaUwn9sB0MQqOpNCXsZL05WtM4Q3F/9CZ8u5hMvkbhtYxuvhpGRkUfU+wG28kePag m2Q0yrpVKhppWwiq3Err2kEl6GujLRa5Ib4uGtUJqHufvQ4Xty60OkvzkJ1UDrbSI7bO Wsg+fn7dJ6SzFu27VmV7xdlyWJ4wGtX94TazZS0dW4ebZC7rqpwsrCc96G1CiCaMU6NG m5pq1k7o4oI3WKuuKj6omYOgdZWbrPGegug+BMQSto0hCbEhEyEXnICc1RjZf0GfiolF KkxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:references:in-reply-to :message-id:date:to:from:dkim-signature; bh=6My5ewhJQTmrC7aPZrFJpyFIvvkO/0+nmBhhQ9PFA+k=; b=GTwULSBXl6rRGq5ZjwkWMQ++UePZgK/jZNJ8ZK3+95xdbToMpQfElkqLamdOYhmcX7 CF8rR6l7oKBcn3AZVYywtfJOnvOt+LHRUhWbk188GzsuMzQSSsEbQ1jPAgDYu3hmLbyz 2vFVx96GT6sYpVUWUsjJfk0ysyctByFO1q/Mee6h8T4I7cBiFSf+KZWeVH2SQUhfwxN0 8Ou1oBPwbflK4Odz74E3ACcJTLUiyLnf2riauI1QvM1DqbK7NBoljuj56irccKpsG/uQ xMl82+HHYaMNKGFWyl54xu7s+wRNI66Vo+GrVymQffWs+7AaNp3RD8Nx2FNAK2QekSh1 e8Rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=VCtlkd1w; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 129si5216632wmd.196.2019.04.20.01.03.13 for (version=TLS1 cipher=AES128-SHA bits=128/128); Sat, 20 Apr 2019 01:03:13 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=VCtlkd1w; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([127.0.0.1]:38457 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hHkxs-0007Pp-Tr for patch@linaro.org; Sat, 20 Apr 2019 04:03:12 -0400 Received: from eggs.gnu.org ([209.51.188.92]:40565) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hHkXY-00012p-Hs for qemu-devel@nongnu.org; Sat, 20 Apr 2019 03:36:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hHkXW-0000nT-Ge for qemu-devel@nongnu.org; Sat, 20 Apr 2019 03:36:00 -0400 Received: from mail-pf1-x444.google.com ([2607:f8b0:4864:20::444]:37102) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hHkXW-0008T6-A8 for qemu-devel@nongnu.org; Sat, 20 Apr 2019 03:35:58 -0400 Received: by mail-pf1-x444.google.com with SMTP id 8so3469384pfr.4 for ; Sat, 20 Apr 2019 00:35:22 -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=6My5ewhJQTmrC7aPZrFJpyFIvvkO/0+nmBhhQ9PFA+k=; b=VCtlkd1w9plw02C6y3qV3WppgBB7Nh7i2ft8+M6T15fhTGSlaWktvrOR+u2oL3aJiq c5ZTfmxnMLQiSd7ycV1scZ29yhceZWZLdQLW1JiN0SUdb7p3ymZSs2/qEJmfHZScD4gF MazgtX/XV+mbATF2bG77E3j6x0kg4Nuc7KIFHi0zy3PCwzee2IplHMcAq+CeyMqaa7F1 TCZxlhxFXJvCdBQ0ro1uNojmrBgxSqZP5HQZFG1WOwYOat10P7N3+XBDT2xeFwSQ9yYV yiqy3WGq1LCgGLcNwdGbPRMS6jy2jljcDyGs0zfvPRcPML2b37TOX4H8OQt9SaJt16Bf jzbA== 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=6My5ewhJQTmrC7aPZrFJpyFIvvkO/0+nmBhhQ9PFA+k=; b=TB0O+NCp2mio9tZyEypGVArpnnOyfE8JX45ESSmfjR4mEAVnQUjK0dzX4UuuFKYdPh yPh47aOUhkwphAuPC8ONSuQVU/I0QDD0HCta5AOscxA7/d7bX9RZpUx/oDPOfPIyI0b1 d4WicFwvR+lnuusz8nyoDgSfgbtHhjbbKlMOYbVJYsu/pIc8DX4jtOUncFjkCaxEeT0u 7qc96BH0W3ixL2fES/DMgjIua52HuZP8p96TL5cM4MHEwzsNYmaQYcDh1qwv+P9HyosV vZPZQ9moDPmqpq2SuzLZnYOwxd+P726X58wKfcmgaN+QsC5wyZa5ILT3tEJ2mEixMlqC X3Iw== X-Gm-Message-State: APjAAAWLChe/e4EZSV3mRbN4gczYD8s0p5sqNwtkhEbSWwavrOwxmkek 7SeyREpvUEZR+86dzY+2fKvAwl5FO4E= X-Received: by 2002:a62:6e05:: with SMTP id j5mr8517570pfc.5.1555745721726; Sat, 20 Apr 2019 00:35:21 -0700 (PDT) Received: from localhost.localdomain (rrcs-66-91-136-155.west.biz.rr.com. [66.91.136.155]) by smtp.gmail.com with ESMTPSA id z22sm7025492pgv.23.2019.04.20.00.35.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 20 Apr 2019 00:35:21 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Fri, 19 Apr 2019 21:34:26 -1000 Message-Id: <20190420073442.7488-23-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190420073442.7488-1-richard.henderson@linaro.org> References: <20190420073442.7488-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::444 Subject: [Qemu-devel] [PATCH 22/38] target/cris: Use tcg_gen_abs_tl 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: david@redhat.com Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Richard Henderson --- target/cris/translate.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) -- 2.17.1 Reviewed-by: Philippe Mathieu-Daudé diff --git a/target/cris/translate.c b/target/cris/translate.c index 11b2c11174..0374718f66 100644 --- a/target/cris/translate.c +++ b/target/cris/translate.c @@ -1685,18 +1685,11 @@ static int dec_cmp_r(CPUCRISState *env, DisasContext *dc) static int dec_abs_r(CPUCRISState *env, DisasContext *dc) { - TCGv t0; - LOG_DIS("abs $r%u, $r%u\n", dc->op1, dc->op2); cris_cc_mask(dc, CC_MASK_NZ); - t0 = tcg_temp_new(); - tcg_gen_sari_tl(t0, cpu_R[dc->op1], 31); - tcg_gen_xor_tl(cpu_R[dc->op2], cpu_R[dc->op1], t0); - tcg_gen_sub_tl(cpu_R[dc->op2], cpu_R[dc->op2], t0); - tcg_temp_free(t0); - + tcg_gen_abs_tl(cpu_R[dc->op2], cpu_R[dc->op1]); cris_alu(dc, CC_OP_MOVE, cpu_R[dc->op2], cpu_R[dc->op2], cpu_R[dc->op2], 4); return 2;