Message ID | 20220527181907.189259-81-richard.henderson@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a05:7000:8607:0:0:0:0 with SMTP id bb7csp926791mab; Fri, 27 May 2022 12:37:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzauF4fTiK2zbccj3VAVnqUTBwZhT4yMDM5zogoZdfhYI9vYacZKU2YpFkJSan5tGs+3ndk X-Received: by 2002:a05:620a:46a1:b0:6a0:465e:ccca with SMTP id bq33-20020a05620a46a100b006a0465ecccamr29204422qkb.631.1653680276021; Fri, 27 May 2022 12:37:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653680276; cv=none; d=google.com; s=arc-20160816; b=rXN2x3Yhmngy2Q4SwEPFsBX15cNQMha8S2gqjTqBzcw59WBrYtYeCpzb7yxTlGNjK6 sFGnM01VjWpQU6XYgVXbaZ4/X0qkuuACQVkdRDV55XGEJj3sCJP0+SWyvtBpw4mlWW0t PNwV1gb9cjX5+CbggYHnEmLm1frwfJJCwiy5slYu4Nc20tBxEdKNDoFNcttzrTa117pa F/9QdaYwMTKrWT2+VQpxSLMXi4AIAUdRRE704ynLT/vxEpDUJjYeu0SWX9JJ/9n/dzzt jToyAgfu46YM26rvbU/Oee2Ww2htp63NJAOZQlJFxpdYKJamphx3YHAAJ+SzoT62FbpJ y7dQ== 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:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=5Q89U4kta6lhexkgv8jfPm0BOpmhch8pJh3wP8uQ0Cw=; b=IeOpLaIgfst8mDl2pBDy2Oh2GZn8T7q8LMxfpvheYoD1EWWIIYgK/P0DEel2dI64Wn DNusymKIugfrxNnOB5o4ZO1tKB1vP7mT+JCFdbzO5orlMzrO09/y6fc64eVCWkqbgW+L hwBd0KZzh67mm/zYeD8pDCRoApqImWnv5K2dgE7Tq6PKMd5EZbmsWANSwQ+fLUD4LDNe fC4AXGSNWju1E+7gagJc94wy0IVwWjjoQ/bCh+Mh2L+H12FwIOpGnzAm7vhlRiuKk3nd n3vk0TW0YueaQCeY9n0gXs0n5y5QsgSw2xty4sCBvPuSsSzj6+jbb/SxeNtTch1VYQ4h VTwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VcqtkgfJ; 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: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id bs36-20020a05620a472400b0069c5493e748si3427147qkb.45.2022.05.27.12.37.55 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 27 May 2022 12:37:56 -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=VcqtkgfJ; 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]:46724 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1nufmV-0000Ru-Ky for patch@linaro.org; Fri, 27 May 2022 15:37:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45082) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>) id 1nuefL-0001Y3-6O for qemu-devel@nongnu.org; Fri, 27 May 2022 14:26:27 -0400 Received: from mail-pl1-x631.google.com ([2607:f8b0:4864:20::631]:42822) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>) id 1nuefI-0005HV-GA for qemu-devel@nongnu.org; Fri, 27 May 2022 14:26:25 -0400 Received: by mail-pl1-x631.google.com with SMTP id d22so4803637plr.9 for <qemu-devel@nongnu.org>; Fri, 27 May 2022 11:26:23 -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=5Q89U4kta6lhexkgv8jfPm0BOpmhch8pJh3wP8uQ0Cw=; b=VcqtkgfJrSzSGqKfIS8sMPNMc05/mFuJggADlkCSQ3Kjmw8KoGIPcflg+at/fjDNm3 K53uwGuIH+mEAiux6cqnD076c2Y1A1G37xgm4hvlgMyvVU01+1fsCgm6PVKt0/GNhgZ+ ViJnj0lFufzqbbKIMxrecPVmpP9M++81WRSxaOCgMAMij7M1D4d2WUv34EXbJQLu1zqL 7DJH18WpBmXIcIkR1gVmlveIiOaE1vxvE0pC2rlY6J5+4iXM3oB7h1vrwhE7/cunketn y1twlNsK3KJkxcjM/zr0rPfb+MWuOk47pRWAqyVTJvtFSqbDpb+9AavhOqIE4weSFy22 R+Ig== 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=5Q89U4kta6lhexkgv8jfPm0BOpmhch8pJh3wP8uQ0Cw=; b=FvdjkBJxlg2B11X3Vd/xn7rx3ELb4x5JIUE2SVTq/v4AJYc8HOSTaRYgXlCtkrm5Ms 5vG+SG7uLCdpdgPwzQTNUxMy00xAOwKbeu1A5tuMXqdJxsZTj6UOYn223CBHl03nGUmG B21Wvg54L89V7ttQNxYM+SyecuaV5HiRsd7pdRuT8O2p5stwjzYOL4j/dxJBW7jozgOW zc+8A7LudotXhNjeIwd3bAKIqQBGoFz4j2bloXrjuwJvzMXU86qTCU4yTlqt21TE1b5U r8z2+jib/RFn+G3Trt3sYBh61nmtFBenctMgcCckmoSg8AGEbbHppT4FSy4xkgyzmrQE DuhA== X-Gm-Message-State: AOAM5336Ch+LCjeF5FNx0P2yw+zdaC5Qc5WNEq3Mq97uT6i6jwJvudSM X5WiW93uqELhFHARuWm01YDAV5mowiZ3gQ== X-Received: by 2002:a17:90a:e7c6:b0:1e0:9cf7:d042 with SMTP id kb6-20020a17090ae7c600b001e09cf7d042mr9652233pjb.234.1653675982716; Fri, 27 May 2022 11:26:22 -0700 (PDT) Received: from stoup.. (174-21-71-225.tukw.qwest.net. [174.21.71.225]) by smtp.gmail.com with ESMTPSA id g13-20020aa7874d000000b0050dc762816fsm3781539pfo.73.2022.05.27.11.26.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 May 2022 11:26:22 -0700 (PDT) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org Subject: [PATCH 080/114] target/arm: Implement NOT (prediates) alias Date: Fri, 27 May 2022 11:18:33 -0700 Message-Id: <20220527181907.189259-81-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220527181907.189259-1-richard.henderson@linaro.org> References: <20220527181907.189259-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::631; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x631.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=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: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patch=linaro.org@nongnu.org> |
Series |
target/arm: Rewrite sve feature tests
|
expand
|
diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index f33bc9d480..b6b5980e2d 100644 --- a/target/arm/translate-sve.c +++ b/target/arm/translate-sve.c @@ -1381,6 +1381,11 @@ static bool trans_EOR_pppp(DisasContext *s, arg_rprr_s *a) .fno = gen_helper_sve_eor_pppp, .prefer_i64 = TCG_TARGET_REG_BITS == 64, }; + + /* Alias NOT (predicate) is EOR Pd.B, Pg/Z, Pn.B, Pg.B */ + if (!a->s && a->pg == a->rm) { + return gen_gvec_fn_ppp(s, tcg_gen_gvec_andc, a->rd, a->pg, a->rn); + } return do_pppp_flags(s, a, &op); }
This alias is defined on EOR (prediates). While the same operation could be performed with NAND or NOR, only bother with the official alias. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> --- target/arm/translate-sve.c | 5 +++++ 1 file changed, 5 insertions(+)