From patchwork Mon Oct 23 18:13:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 737298 Delivered-To: patch@linaro.org Received: by 2002:adf:dd81:0:b0:32d:baff:b0ca with SMTP id x1csp1665982wrl; Mon, 23 Oct 2023 11:18:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFzb4g0hVcLh5/fE5zN7TPCNeJlsCeIPagqy7Xsj7vz9HCvePyZIfmv+8ZggqIVbqZTTEAa X-Received: by 2002:a05:620a:371a:b0:777:6c53:c090 with SMTP id de26-20020a05620a371a00b007776c53c090mr18797660qkb.24.1698085125030; Mon, 23 Oct 2023 11:18:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698085125; cv=none; d=google.com; s=arc-20160816; b=AwDP2iIqLtnSICVM0GX8yt5VZvMyWx3fYUHk3yI1uuaDZQJ6iUFglre5T3YfL+/7Bw tTTAkcY9zcxjsrXKcJ1/WXSUJoWLvcruxu60gRTNPEKDsMTV9FvaToecs7tpPenUx3Nu RpWEuZ9RKIhVmu1n8FtNmetcG3GzoVlUcux9SRv1PWn9Ub/hmAr1KXGmebMryNoFX8tS dewl/YzHGzfIVU+WBeR/jUvQZpuk25Ut8Y9gaTO0bxofsysOvCmKqjdx6ziI/7AgLRkv cbgTy8+9pkHVqGwcKUM0XM6EVfFyE6S9uB0/0QTULE6TmdzGWCPqieRLYJ1WOGzz4Ukz 4QfA== 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:to:from :dkim-signature; bh=eJDwvSu5y6aQI1FUpLq82z/uiGp428KQX4VVdh13eIw=; fh=PnYt+qEB9tAfMKoqBm2xjKOFpYyFFGPudh5cVIoieJM=; b=F26bxUIQxkgWV1E1qWOesqhhe9aOqRjfrMzGNB91t/gQHj5bZuCuY9P8yu5qgC5yAE cPBfkEqd532owAOitjBdJeCsu5mMF2Bg5qCgt3jdgcremTNES293RrR7DBrPBd5EOEsa zo2DFUAu8hpXUjCBphgTXXgLeRJoaH0IGekwQcmuDDZcDEpVgPlevGvcLqv82Hgwv/Jt WXlTid+kb5Rss2t4IFiJNXd3iRpd1JfiHiCN77zpORl62JL3QvnLE66QfIbVYjBs5I5R a6xU2qcyERsr/9WsKv8Fj/L78twc24CPcSuEHJBJrej2OPgo8nc9vx2hujBwSLe5MD4H zY3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=H+XHAD7g; 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 ma12-20020a0562145b0c00b0066d1a15d84csi6266442qvb.414.2023.10.23.11.18.44 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 23 Oct 2023 11:18:45 -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=H+XHAD7g; 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 1quzQy-0005X7-40; Mon, 23 Oct 2023 14:13:48 -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 1quzQw-0005Wo-Rt for qemu-devel@nongnu.org; Mon, 23 Oct 2023 14:13:46 -0400 Received: from mail-pf1-x431.google.com ([2607:f8b0:4864:20::431]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1quzQs-00087Z-6B for qemu-devel@nongnu.org; Mon, 23 Oct 2023 14:13:46 -0400 Received: by mail-pf1-x431.google.com with SMTP id d2e1a72fcca58-6b44befac59so3379131b3a.0 for ; Mon, 23 Oct 2023 11:13:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698084820; x=1698689620; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=eJDwvSu5y6aQI1FUpLq82z/uiGp428KQX4VVdh13eIw=; b=H+XHAD7gxLwoPx27mxzQf3mtryZs+gXiGf2F39aXqpMBeFwqbwPDYBRLhTpyasWrKN dOtmA72Q//PBXgu+I5mdV3Xxr4n26h2wLsDUjjRrH7x1CCKR3xtDQGlAtXaBGupKGRM3 J1xMhgzItaLU0Tsp3nIcK535DaoBjE4EZustQ4aSzwySo6aBf9gNVUyyQNGhoVFiUhJp p4yS7ES4jV6fLZXIOtJoYvm1xht+aOZUvExIjtRG1IDFxvpGSzN2cP7iatGLvd+V6OR4 JSG30X22z2CpPRTXWkrAhIdB2VJhCUJq5JIFA0SsotK4RIDSEzxz7erkJDJXfmSA1jF0 ZPqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698084820; x=1698689620; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=eJDwvSu5y6aQI1FUpLq82z/uiGp428KQX4VVdh13eIw=; b=JtA7Dasg8bdm4Ig5ggoy78uySmDwRjUcHv6wjta+33lESgwL880x9A77l2TCs6LRAL S5Ml55PWR8Nxbvowkyk54Vz0TEI1XzeAWodIiB7+t5roY4tVu3+VikBju7Q7+35TGM1c 7n2h8RFYeZ0tdSbzbFK2/m0C7b7q3DHtfvhyc/grIQFsBb+A8yWODH/xplMmixql6ej9 TngoPodM7AhQ+ShJqnu4uaf4II6p28tAvHdhJPrMw1KKmVvyQKlVJF6k8325vVWDMXCL aoBVrKbeafYpsin/IUst6/dmGJkYyO1gIO1vE/Rfxqfhr/nCWkhl9JgByTmgJnLdtcA7 DjMQ== X-Gm-Message-State: AOJu0YxSdjV5Brps5bbuN6GB5W/Cz65RpAmqUSw/rR3ILE/cDLm9Uejx SyBW8MbO0itnnmLxCcC1noHWpQq4eadbn9HTNfs= X-Received: by 2002:a05:6a00:35cd:b0:6b1:5d1a:bd0c with SMTP id dc13-20020a056a0035cd00b006b15d1abd0cmr17804558pfb.16.1698084820431; Mon, 23 Oct 2023 11:13:40 -0700 (PDT) Received: from stoup.. ([71.212.149.95]) by smtp.gmail.com with ESMTPSA id v10-20020a65568a000000b005b83bc255fbsm5205137pgs.71.2023.10.23.11.13.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 11:13:40 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL v3 11/38] tcg/ppc: Use prefixed instructions in tcg_out_dupi_vec Date: Mon, 23 Oct 2023 11:13:02 -0700 Message-Id: <20231023181329.171490-12-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231023181329.171490-1-richard.henderson@linaro.org> References: <20231023181329.171490-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::431; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x431.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 The prefixed instructions have a pc-relative form to use here. Signed-off-by: Richard Henderson --- tcg/ppc/tcg-target.c.inc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tcg/ppc/tcg-target.c.inc b/tcg/ppc/tcg-target.c.inc index 79e82d2f94..db3212083b 100644 --- a/tcg/ppc/tcg-target.c.inc +++ b/tcg/ppc/tcg-target.c.inc @@ -1242,6 +1242,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;