From patchwork Tue Apr 26 16:30:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 566050 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:6886:0:0:0:0 with SMTP id m6csp3776154map; Tue, 26 Apr 2022 10:05:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzp6nywvocenprNBUrzdNia2+7wsY6Fy9wLPa5EBbrV/QbCLOxXqgw79P2VEGKonVLtpB2x X-Received: by 2002:a25:ed08:0:b0:648:8b96:cb2c with SMTP id k8-20020a25ed08000000b006488b96cb2cmr7348332ybh.370.1650992751747; Tue, 26 Apr 2022 10:05:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650992751; cv=none; d=google.com; s=arc-20160816; b=wkBQlIAWI3xZTE9xk+SWVJmjz29MvgQd9xRHY3hfxprGqus03aUrIFOcaAmmjoyg9P vMGRfr3Q/q5hbDTadu1DSpyIegH8xf3xX3M9abbg2jCVFfYuT6t+w6ofvxF1IViTIEQa SGbeyY3LvBghIQbrpvBjgfDaRa1VPRj4S4/5xaDNcAlKhjkc/axtJKUBIW1DAZMO97Ti 8jWBno+1hYb/yporpIJr888iu4ttM3RVGY8269AnP5egmGSVzoH5QtAtMCJi4AMCCsXE B3BfMWiZXbm/4bXVw8zV/axl2aBGm6rvgOD59NwchtGHloWmih20VGxgp8ptXUitY9+y GbEQ== 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=Ah0wax+Io8Un9um16DZI/sPE/uUBnXT9rHc+UFy3E50=; b=MXusJvzYKIOcc+9ygfs5o06JFxlbbegjxD2U9M4okyJE77+KujBaS5b5feC62AACAD ydkYXBxcn/kBzzsCd9MdgZPTjTDb+A5Ty/NrAieD55H8PsBEutfH/5TCWRhrZvKAPEtk pMrzaa2H8jR6K7ld5mg/zDLAxHtcorYlwLAE0txDMe95yZSfVr2jIJwVVkLkrBcvgoMM RL366GYrqhzlgkS2ztqdRcqlce+VqM6XQkSrZBzBa8ENNe23hmgeSIrDo/XgjgIZShrQ rPd9/CVrVQUgqLSV5SuqOOe7KmUVN8NoifrIQyYVXqouRZZYnfkS2z++LFJ1LjGPjwjP 9cRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gmVDydr0; 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=pass (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 t133-20020a25468b000000b00645d9d29be9si9791319yba.333.2022.04.26.10.05.51 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 26 Apr 2022 10:05:51 -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=pass header.i=@linaro.org header.s=google header.b=gmVDydr0; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:60294 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1njOdL-0006wU-6t for patch@linaro.org; Tue, 26 Apr 2022 13:05:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46960) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1njO8w-0002Dl-OR for qemu-devel@nongnu.org; Tue, 26 Apr 2022 12:34:26 -0400 Received: from mail-pf1-x429.google.com ([2607:f8b0:4864:20::429]:38628) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1njO8u-0004Ld-LR for qemu-devel@nongnu.org; Tue, 26 Apr 2022 12:34:26 -0400 Received: by mail-pf1-x429.google.com with SMTP id b15so18454675pfm.5 for ; Tue, 26 Apr 2022 09:34:24 -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=Ah0wax+Io8Un9um16DZI/sPE/uUBnXT9rHc+UFy3E50=; b=gmVDydr0gY8djhkL/xO3d2QJIzDkUsepY3lTk9ngYbBYoqonbtEdSKLI6+js2fl2Gp EuUFPw20RoCweQV9/ZE11UWhgxTawGYhp7wapuwTlgSXqWlROVE5UARqG20SxoQ/CqKo +h/+uqnWjPr9T4rNMp9fwNZRG1tH0Kg+h6sMYlQRETtBFM+fG9O76jQPrEKk/GR1/I/1 vOn4cg/mjJsL0825C1afUgS4IVdd6Ff4SQm0+jySZxWLPFqvNGF+xc1ZYM+DpMTeeUgx 0yVoCX+xZIRejU7+jrCpf7Vq6+4Qe5Q9AYHgXCKGJLhgTI7SDuZlurHuVLyBy7aB/pdz BCIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Ah0wax+Io8Un9um16DZI/sPE/uUBnXT9rHc+UFy3E50=; b=jO4OvNOgnCxreKMkMHtXfQebBymFjDgMACRZ902u7ATNahjaHCsytYofTDmdM0yVkL VtTUcb5zCC08HZ5cIiNKdf3Y7q4dgNlwWT/HE0d28WoAbj6CcNQlLz3ZVmXlN4F0GRrA NpmgKnMXGzTreBH7PH1yE/hDTQtzqNMtgC1zoYAMvspdYkizrrY/7krG5Z+GobmVQ8Ff P8WS+i+x32/Jh+VSoe7HnbWwbA43X5K250eiKPIEIuh4/hK6XriydmtA9yQTn8PnZ6w5 wepiH05dNE+i7isnmXgQ6wMY7tJZEOR/IZZg94n884/Du8HERvtKTJVTthPK6Vg23k6Y f40w== X-Gm-Message-State: AOAM53221V8SQQDbJxOmORVOpB8BK+rLYIEinoMWlMKwB7mGhYfowUB0 LmhSYPzuLDXN1WA00vABGSAeL7ye1/AQQQ== X-Received: by 2002:a62:3848:0:b0:50d:376e:57ed with SMTP id f69-20020a623848000000b0050d376e57edmr13571138pfa.71.1650990863085; Tue, 26 Apr 2022 09:34:23 -0700 (PDT) Received: from stoup.. (174-21-142-130.tukw.qwest.net. [174.21.142.130]) by smtp.gmail.com with ESMTPSA id a13-20020a17090acb8d00b001d953eb2412sm1132834pju.19.2022.04.26.09.34.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Apr 2022 09:34:22 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 40/47] target/arm: Use tcg_constant in do_clast_scalar Date: Tue, 26 Apr 2022 09:30:36 -0700 Message-Id: <20220426163043.100432-41-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220426163043.100432-1-richard.henderson@linaro.org> References: <20220426163043.100432-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::429; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x429.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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-arm@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Richard Henderson Reviewed-by: Peter Maydell --- target/arm/translate-sve.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index c3d3f301c9..7a39ed0c06 100644 --- a/target/arm/translate-sve.c +++ b/target/arm/translate-sve.c @@ -2926,7 +2926,7 @@ static void do_clast_scalar(DisasContext *s, int esz, int pg, int rm, bool before, TCGv_i64 reg_val) { TCGv_i32 last = tcg_temp_new_i32(); - TCGv_i64 ele, cmp, zero; + TCGv_i64 ele, cmp; find_last_active(s, last, esz, pg); @@ -2946,10 +2946,9 @@ static void do_clast_scalar(DisasContext *s, int esz, int pg, int rm, ele = load_last_active(s, last, rm, esz); tcg_temp_free_i32(last); - zero = tcg_const_i64(0); - tcg_gen_movcond_i64(TCG_COND_GE, reg_val, cmp, zero, ele, reg_val); + tcg_gen_movcond_i64(TCG_COND_GE, reg_val, cmp, tcg_constant_i64(0), + ele, reg_val); - tcg_temp_free_i64(zero); tcg_temp_free_i64(cmp); tcg_temp_free_i64(ele); }