From patchwork Thu Sep 12 02:40:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 827749 Delivered-To: patch@linaro.org Received: by 2002:adf:ab1c:0:b0:367:895a:4699 with SMTP id q28csp1071009wrc; Wed, 11 Sep 2024 19:43:37 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUR/jdRYik3Ersa12vye0jIE01dD0iS+Aq3z8IA5ywsm4cxpnYk8sCBaX4pvQZ94STObzJAQA==@linaro.org X-Google-Smtp-Source: AGHT+IHrPL4xgMM+dDjsjnIeOx07BEZXbWJzjni03KNLBxKeDyAykG0ExvZdV8SjA0rhajYauox/ X-Received: by 2002:a05:6214:4520:b0:6c3:4f56:475b with SMTP id 6a1803df08f44-6c5735143f7mr19038236d6.15.1726109017434; Wed, 11 Sep 2024 19:43:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1726109017; cv=none; d=google.com; s=arc-20240605; b=iE/6zdM+hS5PuGxh2MYQwYwitBXCz862ia2gJFcLLNK8o7OYmbKe4g6iIL36ycFQSG AUUVagrcXlQ7tEypl7hfyFl3atm9DAK7esUxGNK8elUxTi7cVmcdn4Je25znYDmdy+xb B1MTRa/+ulrooxEC8rVuh3yNxAo4tZWRCRL36Hy2G+WrfUKD3AIDQmoWF+5CfcPM8seP jOjaqSVVCc24BK/7CXFOVH91Vg8AvJi3tZnInIuWIV6e+qBOK4VK9Mm4BwgI3zABPqL9 FWLkxRrPM1iCYrTRIBO0eQMPBbheRizpVsj/1gqrvS9dOWi+FjU48TEFIzDGx5icjMIM bkJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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=5rSee6UFe7Lf0NZi/yepcm1lhEnnmfys1BBoL6fXN/Q=; fh=9Ev+QBUhk6P6vR3LT1wYeDLexozsz44nqjfoyPajZCc=; b=ZqAATJz6n7uJ09IFRRzStQDpno8f7Q9gOK4fQKLnQNz9Zr6U0d31GfvLSeb6Wb1XiK WPtHjUk9xuB7O+wAMZEnVGoQANKILh/ePNQ/QpOHCb8e9X6RbyJXE60nBeFGCxHQl6O7 Rj5DvPO5GOn8R+3QntiU6NvVpdGSljNRUhCzMeMO3TDeJJmtoel03tsH7MDshMmncwfO DZQv1z6zikpXE08OZHbMDR0rHfxJ93x+8CPLJDlJbWGMEYVy9tfF2JmYRfjeHUJxaAOW 2g57G1MlIaCEAetqUhuQMgnFMpU3n3MYXEA2ZjPz/4YEpYFtFfjYiCJGrBR6xcWr5UGT hp2A==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jarkP0AA; 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; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 6a1803df08f44-6c53476f1f1si116709226d6.219.2024.09.11.19.43.37 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 11 Sep 2024 19:43:37 -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=jarkP0AA; 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; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1soZlr-0002PQ-7M; Wed, 11 Sep 2024 22:41:23 -0400 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 1soZlo-0002Ff-MJ for qemu-devel@nongnu.org; Wed, 11 Sep 2024 22:41:20 -0400 Received: from mail-pl1-x635.google.com ([2607:f8b0:4864:20::635]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1soZlm-00047H-OE for qemu-devel@nongnu.org; Wed, 11 Sep 2024 22:41:20 -0400 Received: by mail-pl1-x635.google.com with SMTP id d9443c01a7336-20543fdb7acso4003565ad.1 for ; Wed, 11 Sep 2024 19:41:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726108877; x=1726713677; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=5rSee6UFe7Lf0NZi/yepcm1lhEnnmfys1BBoL6fXN/Q=; b=jarkP0AAiAT4NIx+GxzwQ772FNqow2ZP7iFIYyvXXP2JKwqB59/FV+U/Mh/6m2L/kr brZbaI1hWktMf0yLwqq4+60pNok1pdNxUnR0IvEeWSlY/VGvG0WfgH3EO9v6jBLyxXGQ 745dOxvdazwNZdn9qvEbtm8IMcPEo/wz6R8hO/FDOW+hPIiUXqt5JOkTkqI7huXpv7ti WFjDB/bJ8S3dU3PjDGVKkTt/pq+khllBlGC9jUqcwFXfn/MhcVpJN17fobiRyNoCfGLP W4Nr9cpWIH6ksEYcAYENbYDqEZQv6jyfK0is0X0qPjN745ccr8bzGlqd6D71vjFyS5Dv 7bVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726108877; x=1726713677; 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=5rSee6UFe7Lf0NZi/yepcm1lhEnnmfys1BBoL6fXN/Q=; b=ptL3ejm7bJnTy/EswGxcjpSWmd6l5XNYws+OZ1Ht/iTapUJKIOeWFedGf8oi043/7p 43imYG1Nc5J5mclaalccRitX8dNKX4WuR5UX9m2NwZWjbYa21MkdkDb5m5SA1b1wPC9F y7NvRUCoXZimngNyiJSqvzFpEIrAmBbbBuPo0abb4j66CnxXc0t+9ZnQf/JXYszN3OY+ RCxJU/YwRd2fnndIaqdfnZKXjkRN5GUyFs3IY4MGUF0Jup/j4f3AHYC+5cf0Sk+k0ugX vnoa0w19Vo/rSgYs2t7EzEDW7LFMiczwIBCTuMOQZU5WOyI9hHSeacVqE6lslrPh+0xw Gi1Q== X-Gm-Message-State: AOJu0YxsiHeG17Bk3Pk90R3lIHfiQh+BIO41He3OH2GUtQkznlz8xYap hDbxeDqRPiYVfOjbcWg1DNKmUlfgofsKTyJS8yo7RdjRtHcPVqX2SnS+ANF+t6iqjE/i328iJ1l 0 X-Received: by 2002:a17:902:db12:b0:205:80e7:dcab with SMTP id d9443c01a7336-2076e35e3e2mr21568145ad.18.1726108876342; Wed, 11 Sep 2024 19:41:16 -0700 (PDT) Received: from stoup.. (174-21-81-121.tukw.qwest.net. [174.21.81.121]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2076afe9c61sm5635915ad.231.2024.09.11.19.41.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Sep 2024 19:41:15 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org Subject: [PATCH v3 00/29] target/arm: AdvSIMD decodetree conversion, part 4 Date: Wed, 11 Sep 2024 19:40:45 -0700 Message-ID: <20240912024114.1097832-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::635; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x635.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=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: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Changes for v3: - Zero-extend results in Widen NeonGenNarrowEnvFn return to 64 bits Only patch 26 needs review. r~ Richard Henderson (29): target/arm: Replace tcg_gen_dupi_vec with constants in gengvec.c target/arm: Replace tcg_gen_dupi_vec with constants in translate-sve.c target/arm: Use cmpsel in gen_ushl_vec target/arm: Use cmpsel in gen_sshl_vec target/arm: Use tcg_gen_extract2_i64 for EXT target/arm: Convert EXT to decodetree target/arm: Convert TBL, TBX to decodetree target/arm: Convert UZP, TRN, ZIP to decodetree target/arm: Simplify do_reduction_op target/arm: Convert ADDV, *ADDLV, *MAXV, *MINV to decodetree target/arm: Convert FMAXNMV, FMINNMV, FMAXV, FMINV to decodetree target/arm: Convert FMOVI (scalar, immediate) to decodetree target/arm: Convert MOVI, FMOV, ORR, BIC (vector immediate) to decodetree target/arm: Introduce gen_gvec_sshr, gen_gvec_ushr target/arm: Fix whitespace near gen_srshr64_i64 target/arm: Convert handle_vec_simd_shri to decodetree target/arm: Convert handle_vec_simd_shli to decodetree target/arm: Use {,s}extract in handle_vec_simd_wshli target/arm: Convert SSHLL, USHLL to decodetree target/arm: Push tcg_rnd into handle_shri_with_rndacc target/arm: Split out subroutines of handle_shri_with_rndacc target/arm: Convert SHRN, RSHRN to decodetree target/arm: Convert handle_scalar_simd_shri to decodetree target/arm: Convert handle_scalar_simd_shli to decodetree target/arm: Convert VQSHL, VQSHLU to gvec target/arm: Widen NeonGenNarrowEnvFn return to 64 bits target/arm: Convert SQSHL, UQSHL, SQSHLU (immediate) to decodetree target/arm: Convert vector [US]QSHRN, [US]QRSHRN, SQSHRUN to decodetree target/arm: Convert scalar [US]QSHRN, [US]QRSHRN, SQSHRUN to decodetree target/arm/helper.h | 34 +- target/arm/tcg/translate.h | 14 +- target/arm/tcg/gengvec.c | 121 +- target/arm/tcg/neon_helper.c | 76 +- target/arm/tcg/translate-a64.c | 2081 +++++++++++++------------------ target/arm/tcg/translate-neon.c | 179 +-- target/arm/tcg/translate-sve.c | 128 +- target/arm/tcg/a64.decode | 257 ++++ target/arm/tcg/neon-dp.decode | 6 +- 9 files changed, 1393 insertions(+), 1503 deletions(-)