From patchwork Fri Jul 9 04:26:02 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 471776 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp948223jao; Thu, 8 Jul 2021 21:37:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy5y4fhdOvEo76+/9Fw3rCtutPGlKWFqdd/AyKieZBwx2n8U1nlNy+KudJQmOyIbOw24gzJ X-Received: by 2002:a05:620a:ce4:: with SMTP id c4mr31781861qkj.104.1625805465506; Thu, 08 Jul 2021 21:37:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625805465; cv=none; d=google.com; s=arc-20160816; b=hvxaVXa7Hq0tuVMFd6UQzu2QzlIh16kCc9ZRgP9IVcSjNy7wg35h0ZWFDAcya1JTAc 3samTPirQgqRIbgwCmZaQnziLmV9vY0Wadt4GMl4gOhLtfrrZrRCPXnZZYQLfzFRJxBH BjyZYZN80dkunzPwuTekekSLHojdJvVa8FOSzWwYqGdxi8bLWBGBoe55EmkafL6RToNk n9NcYD9pLIsrwJfTvneEjPkfdG9xvlsukEaDNW4L6EHa0kW7nPu5c24dYc9dFK5hThIE 98R2TnhwEA2WxsBevbh4DPI9DuBSWYm7YHg948aBEyaGazIENPR8Ya6AvGsJNxU/bGJ7 C42Q== 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:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=a9fFt/OsBBNeqd2GgITsOvAQFQxqc8/6WAR/vy/k/Xw=; b=dNbfi4FdQYeczPSamnjbPqtsk4hbrXqn/bykVAZq6yzvBL35Cg0pW3J7fB4P/UU15e A22UwdsnzkoaIz7l+f3m9CCOvPuotW8mdxDoehq4GOU6c5lpAXKGT6AyEP2wFt+nFLsc DB8Y3W221xm9osPNei65KGox+hUKHiIdlJe17ZzIOW4URYlIHHvQ7KosOH8vWXd90EcK ub2YwtbCniwv6aFXrEoaRT8qY4o4c/hXG43uXjl8dywJFn9fUJKBhW2WXV/zEd6V9YU0 cb9wCsBGG2EVBlGdzgpOOm/BjUR7mg10v//KvErXzwLehTYYMurXwNNDjtDf0GDFdHf7 yxug== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=eMr3FHxZ; 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 g9si3991817qtg.338.2021.07.08.21.37.45 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 08 Jul 2021 21:37:45 -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=eMr3FHxZ; 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 ([::1]:54588 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m1iGm-0001Dc-DF for patch@linaro.org; Fri, 09 Jul 2021 00:37:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53906) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m1i60-0006Q0-5l for qemu-devel@nongnu.org; Fri, 09 Jul 2021 00:26:36 -0400 Received: from mail-pl1-x62e.google.com ([2607:f8b0:4864:20::62e]:33475) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m1i5h-0001Ww-IQ for qemu-devel@nongnu.org; Fri, 09 Jul 2021 00:26:35 -0400 Received: by mail-pl1-x62e.google.com with SMTP id f11so4377805plg.0 for ; Thu, 08 Jul 2021 21:26:17 -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 :mime-version:content-transfer-encoding; bh=a9fFt/OsBBNeqd2GgITsOvAQFQxqc8/6WAR/vy/k/Xw=; b=eMr3FHxZndFr8anybtBF8DTSreUootsdK/Y8ylvRqqU1dABB2W6nsZbIkawnCtvKmi IlicbULInGKvZEO4HXVy4K+qjYXGV8Ae/welJYNTBQExgQ6tt2nii9EPZwA/gdDbJ0Qh NrMgadsjszUPUzH3VGMS8+GlKzLeUhVMhAgzx5vT1n++2rQpTc0IES9IfS8EiVzUVRzb vx3R9GDUjb5XiPReWXVxVPkOWYBv/s053ZrwsjnKJSX9E6n+NNUFOa6E87GvEte7P7H1 439anK0E6dk9QnsQBT7xdU1d0jvkSACEs1zG8pk3cDaTNcrtCa//EzOUqSiCH40kDQ2u vU8Q== 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:mime-version:content-transfer-encoding; bh=a9fFt/OsBBNeqd2GgITsOvAQFQxqc8/6WAR/vy/k/Xw=; b=G8M4AWvMjKuMImUISZe/g6iCG3RWDQmFqo05PLNGqRCa6LN4pGcrcPAfQH1V6XCWQ5 mcuq36RFMqj47RrljfbcbpPhX/ULmY3XnfWvlOe4YBVqNmQSy5mPb58KQOiyxSF2YW40 JXglo0h49XULnR8qPgedMSxJbIUuzt8o/8r8M83lPOChazRtoXixM+Q1jGqwZZk3t01E 51FYHU+LmXOmydWgl8707Uf4hy7wFt3R0Or1G4A+qr4JLAS0X7R0LKKv4Ie8184/7lb6 pMdhRjZybfZEoe+94BLl2wxYoBqbFssINWi5VRkK+2ugpQaMbit/F/sGFMkbjDHOWXMh 8k8g== X-Gm-Message-State: AOAM5337GjBR5wInaeoO7hv52G0P4yakaIhbZpUTiYucels577MBXjXQ lxBMJ9AyjqXhknAn3IqI8NDchJ7pLEhO6w== X-Received: by 2002:a17:90a:880c:: with SMTP id s12mr31960030pjn.72.1625804776357; Thu, 08 Jul 2021 21:26:16 -0700 (PDT) Received: from localhost.localdomain ([71.212.149.176]) by smtp.gmail.com with ESMTPSA id y16sm4406727pfe.70.2021.07.08.21.26.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Jul 2021 21:26:16 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 11/17] target/riscv: Use gpr_{src,dst} for RVB Date: Thu, 8 Jul 2021 21:26:02 -0700 Message-Id: <20210709042608.883256-12-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210709042608.883256-1-richard.henderson@linaro.org> References: <20210709042608.883256-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::62e; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: alistair.francis@wdc.com, qemu-riscv@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Richard Henderson --- target/riscv/insn_trans/trans_rvb.c.inc | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) -- 2.25.1 Reviewed-by: Alistair Francis diff --git a/target/riscv/insn_trans/trans_rvb.c.inc b/target/riscv/insn_trans/trans_rvb.c.inc index 9e81f6e3de..58921f3224 100644 --- a/target/riscv/insn_trans/trans_rvb.c.inc +++ b/target/riscv/insn_trans/trans_rvb.c.inc @@ -423,16 +423,13 @@ static bool trans_slli_uw(DisasContext *ctx, arg_slli_uw *a) REQUIRE_64BIT(ctx); REQUIRE_EXT(ctx, RVB); - TCGv source1 = tcg_temp_new(); - gen_get_gpr(source1, a->rs1); + TCGv dest = gpr_dst(ctx, a->rd); + TCGv src1 = gpr_src(ctx, a->rs1); if (a->shamt < 32) { - tcg_gen_deposit_z_tl(source1, source1, a->shamt, 32); + tcg_gen_deposit_z_tl(dest, src1, a->shamt, 32); } else { - tcg_gen_shli_tl(source1, source1, a->shamt); + tcg_gen_shli_tl(dest, src1, a->shamt); } - - gen_set_gpr(a->rd, source1); - tcg_temp_free(source1); return true; }