From patchwork Mon Mar 6 22:57:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 659268 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp2075931wrb; Mon, 6 Mar 2023 14:58:03 -0800 (PST) X-Google-Smtp-Source: AK7set9MwLA1wam9nDi5RCSckOyI5MhFVysCkfq2VOFyDcZKioH79gxuv0aF0geX4vB7cK/bm9pa X-Received: by 2002:a05:6214:48e:b0:56e:f640:6e8c with SMTP id pt14-20020a056214048e00b0056ef6406e8cmr670240qvb.36.1678143483511; Mon, 06 Mar 2023 14:58:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678143483; cv=none; d=google.com; s=arc-20160816; b=gHaWQDU7krFXPXXlMoKH5LnQgOOhXA9NL979r41Lg0n0rTXTN6JRxDdkaLdEotSH2x WK/9LWIDH31iMpg5ef86Ez6fRA4izw1GIXBlC3yDLchpSCFikEhcIw3mjNWB3RsQ0XlI Nrg494ki0yCEbNGl5cH3QtYMwss7eKIEa6eeT3t1j0QQ3C0MC0juESoM+HmbjeV6og/k +nrSfvHE7YC7S9cLospLLJP72jmaC0gHPEM6BPyhHAjGEbDMzZvN8hJyS5nI0GiK1tiE BuJddJCiIrJ27NYtCRFjES4u51nbZFPiHB88FJ62pD/O/tZ8gdDr6qjBDTlqInrWTn0A iFkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=jNCID4I77lASGY7n1vZuJqoIxxdckzbsjdxe3KLAKK8=; b=vPe2nG+Ag+InuJIUpIdeSTyJ+F5DXB9lhCMXnM/Jxycgw8b3A32BBkQ3BBMOPwN8HQ IYOSrOXHnM2cfNshA/hwwjKYmqpXEP0wHs8hzod5UIMlS1GFMdJ0wewZm95VxQbOQZ+1 JauloLoQuOghrCPgntyEjItrHTOizF/xgekQhM2Q6PSH9790KYfwC0ZRninqvkStcM34 ODNpUizKWjrTKO+x6poNWpUEgm2hXYvkqsJ1PSSvV4HfDM/PAj1/jaoCUni6s7uKIDOs Fo7r617B9r+LWxCVLjc0KBGgHhB3JBNlDmYJrVeFIKp3JFfMDQuM5KGZ5WlVfMFKiNQW +NLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DvF31Tjp; 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 p15-20020a0ce18f000000b0056ea94f2162si8031758qvl.496.2023.03.06.14.58.03 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 06 Mar 2023 14:58:03 -0800 (PST) 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=DvF31Tjp; 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] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pZJlr-0002wz-At; Mon, 06 Mar 2023 17:57:31 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pZJlp-0002wT-2f for qemu-devel@nongnu.org; Mon, 06 Mar 2023 17:57:29 -0500 Received: from mail-pj1-x1033.google.com ([2607:f8b0:4864:20::1033]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pZJln-00088E-UT for qemu-devel@nongnu.org; Mon, 06 Mar 2023 17:57:29 -0500 Received: by mail-pj1-x1033.google.com with SMTP id cp7-20020a17090afb8700b0023756229427so14758795pjb.1 for ; Mon, 06 Mar 2023 14:57:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678143446; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=jNCID4I77lASGY7n1vZuJqoIxxdckzbsjdxe3KLAKK8=; b=DvF31TjphPY/8zHZoFFcNLOO4hfbJCdqlw0GNX83AK8q14NpNwg5Osca5EByC7lL12 p1LLPmMBHh2GwxZWWWk3N92dbEQR7NU9cY8MLkO8Ohuj6fimCRzLHkX+8rbwQid1E0NA wBiQWzcekJSooQ5iEO+kf9Ejq6bQtFemJGf/QoN8ucaYzvrTWZdIKTBCHX6x2dh8PVAb Zn09aJ5ADEQSrsu3SaER1S/ZnBRt7bHpTUNqCFhKX/NwSAQZSz4i5RB0odPHAOdxT8zA ExMRp1Ja7TlKqx67tn19L01MTd5BikRzNdmByU6ilfy/VYqnYmFx0ZbpUwjJ80QcjwxY Xn2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678143446; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=jNCID4I77lASGY7n1vZuJqoIxxdckzbsjdxe3KLAKK8=; b=QgNfo7WzfcnEqBobYLtTzxGyElREvtK3RTKJwgh8Pb1z9rYjuIiHeSPOH/8ibmVoyJ A63FJuPsBXY20G4TpUz8Q4wjltvutUxUohSm/VzoOLkCEsn60nYGWMynbPymvu4PUmL3 b2o2a4zH6EJTM47+Ip5xfkBliTE2kyb+iKXYrIpIUT89rYDIO1ScxOWYhuJKg0bMRUPw f5ADbQaPwiVtZ0ToLFM2anqo/cFdT1h56ZJWK56SMz8bsQ+68BTLq8WZZOhMQ+0+QJPU Bzh2orJs0/cbu6CJc1Lp4AhGL9SoqsDrnlm8T4WvV1HGzggRdd/WYyPnjc8i2an0FRAT cRQg== X-Gm-Message-State: AO0yUKVvRKLDDSs0W1CEcDXZR8TXZfqUovIn2CY5pWKk/IByeEp+5p2U hipwBw8RViilD3CAOJ+NPX5KZAALNE+3AF79nB0= X-Received: by 2002:a05:6a20:c701:b0:cc:d7ec:b7c with SMTP id hi1-20020a056a20c70100b000ccd7ec0b7cmr12765320pzb.4.1678143446152; Mon, 06 Mar 2023 14:57:26 -0800 (PST) Received: from stoup.. ([2602:ae:154a:9f01:7632:29c7:3cce:bec3]) by smtp.gmail.com with ESMTPSA id x8-20020aa793a8000000b0058bc60dd98dsm6767229pff.23.2023.03.06.14.57.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Mar 2023 14:57:25 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Taylor Simpson Subject: [PATCH] target/hexagon/idef-parser: Elide mov in gen_pred_assign Date: Mon, 6 Mar 2023 14:57:24 -0800 Message-Id: <20230306225724.2105263-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::1033; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1033.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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Merge mov with andi. Suggested-by: Taylor Simpson Signed-off-by: Richard Henderson Reviewed-by: Taylor Simpson Reviewed-by: Philippe Mathieu-Daudé --- target/hexagon/idef-parser/parser-helpers.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/target/hexagon/idef-parser/parser-helpers.c b/target/hexagon/idef-parser/parser-helpers.c index e1a55412c8..7b494c2f9e 100644 --- a/target/hexagon/idef-parser/parser-helpers.c +++ b/target/hexagon/idef-parser/parser-helpers.c @@ -1722,9 +1722,7 @@ void gen_pred_assign(Context *c, YYLTYPE *locp, HexValue *left_pred, *left_pred = gen_tmp(c, locp, 32, UNSIGNED); } /* Extract first 8 bits, and store new predicate value */ - OUT(c, locp, "tcg_gen_mov_i32(", left_pred, ", ", &r, ");\n"); - OUT(c, locp, "tcg_gen_andi_i32(", left_pred, ", ", left_pred, - ", 0xff);\n"); + OUT(c, locp, "tcg_gen_andi_i32(", left_pred, ", ", &r, ", 0xff);\n"); if (is_direct) { OUT(c, locp, "gen_log_pred_write(ctx, ", pred_id, ", ", left_pred, ");\n");