From patchwork Tue Apr 26 16:30:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 566033 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:6886:0:0:0:0 with SMTP id m6csp3759705map; Tue, 26 Apr 2022 09:45:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyKs9SH/MNxyS7J8oQkNhcBr2QfQY9YI3tUZrtkp/LjdU8+xgrQKra45cd1QP5afElkqJQL X-Received: by 2002:a25:6b0f:0:b0:633:d1a3:9dbf with SMTP id g15-20020a256b0f000000b00633d1a39dbfmr22166958ybc.216.1650991500137; Tue, 26 Apr 2022 09:45:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650991500; cv=none; d=google.com; s=arc-20160816; b=ny96e62BTQE3e+jKXvwTjPxseWODdFL1U6gkmDy3Lss5sbIl7LzH16q9a9WtwUMn5t h1vslojxzldVY2cwVEiphTYpWFa+FuGZttjaE/aP1Y0d8iISv8S3SpWDSmo3EgPGnJxt UlrByD2nDvfBZJ60RqnxabD9chO5pla/8/UzhH3ANk00ePCP4sbq6HZcbOVGj7hdN5Nv YOxTgR51zbPmg1imG4W1WikVFka/4j4o9s39vDkkb8EWMvFy7NIk0LsR0MMknSnTAxU1 BjEBJ7cgN81WB1wjtdC2UV25VS8WSpHD8K8ZGwrkj6QxEDzwdtU1BUu3zCSt3IcSA0FH Fw9A== 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=+GJv6uZ84D47M1bBbT1Lvoq355I9dlxsiUNns6tmEPo=; b=H74qcQgpNChb7AqzgC4aSWVTIU+1kJmxbFss970YujfufeO89AvVvdGqcFh7w0dIE1 In6mfjLqF9gI5Lcovw/soZmw5wu/EWOtaWqz5RAEFlRp+gdWU3528upBjxLJ7uiuXLO6 K/7T0KkV9SoEI+kLaByEi9zRgacAZYoIPwRoVyqVm6noMh1Dfc2myWP3lQIy1aRBWpmX LCWsGVkX5uY5LMssdQC18uWLAT4Ioag7G+fj7XG5+ctv1yytk+0BgYMy182z2l9ZrrVe yirAMflAFW4JOCaQsHuVlGvv6XX4IyuMPI0qQZtnYUsRhwFixVWIYM+kqP+XpiHlQs7o 2l3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RjYX9P8M; 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 g4-20020a813904000000b002f7cdee8a0dsi6862515ywa.309.2022.04.26.09.45.00 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 26 Apr 2022 09:45:00 -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=RjYX9P8M; 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]:39734 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1njOJ9-0006mm-Ky for patch@linaro.org; Tue, 26 Apr 2022 12:44:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45228) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1njO5g-0002xg-MI for qemu-devel@nongnu.org; Tue, 26 Apr 2022 12:31:04 -0400 Received: from mail-pf1-x42a.google.com ([2607:f8b0:4864:20::42a]:44905) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1njO5d-0003oh-Fi for qemu-devel@nongnu.org; Tue, 26 Apr 2022 12:31:03 -0400 Received: by mail-pf1-x42a.google.com with SMTP id a15so18431342pfv.11 for ; Tue, 26 Apr 2022 09:31:00 -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=+GJv6uZ84D47M1bBbT1Lvoq355I9dlxsiUNns6tmEPo=; b=RjYX9P8MDw7aMPqEYP7Z4crwTbQ3JfgVrKpSC+NFUERqEmUUS+shoh8wFh4eEOU2PQ 1+cRsFXgsPC03I55UXZhV5c2g90VgJsuqNqoHps0OaePE2iVwB5UW4q0bGCpLvQB4TBg eGuu0J+89QB//CE/nBomwhk3jdnTFbEfrZexTOxP6S10mckHjJC9aNiY0LNhO5j5r5Z+ LGoIqutq+RAsUIyZBe7+CjOHoeeWqyEmkHcVoK9mQ5BNBY6kRcG7cBLnSUnOCwBowHEg J3fd/cuNuHZGudRtBU2Xk17F7pB2oT9r4Dtec0qHvH/zIizcrb4Sqj8+CfS4MAam98jO GPTQ== 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=+GJv6uZ84D47M1bBbT1Lvoq355I9dlxsiUNns6tmEPo=; b=jFEEhZ8RiOoE1KmYs0uLd+j1LeDy7oJoZnLC7l6xWbnPhCCt7q1F6Zky3VTr0Ie4G0 TDn9qLLFiUlDTw/GOvNZjFOiboB4IDuwPYtODNKIkrMGyvEC5qs2YzdkyBfEGfBIozHR X8kei95snSNcGsjRzYZfZIKrpkYhj/1w3dn2dUGXH95C0EGJGKOb1gG/Es9Ye3EwiXjQ 9GLq0nIplN6Vex0GD5iWmDbDAbA/FmMZOtTklVX70lgzAHfbPTQ/ovw+GyLh/Z3XW6g3 MzbjQ6wv6F/+9e4qKxa6LNtC+9k7LwBZdMq+pdlBFttnXa6XnwIKM3w1CUrJc7YkqUL2 hywQ== X-Gm-Message-State: AOAM533Wpu/gk1oH8WAyZ1/uUSNgi3slcsIL94gv8idRlC8/0r8Ua/gR rxl6dEFxnFIPeDrzVik111RLGhFFuBJW2w== X-Received: by 2002:a63:7457:0:b0:3ab:224c:fef4 with SMTP id e23-20020a637457000000b003ab224cfef4mr11504776pgn.149.1650990659956; Tue, 26 Apr 2022 09:30:59 -0700 (PDT) Received: from stoup.. (174-21-142-130.tukw.qwest.net. [174.21.142.130]) by smtp.gmail.com with ESMTPSA id y131-20020a626489000000b00505a8f36965sm15655813pfb.184.2022.04.26.09.30.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Apr 2022 09:30:59 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 14/47] target/arm: Use tcg_constant in disas_cond_select Date: Tue, 26 Apr 2022 09:30:10 -0700 Message-Id: <20220426163043.100432-15-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::42a; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x42a.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-a64.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/target/arm/translate-a64.c b/target/arm/translate-a64.c index 3de2b27cc7..9b678cc5af 100644 --- a/target/arm/translate-a64.c +++ b/target/arm/translate-a64.c @@ -5255,7 +5255,7 @@ static void disas_cond_select(DisasContext *s, uint32_t insn) tcg_rd = cpu_reg(s, rd); a64_test_cc(&c, cond); - zero = tcg_const_i64(0); + zero = tcg_constant_i64(0); if (rn == 31 && rm == 31 && (else_inc ^ else_inv)) { /* CSET & CSETM. */ @@ -5276,7 +5276,6 @@ static void disas_cond_select(DisasContext *s, uint32_t insn) tcg_gen_movcond_i64(c.cond, tcg_rd, c.value, zero, t_true, t_false); } - tcg_temp_free_i64(zero); a64_free_cc(&c); if (!sf) {