From patchwork Wed Dec 11 16:29:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 849281 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp427706wry; Wed, 11 Dec 2024 08:46:55 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWkYyGfo2BlEzoearZohHQH5XvHafK2faKc2kU0dHQ3qvhfnE1nB6zj5E8vIcF71oQuD6v8Lw==@linaro.org X-Google-Smtp-Source: AGHT+IEevlo20jbqswJjZAqqTzBdujbVds3/5Jo1GOUG6LSUkoA61cRtG6i9cehhTBkCB0GS5TKb X-Received: by 2002:a05:6214:c28:b0:6d8:9124:8794 with SMTP id 6a1803df08f44-6dae29beb51mr7437226d6.5.1733935615122; Wed, 11 Dec 2024 08:46:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1733935615; cv=none; d=google.com; s=arc-20240605; b=T7GbH+wlMomsYtc4fzCpPJtk2V5lOhdvlrwFpd2buEARxukPo557yn99XbA3/B3mwQ d+EfAVStoUW9C4nerMcjzpqZrxRNqILrGMN+45j57YTvb2eO1Q2ouObSlQJvGUFi5FlB 8v6Q/ko/IAx+qk5IYH3YskAfuvWDEl6pp36Qkc2Zk100MkGj+MjMWjgtYlVecCVaWCei kH7gkXCM15oUhyuc+v9Xb/3SvDv/DJO+87TzszNETv1DqQj/CsLU9ff1gyyVqXsmoOsG l7zwr8hb/70Fwc9dRgte/L0uoPJISyY3np27Lt9+k3VNbd9GUFokRiCbnkxM+nhXA0wO nAOQ== 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=pq8nZT5Gnqwy8LaCbH8GMbC7AkzzD+F/2z9SWgAl6Cs=; fh=9Ev+QBUhk6P6vR3LT1wYeDLexozsz44nqjfoyPajZCc=; b=Rb5XfvPB2hnDa4poQUU1RiyQcwnmJ8S02CMSHCyIxvPDrdsZy1SLhB592AeJhjkCTs bAI0+ZJLWnBnLj5Cl7vEwYq6xa1RcjzcZsx4PswejXrXKV36yq6CNwQeyKp60qpnEYKv Jwl8fc4p60Q85pQs2v8Q7hmQSmObAMpAggtBabEjNtwsF8YxgtNBo4BpI4pnT8nBDggX Z9RqkMMXBEYRLiC0/DigcoPNW+pw20Qshwf71E6mC+xgMLiYWKVVpU9n/pjQtzHmf3Sp eoLkhV1wAnxZSNax4RvtBNLmNceLTJzlZFhIYCvv/oiSMAyQUOhln9kC8i4U+3CLwx4l k+2A==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Zp1OFZlz; 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-6d8ff92290dsi112161276d6.8.2024.12.11.08.46.54 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 11 Dec 2024 08:46:55 -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=Zp1OFZlz; 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 1tLPcN-0003tI-R7; Wed, 11 Dec 2024 11:31:20 -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 1tLPc7-0002pW-Tg for qemu-devel@nongnu.org; Wed, 11 Dec 2024 11:31:04 -0500 Received: from mail-qt1-x82b.google.com ([2607:f8b0:4864:20::82b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tLPc5-00017v-F0 for qemu-devel@nongnu.org; Wed, 11 Dec 2024 11:31:03 -0500 Received: by mail-qt1-x82b.google.com with SMTP id d75a77b69052e-4677675abd5so12796271cf.1 for ; Wed, 11 Dec 2024 08:31:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1733934660; x=1734539460; 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=pq8nZT5Gnqwy8LaCbH8GMbC7AkzzD+F/2z9SWgAl6Cs=; b=Zp1OFZlzgu1L8GqbykEwR1Fww/9jFjoLA9eFyiQJow/J3YuiIoSrrR6EaCQAU9gA4R RUGFmaq2oeRjR8eT4V/NVS4mmyyOwRyYKcI0z0YQpUx5o+VEzOvKhxppb0d8pmuP//nS Vc2wTGG4+qzuny+DKDOxzI3ULJAPYXAKiE2pcenxGFxbMNNJi9rNAm3UIBIzqPprEVwi 4hNBE7KlrcSqHGrW2turX2Bp2mtfr2iZdSE11E1yiuszQxZpNmwiw4QeH0zgWHnHsjCj RB6ZnWJI3K7Bn/Fa1Gm64T3xYLBanjKiv/89+a5PNt70l63JrwHQ43GCB8tMt2vf7pRt tqMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733934660; x=1734539460; 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=pq8nZT5Gnqwy8LaCbH8GMbC7AkzzD+F/2z9SWgAl6Cs=; b=hxQTkKydCBnurbHRcZ3TrlhTKhZe7KlzRLm3U4KUT7oXZOfY/bheM0kzJ+rCZamOTd oY//XbPeQzjo4vN+Kg8ZBNQh9dLH7HGlUbUwCO4J00ewOYuu6VR1xg9ovGRa972jV6p1 60GS9Y5tdODT/W+WsEDdEm5wMwMsuMYOTiS+8+31+AQ0fyzfjt7LEG/2iNAX1OMoKPTb x/Swzqekq4KfduwiuYiuN3mCtqx+15zwZYeakRuWTATZ3Sl18Meoa5+CqBrHZbyEVQGo rw84rg9OO1ij6hLjwyx7wcWk5JtCttKwFdpu8O9sFcrHIkNfASIhSE/cFjupUFYNJTI+ XOlQ== X-Gm-Message-State: AOJu0Yy7tAdNSAp+4LKIZ7UZ0iom/WvTwtyX9udrrWYTXGq6FAg4K7z0 XUcIB/7YBPGmuTlzmDqu9C7Nb2KBO+eFOB72brh4Yc9MNhDbv0//WVnndn9e14lnjDv8m2uLqcT cLWpysWKb X-Gm-Gg: ASbGnct2wN0DgGuYbG63cjRK2p7NwlFYJPmv3z/6l8EtLg+4950+XQWtXFD30/EP8fx bSHSmqfijn3kMTVs6u3nMz+gSBjwp//DbrmFHuR39gyb4GIVitIsk8+Vs45Mvtk0HKXtuXTUpSo 9/u7BqiexEAORTkVUBBo/u5RDUFGELICSRHZ5JCQXr3dGJJEalOyHL+Sdz3tQz9iIPQ9xOBNKGH OnbNLU8qoUNUaa7BkrQ97F0gimGyx2bCJNW056EDRXta/gqKLIdvLGMtC9tew== X-Received: by 2002:ac8:58cf:0:b0:462:b36a:73b8 with SMTP id d75a77b69052e-467953f4614mr5201761cf.43.1733934659857; Wed, 11 Dec 2024 08:30:59 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-46755db613csm43849381cf.70.2024.12.11.08.30.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Dec 2024 08:30:59 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org Subject: [PATCH v3 00/69] target/arm: AArch64 decodetree conversion, final part Date: Wed, 11 Dec 2024 10:29:27 -0600 Message-ID: <20241211163036.2297116-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::82b; envelope-from=richard.henderson@linaro.org; helo=mail-qt1-x82b.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 Finish the conversion of all aarch64 instructions to decodetree. Changes for v3: - Fix decode for f16 fsqrt (vector) in patch 23, prior to conversion. This is the only patch without R-B. r~ Richard Henderson (69): target/arm: Add section labels for "Data Processing (register)" target/arm: Convert UDIV, SDIV to decodetree target/arm: Convert LSLV, LSRV, ASRV, RORV to decodetree target/arm: Convert CRC32, CRC32C to decodetree target/arm: Convert SUBP, IRG, GMI to decodetree target/arm: Convert PACGA to decodetree target/arm: Convert RBIT, REV16, REV32, REV64 to decodetree target/arm: Convert CLZ, CLS to decodetree target/arm: Convert PAC[ID]*, AUT[ID]* to decodetree target/arm: Convert XPAC[ID] to decodetree target/arm: Convert disas_logic_reg to decodetree target/arm: Convert disas_add_sub_ext_reg to decodetree target/arm: Convert disas_add_sub_reg to decodetree target/arm: Convert disas_data_proc_3src to decodetree target/arm: Convert disas_adc_sbc to decodetree target/arm: Convert RMIF to decodetree target/arm: Convert SETF8, SETF16 to decodetree target/arm: Convert CCMP, CCMN to decodetree target/arm: Convert disas_cond_select to decodetree target/arm: Introduce fp_access_check_scalar_hsd target/arm: Introduce fp_access_check_vector_hsd target/arm: Convert FCMP, FCMPE, FCCMP, FCCMPE to decodetree target/arm: Fix decode of fp16 vector fabs, fneg, fsqrt target/arm: Convert FMOV, FABS, FNEG (scalar) to decodetree target/arm: Pass fpstatus to vfp_sqrt* target/arm: Remove helper_sqrt_f16 target/arm: Convert FSQRT (scalar) to decodetree target/arm: Convert FRINT[NPMSAXI] (scalar) to decodetree target/arm: Convert BFCVT to decodetree target/arm: Convert FRINT{32,64}[ZX] (scalar) to decodetree target/arm: Convert FCVT (scalar) to decodetree target/arm: Convert handle_fpfpcvt to decodetree target/arm: Convert FJCVTZS to decodetree target/arm: Convert handle_fmov to decodetree target/arm: Convert SQABS, SQNEG to decodetree target/arm: Convert ABS, NEG to decodetree target/arm: Introduce gen_gvec_cls, gen_gvec_clz target/arm: Convert CLS, CLZ (vector) to decodetree target/arm: Introduce gen_gvec_cnt, gen_gvec_rbit target/arm: Convert CNT, NOT, RBIT (vector) to decodetree target/arm: Convert CMGT, CMGE, GMLT, GMLE, CMEQ (zero) to decodetree target/arm: Introduce gen_gvec_rev{16,32,64} target/arm: Convert handle_rev to decodetree target/arm: Move helper_neon_addlp_{s8,s16} to neon_helper.c target/arm: Introduce gen_gvec_{s,u}{add,ada}lp target/arm: Convert handle_2misc_pairwise to decodetree target/arm: Remove helper_neon_{add,sub}l_u{16,32} target/arm: Introduce clear_vec target/arm: Convert XTN, SQXTUN, SQXTN, UQXTN to decodetree target/arm: Convert FCVTN, BFCVTN to decodetree target/arm: Convert FCVTXN to decodetree target/arm: Convert SHLL to decodetree target/arm: Implement gen_gvec_fabs, gen_gvec_fneg target/arm: Convert FABS, FNEG (vector) to decodetree target/arm: Convert FSQRT (vector) to decodetree target/arm: Convert FRINT* (vector) to decodetree target/arm: Convert FCVT* (vector, integer) scalar to decodetree target/arm: Convert FCVT* (vector, fixed-point) scalar to decodetree target/arm: Convert [US]CVTF (vector, integer) scalar to decodetree target/arm: Convert [US]CVTF (vector, fixed-point) scalar to decodetree target/arm: Rename helper_gvec_vcvt_[hf][su] with _rz target/arm: Convert [US]CVTF (vector) to decodetree target/arm: Convert FCVTZ[SU] (vector, fixed-point) to decodetree target/arm: Convert FCVT* (vector, integer) to decodetree target/arm: Convert handle_2misc_fcmp_zero to decodetree target/arm: Convert FRECPE, FRECPX, FRSQRTE to decodetree target/arm: Introduce gen_gvec_urecpe, gen_gvec_ursqrte target/arm: Convert URECPE and URSQRTE to decodetree target/arm: Convert FCVTL to decodetree target/arm/helper.h | 43 +- target/arm/tcg/helper-a64.h | 7 - target/arm/tcg/translate.h | 35 + target/arm/tcg/gengvec.c | 369 ++ target/arm/tcg/helper-a64.c | 104 - target/arm/tcg/neon_helper.c | 106 +- target/arm/tcg/translate-a64.c | 5670 ++++++++++--------------------- target/arm/tcg/translate-neon.c | 337 +- target/arm/tcg/translate-vfp.c | 6 +- target/arm/tcg/vec_helper.c | 65 +- target/arm/vfp_helper.c | 16 +- target/arm/tcg/a64.decode | 502 ++- 12 files changed, 2888 insertions(+), 4372 deletions(-)