Message ID | 20230815195741.8325-13-richard.henderson@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a5d:4012:0:b0:317:ecd7:513f with SMTP id n18csp1968131wrp; Tue, 15 Aug 2023 12:58:48 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEar1H9ztauPRsUCX5vyKRo/Kzv1vBTp2486PiFX6jw+EdWXmM5agUO+hWVA2wQxOrcRKdF X-Received: by 2002:a9d:6d08:0:b0:6b9:9cc0:537f with SMTP id o8-20020a9d6d08000000b006b99cc0537fmr13331166otp.33.1692129528416; Tue, 15 Aug 2023 12:58:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692129528; cv=none; d=google.com; s=arc-20160816; b=RNwjxNwiQ7sMSdiTnJGfdH6RCkofDJu/LSMETEqtuWPrFDaNpl74qPKN3Zs3Li0JS1 y/VYQ4XACTKtIeSFqp3BrMq8r8Yxl94Pz0Pt2SMb6wrgkQipHttLbTx6CQO1eOYhQE/n ko1x90ZXF5m8h6rjyRy3GCGcbJmllgKWwYIBuwlLbg7m3xBSbrIz8mssDRier3owJmJA e0qmiTt9Ic9e3lJ9ruWIAf4tiJi/GJ+aMr2BXTvYr4FzB/3aaB6wQgJS/ZEHpPe2aGur 5VhqA8WsDDPxiE9pRzHhObDIrBKTljr6+soFNrAnrrL7NWERL6wd9Tp+JUF+JCCTWNsb ceyA== 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=PCV3wYEQOpmY72+V1Mb+CICelf2ZsmJiYhnZyGKj9m8=; fh=1LlI9qg4dDC6jzYzk4mr2RaPQDh8MKMNLXu5CCRW41Q=; b=bZapwqpR8BaxTDM1+2RQFd+2jvQQyFH/ib/sGTY2iKZO68G2zVcGgjNKBPpCAzoRDp e4NWY6RHnMqxULXBqxehhn9xXI3updPX4/612R7YpbslaAk2QHIeXrl9kTZzdr3hvYRR /gi4LrAQ9n+8PUwakkk//DwaIzZugfJCElfK51JUAby8ZaIzibl5yYDaUGp6NBWMMQeH qForbxKud40DHOqQxPKCanUnG6Xayn7+YUFd8ub2OY8Z+XvO+THQLEMGPZR49X+eq//a 89MttDZKGO3oAEo94kYpeIGuHN60tLAEqeWQEvzeYvtbnjP2vHNGroR1Sx4LPmuWE66Y Mp/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jepb0RVI; 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 d1-20020a0cb2c1000000b0063f82aafb9asi7601899qvf.299.2023.08.15.12.58.48 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 15 Aug 2023 12:58:48 -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=jepb0RVI; 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 <qemu-devel-bounces@nongnu.org>) id 1qW0Ay-0005Bu-Cg; Tue, 15 Aug 2023 15:58:00 -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 <richard.henderson@linaro.org>) id 1qW0Ax-0005Al-1j for qemu-devel@nongnu.org; Tue, 15 Aug 2023 15:57:59 -0400 Received: from mail-pf1-x42d.google.com ([2607:f8b0:4864:20::42d]) 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 1qW0Au-00016D-6c for qemu-devel@nongnu.org; Tue, 15 Aug 2023 15:57:58 -0400 Received: by mail-pf1-x42d.google.com with SMTP id d2e1a72fcca58-6884310ee75so1651161b3a.1 for <qemu-devel@nongnu.org>; Tue, 15 Aug 2023 12:57:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1692129475; x=1692734275; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=PCV3wYEQOpmY72+V1Mb+CICelf2ZsmJiYhnZyGKj9m8=; b=jepb0RVIsMULAKTqzdRUKu+sAVtNG8seMOupuNlbyzzQXeU4V+3MExnJFjOVSAcjsV h3KGPPTTDPeIammroCAX8VHFmyyRfqwpiMrZhwkKEYGDEaR76Z7lIGP7vwNmEV3mGann CJfNIY76uKlq04N9pXxCHSlAwkIfr4jDtuVFrwL6l49iozlEJn/yE7ZSqe/ssZKbcWee Lqye4GO67SdpGYVyP2gwuHqa2kYSP9mCJ25KWfrt/00rc6PPYhNcXy5eN+AuByd9Dfto ktovGiXcTwawiJpX8w/yTlKBNX19IQGWh+esekpxp72q+yXiSvPJUnPYuiaELMuV1yRl hsqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692129475; x=1692734275; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=PCV3wYEQOpmY72+V1Mb+CICelf2ZsmJiYhnZyGKj9m8=; b=AQe4GM2r7PIbErZPYWbQUpEpATRRrX9ar+LC59kldh9q7Mi186E2blU5rokBSW9MpV UV7zmEejL2y1rI7PXXyGM1t496NGXYD9wIh+6RCCT9r3qw79ZKjvVV2VBhHFU3yNWz8n KedYbBuBcs5sDw+yd+8atHsPh+04j/wTSchfWtwmha3IetZTHDbNStuRhE8uvKgnnxrL WSx9YsXJ03rZUkhQ10HVHeo311bAdIULSQXmanSrKeBIHfrw5uOmAqu1GbtCsDsLPPjx vuuITs7TAIQHBIfPvC7Pkrvu3+xDV43lEJJ6v0bgN3RN1PuD2M9wXj/dtRdFAsQcnc/N ae/g== X-Gm-Message-State: AOJu0YzQcZNhwjWLu2H9AYbpUH7dZTV2Ea2DBl/JtjOUnEgTTlbdS+xg aBDVILvMd82eMUzUkUF4h4vsFWkA2WAgPsiHLbw= X-Received: by 2002:a05:6a00:3919:b0:682:537f:2cb8 with SMTP id fh25-20020a056a00391900b00682537f2cb8mr15260421pfb.26.1692129474798; Tue, 15 Aug 2023 12:57:54 -0700 (PDT) Received: from stoup.. ([2602:47:d483:7301:8d06:f27b:d26c:91c1]) by smtp.gmail.com with ESMTPSA id n7-20020a62e507000000b00686b649cdd0sm9667699pff.86.2023.08.15.12.57.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Aug 2023 12:57:54 -0700 (PDT) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Cc: qemu-ppc@nongnu.org, jniethe5@gmail.com Subject: [PATCH v3 12/14] tcg/ppc: Use prefixed instructions in tcg_out_dupi_vec Date: Tue, 15 Aug 2023 12:57:39 -0700 Message-Id: <20230815195741.8325-13-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230815195741.8325-1-richard.henderson@linaro.org> References: <20230815195741.8325-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::42d; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x42d.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: <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-bounces+patch=linaro.org@nongnu.org |
Series |
tcg/ppc: direct branching, power9, power10
|
expand
|
diff --git a/tcg/ppc/tcg-target.c.inc b/tcg/ppc/tcg-target.c.inc index 670811b636..0cdb7ef37a 100644 --- a/tcg/ppc/tcg-target.c.inc +++ b/tcg/ppc/tcg-target.c.inc @@ -1237,6 +1237,15 @@ static void tcg_out_dupi_vec(TCGContext *s, TCGType type, unsigned vece, if (USE_REG_TB) { rel = R_PPC_ADDR16; add = ppc_tbrel_diff(s, NULL); + } else if (have_isa_3_10) { + if (type == TCG_TYPE_V64) { + tcg_out_8ls_d(s, PLXSD, ret & 31, 0, 0, 1); + new_pool_label(s, val, R_PPC64_PCREL34, s->code_ptr - 2, 0); + } else { + tcg_out_8ls_d(s, PLXV, ret & 31, 0, 0, 1); + new_pool_l2(s, R_PPC64_PCREL34, s->code_ptr - 2, 0, val, val); + } + return; } else if (have_isa_3_00) { tcg_out_addpcis(s, TCG_REG_TMP1, 0); rel = R_PPC_REL14;
The prefixed instructions have a pc-relative form to use here. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> --- tcg/ppc/tcg-target.c.inc | 9 +++++++++ 1 file changed, 9 insertions(+)