Message ID | 20231013171012.122980-12-richard.henderson@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a5d:54d1:0:b0:31d:da82:a3b4 with SMTP id x17csp1580877wrv; Fri, 13 Oct 2023 10:12:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHYECMvxlwWo24AnbTXdJYPdehB+eTsNYnopYRXPr6WZlO3kfH+Aex/7fq3uTA1hnedIa5M X-Received: by 2002:a1f:ab8e:0:b0:4a4:cd2:5ebe with SMTP id u136-20020a1fab8e000000b004a40cd25ebemr4695477vke.12.1697217126731; Fri, 13 Oct 2023 10:12:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697217126; cv=none; d=google.com; s=arc-20160816; b=qALqU7Ntlof5ZskGtKdp6YHHigYAxfbjgWZjYCl2zJJ2TDybv7iz1vOru51MG/ecYy rkiVdTFfjY9IUNtweq/nUStnFivL/YK42/ikBc9Z4rPEl7jbPruD+HYHwnReIFkS0NIH 8qqqpA44J/1G4hfn/umrB5/3Mxi6Nobx9YX3b/MMgEyJ561048jMrrTUtP8ktKviduKP HVtuY03sbJFWhjB0Rdvc4moWnAd2Yydrb5QgO28+8azzAR1yVDLoz1XvAiD3N4WGAtsd I0ZLf4tH0v2bkNiZ/FS9OznJ4UtL8Lql4Umm2IO89x2qkr/qT7OjssGaPXYT7DajRcoE ATDw== 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=eJDwvSu5y6aQI1FUpLq82z/uiGp428KQX4VVdh13eIw=; fh=UhxwdZYHP7zKrVOsDzSwq52OyFUIKgoVzT4P2jPed6w=; b=eC+Ty1TPeXfnhXOPFKzCir1DS6ugmgMbjUAqbLE+vhiR0Kcwk0oIqI8B/xWDCP5GZw XYHYgywagLy/YYlz3Xa8BaCGRoWC7zEUMazdkmLhSxmjmjTleKN9tS7YnLPDMfRioNr/ q0Lkt0cu/TGXNc04l8nJuwfm9lZPM1cDWrYcVhrwNUKJWsBdmHBNIKnnyYo6KncUEZQk FBBvyenhaaOmhSmd1+MBkZeuOlY3BKT1BKCv6TeoG54Ttbyy9bhe6P+LTo6+a29AqGb7 2w+02QLtz7ZW53c4M59GkNynxSDdOZKqSY4s8aJLw2odNpPDgLKmTxz+FLBBaNwUS9wE 097w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="rPLGpPW/"; 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 h20-20020a05622a171400b00405516e0cd1si1542730qtk.445.2023.10.13.10.12.06 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Oct 2023 10:12:06 -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="rPLGpPW/"; 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 1qrLgF-00014n-6e; Fri, 13 Oct 2023 13:10:31 -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 1qrLgC-00013Y-7o for qemu-devel@nongnu.org; Fri, 13 Oct 2023 13:10:29 -0400 Received: from mail-oo1-xc29.google.com ([2607:f8b0:4864:20::c29]) 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 1qrLg9-0005aX-9E for qemu-devel@nongnu.org; Fri, 13 Oct 2023 13:10:27 -0400 Received: by mail-oo1-xc29.google.com with SMTP id 006d021491bc7-57bb6a2481fso1235347eaf.1 for <qemu-devel@nongnu.org>; Fri, 13 Oct 2023 10:10:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697217024; x=1697821824; darn=nongnu.org; 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=eJDwvSu5y6aQI1FUpLq82z/uiGp428KQX4VVdh13eIw=; b=rPLGpPW/GmLywRdTtg+2xEgOJvhqMV9a1xw0lVYRD7mrM3pyKg506U19qhAf2ntA+s BWc91fCklah+xonQJmR///A5kP+yQUkE++NiSLAyjM1M38GVuOmqzPRgHBkn5ARPDrcs PtdQVUULeAaDd1fttFQtgZnyKkWVEDVpRK0WZzelovuGmH2zrpsXS9s+EoPeNawwdrZg Ibq7BDVXOiHwLL2YXSmAY45Py2hf3LmK0M8Z1DRKbNgXs2IojHFF9/xQN1bf+WGy8gk7 NPljP2eZtMIUWpgPDVGw6sr1i4GaBWFUMyFOhiNZOi8mpY4d34oBq01R66LuPab6JY6n iIIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697217024; x=1697821824; 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=eJDwvSu5y6aQI1FUpLq82z/uiGp428KQX4VVdh13eIw=; b=sogcaRF8W+5yH9jSWOR8KV91injEupOj0sDJUqqhMo6JTm7txKMdOsHnYfgahRBKZ0 a5LNJLbsBmPXITtlgBVZagxXQOwltNMxvL0n7/LEIOu+LTporupJRVnYaDkvxQqvp91E FGlTMWbBfbq+lNYenqERtPX/DpMN1oHzqGxGGyyVOcgb90Vb/i0z8YizEvKduONZeLGT OG/EkvMi25pan5yxKi8ipdnGga6tQGYxUIOnEWTHvlFUe1TSK3wi7iHm59X0wgWR6DiE vTCi+MNFzIcVvjb6rQqEX98HViQF5Dkt18jBHT9abAAEDDUOOmUZ1Nw1Mo7uxAVPip27 2SmA== X-Gm-Message-State: AOJu0YwwsUWn3UeKIL0kWIXWaY95S5HSxhZnxB8T4f2Kljn9OKGfar85 iy67z6WIOHE/wfkbmr/itzSDajltLmf4vART4VQ= X-Received: by 2002:a05:6358:2624:b0:142:d097:b14a with SMTP id l36-20020a056358262400b00142d097b14amr20704937rwc.13.1697217024032; Fri, 13 Oct 2023 10:10:24 -0700 (PDT) Received: from stoup.. ([71.212.149.95]) by smtp.gmail.com with ESMTPSA id n7-20020a62e507000000b00693411c6c3csm13687926pff.39.2023.10.13.10.10.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 10:10:23 -0700 (PDT) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Cc: jniethe5@gmail.com Subject: [PATCH v4 11/13] tcg/ppc: Use prefixed instructions in tcg_out_dupi_vec Date: Fri, 13 Oct 2023 10:10:10 -0700 Message-Id: <20231013171012.122980-12-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231013171012.122980-1-richard.henderson@linaro.org> References: <20231013171012.122980-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::c29; envelope-from=richard.henderson@linaro.org; helo=mail-oo1-xc29.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: <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 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;
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(+)