From patchwork Tue Aug 8 03:02:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 711542 Delivered-To: patch@linaro.org Received: by 2002:a05:6359:d30:b0:129:c516:61db with SMTP id gp48csp1911600rwb; Mon, 7 Aug 2023 20:04:54 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGv7O0GkFhzQ6EZbLvQgE+JcTVd6oddCOkOlJ5Mqmop6765aLXtz5uXSbQ7z8PCHC3er73B X-Received: by 2002:a05:622a:1a96:b0:405:4816:6eef with SMTP id s22-20020a05622a1a9600b0040548166eefmr11178771qtc.24.1691463893901; Mon, 07 Aug 2023 20:04:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691463893; cv=none; d=google.com; s=arc-20160816; b=MHLMNwIcZ41JEs8ysroT7s6qse45VzZX0Mo+Q9WrZ3DrrAADfdpcDPVKZTz82ON6Mi t2NLxyUN8MBSaypRQxTuXSeHz+EkpmecNQkV7YOmCAJREenR2cjOB+8kra9RxKseLDif +AQmpWul6V1x+IyU7KMzpDPABx4tlGAJqYYNjkm8oG0cUsEEYfRSfQhXgdKMNRFAQjrF teV6naluVHUCcsofhDaMNty6bN4GLH33Rb6zC1brfuCj7I5768jnD564nhdTEsMzZPUP n/N1eW1XJwSQlPIj2tfbYkCA7nQ7JZSYQt0RxPk5d1o1YxGC3CMUhNACg4rCpdCOxiGt FfyQ== 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=dfIP5tcDs8OviC0N81Mxzhk3p0beETYinc+feTbvQW0=; fh=54SyYXXl3ghnGdcQkJAiPGLp59KgHlkQMz7FX70zS0g=; b=OcdfUM36FUGGoiIBIa/pfXw1pS5uNdYV1dKXkF1k20+i++snnSkdmo65/X6/725rBJ iVXtLLQrqLiNGTZJtj4Eajz5bZjyijgqNJikzQpf7snxiUyIl6idjO9ECswwHaLnmmkK k17WKZYfQJMDnOygXFo0Wi5w4ok9a9GTB5mDViczYglyH/e9SJJivZSIbmh71HGllDfz EpnbIcBkz5mCyaeEEH+Xui6wRKr10HnDmEPz1lsll9Z5RjPSF3ZnCldKsKqSdMzzhzXe x93d+tW/iJ/gf78iuvIKg/EXursSrBq97IR81kMEYIk1RwvSG7zzew3MBVB+pVGH8xSd ym5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NBZq6U3W; 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 x20-20020a05622a001400b004055a48136fsi5581944qtw.129.2023.08.07.20.04.53 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 07 Aug 2023 20:04:53 -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=NBZq6U3W; 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 1qTCzs-0001PX-QB; Mon, 07 Aug 2023 23:03: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 ) id 1qTCzr-0001NZ-4S for qemu-devel@nongnu.org; Mon, 07 Aug 2023 23:02:59 -0400 Received: from mail-pf1-x433.google.com ([2607:f8b0:4864:20::433]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qTCzp-0006ac-KV for qemu-devel@nongnu.org; Mon, 07 Aug 2023 23:02:58 -0400 Received: by mail-pf1-x433.google.com with SMTP id d2e1a72fcca58-68730bafa6bso4098654b3a.1 for ; Mon, 07 Aug 2023 20:02:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691463776; x=1692068576; 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=dfIP5tcDs8OviC0N81Mxzhk3p0beETYinc+feTbvQW0=; b=NBZq6U3WPaeS59sHrT8JZG+IX4ZN628sKtQweWvB/KVDPd8aECblcN6YfosewUxTdN hktUfcf29KyiURkrXTmffqB6LUMGNrvHZO6v2xKAdQOAnkBU2ESUZK3FW1mYd7WjK1Sx KtsrErlgHkQEvZvK2dUAC/plJiKXQQ9Iz4bp5oV9Ay92Fzza07//ob6B+J3fiPul3KMN qQN5fnPabEuqF2jE8NriIAZfTdRYCJBZJ/nFk/7zUiLRRZR+kLsqZ++8Gp/p/Yby+ASS 2KzivUdsHCNUk3s3xZqduxbzs+MSLZW087u7qoDANpGLtn0jP4d2TwEaJwcZqOuwc3dw qE0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691463776; x=1692068576; 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=dfIP5tcDs8OviC0N81Mxzhk3p0beETYinc+feTbvQW0=; b=ae8MY/kmvlH6DwZvo5FNuIF8yzx8rZAeDr5E0SxNbUOHloKALZpbVT2gzn/hQG7Sbp cPBeX/fGLUPre+8i7DqKNnReLcFGB6Pog0cicNGEUzbbBzljg8A5BroZKvWR11TIaFpE /H7tx/GhmhKPifsn+BfnuXtHae7984HEXDLJw0KrR3axFFaCzs34ZMtF30TFu99mMUKy 3ZFFPlbolePRpUyeAk8y65EBRxVSiQjHYp1o67ERMXB73GMhEM7ixMZFXm3mQYXxM01w f20OJQ6fMbmgmCO7qM4TGSLcyPxvON341VdZ21eFooVi/xjuaSX23EEU5fA1H/ViAL6i TJhw== X-Gm-Message-State: AOJu0Yz9g04MVbtEtCJ0BnrOYxZBcbHO0EDW+wRh6nP+Y4utYaCwGtW7 +BcGpWXUYnlc61hEPaBUQaKTg+guznLeKd9Wd5c= X-Received: by 2002:a05:6a20:440a:b0:133:38cb:2b93 with SMTP id ce10-20020a056a20440a00b0013338cb2b93mr11346174pzb.9.1691463776330; Mon, 07 Aug 2023 20:02:56 -0700 (PDT) Received: from stoup.. ([2602:47:d490:6901:e306:567a:e0a1:341]) by smtp.gmail.com with ESMTPSA id r7-20020a62e407000000b006870c50efaesm6903609pfh.9.2023.08.07.20.02.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Aug 2023 20:02:55 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: npiggin@gmail.com, jniethe5@gmail.com, qemu-ppc@nongnu.org Subject: [PATCH v2 5/7] tcg/ppc: Use prefixed instructions in tcg_out_dupi_vec Date: Mon, 7 Aug 2023 20:02:48 -0700 Message-Id: <20230808030250.50602-6-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230808030250.50602-1-richard.henderson@linaro.org> References: <20230808030250.50602-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::433; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x433.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 The prefixed instructions have a pc-relative form to use here. Signed-off-by: Richard Henderson --- tcg/ppc/tcg-target.c.inc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tcg/ppc/tcg-target.c.inc b/tcg/ppc/tcg-target.c.inc index b3b2e9874d..01ca5c9f39 100644 --- a/tcg/ppc/tcg-target.c.inc +++ b/tcg/ppc/tcg-target.c.inc @@ -1195,6 +1195,18 @@ static void tcg_out_dupi_vec(TCGContext *s, TCGType type, unsigned vece, /* * Otherwise we must load the value from the constant pool. */ + + 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; + } + if (USE_REG_TB) { rel = R_PPC_ADDR16; add = tcg_tbrel_diff(s, NULL);