From patchwork Fri Nov 18 09:47:53 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 626116 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp34023pvb; Fri, 18 Nov 2022 01:53:57 -0800 (PST) X-Google-Smtp-Source: AA0mqf7Q4w9EYNrecAsqElpOLtOOnQZ64M9fOCvGFtWN5EQqYmd6stDWoz77g9VqZXZkYV1ofNUK X-Received: by 2002:a05:6214:5a0a:b0:4bb:806b:8e5e with SMTP id lu10-20020a0562145a0a00b004bb806b8e5emr5872052qvb.123.1668765237447; Fri, 18 Nov 2022 01:53:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668765237; cv=none; d=google.com; s=arc-20160816; b=IwMMnsmXEn0ZJVws1LTelWky12LGeUPb1dUD3tzrquh5EZCNZ55/Igx5kc/buywVkZ 5d7iLS0ETpF/7zubIrIIBuwldghnTCFPwV/6wvA+rT0M7t5VYk81FvmH0ETYkT9deEnV YmvHZUJWfY4eKbaitPBwj+X99ouzDjmysWbGLSgn9j6VQ4mR6PlaTh86WyYaiqhH+BUP LEW92HKPSAcLgp1w5aaYt7f9hN2cr/oyN+CexgQVqO+WIVs5iZEH+odbJPfgNx3+I4Vl KmYeB9oQbZgGGPxz19dC1bKPFPeKvx7GLdmNcOLy41zl21Wx86IiWY0qVQ7psVH5tX1L x63Q== 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=x7svweP0IDihRUwLjDBPUL8ODiog5cZ+HQk14NZtEqw=; b=JmKPsyaK9nJT51h/6mF9b5cT6yZS5SUSyG0WHHgAqyK7b00y9m75cWU33qjIR3rKrp WoY/j9XcYToWpIIMKbYsZvbnTnugypLaO27wYe6gSDXcMhGLVsq70wBhjHsGpb7YB7cn VkuP2QXN1l21/JCGFwn8wIzyEi7XH2DPOlQNjjr5evaguFxu8XY/TvfJuwCAef1Saghq djt20QbXPZCQQlPa3036Os2aqhVKU4UqTinDEzyVoeUeCXmuJyC2coq1pyFNit3iHIcA JhDiD8V8kDeb4r2i9JZHHNXpTL1a5j5EQBSALfGz9KDXz+XcIl8Nk2b+/DqeR0e91iSP pPNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EqKxmZTh; 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 kl26-20020a056214519a00b004b40ccfe68bsi1599855qvb.105.2022.11.18.01.53.57 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 18 Nov 2022 01:53:57 -0800 (PST) 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=EqKxmZTh; 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 1ovxzf-0007py-44; Fri, 18 Nov 2022 04:49:07 -0500 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 1ovxzQ-0007kE-UQ for qemu-devel@nongnu.org; Fri, 18 Nov 2022 04:48:57 -0500 Received: from mail-pg1-x534.google.com ([2607:f8b0:4864:20::534]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ovxzP-00028s-Aa for qemu-devel@nongnu.org; Fri, 18 Nov 2022 04:48:52 -0500 Received: by mail-pg1-x534.google.com with SMTP id 62so4514871pgb.13 for ; Fri, 18 Nov 2022 01:48:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=x7svweP0IDihRUwLjDBPUL8ODiog5cZ+HQk14NZtEqw=; b=EqKxmZThtIdEUZjWI3AVWPuerwkJeXSZZuRsxMXaz59mDhapMBgbEr342XbvwIQ6LF M5fu8uUocsiqc0TkcLFYdj4a3weFCEniCi6fjpDu0qsm1ZJq+SBpAt+ONmo7fG5xsy4q Fm6chC7m83+N4lwYiyF0yIQnVUEy3GzGtb1RItaE4yUrbCvyjXFAEZteXPrwkWzfjATE b9yj90xn3fTkZ8JhQtaIEX978it7TPG5PgLku+RDR+JP18ZVBy4c5huqy5zuMwM8GQKD mq2P1f5fyixHrEYx5Q9nlzrm02aS/z2lWoW68rYv8IcUiLl653dpxhhYwFX3Z9djYO0i tR8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=x7svweP0IDihRUwLjDBPUL8ODiog5cZ+HQk14NZtEqw=; b=ZgwHCJwzySwcMr4S/z7GDlaV6CXwAvCXpmZ5BPm3+dnOmUvmLtmsR16vHCoblWPAP9 bLp1RmEMRC/uxdS1cQbIudWgIsUsB3d8hnFc1Du8EXKtsCkX7Lu216upUi5Sa0py7C71 4EcnUSwvVo9mnbbQKipKp5KbU+1AMklzMd4fGlBAbEGRrc8WxYYhMvVGoHOCjnir1cgG GYXyKeojVGephD0BMgkXdPPqC5cBz4hPz93BR3qwpTCnxswfmhVIWE3KJtOvYIBlh+g3 X1A1iToyCQ3lkTaR3bazQZLtYo5UuG0hdZzDP9ci9cAXu9G3kiOtj+4tV5LwBqRvUVm2 f2cw== X-Gm-Message-State: ANoB5pkrFGdsSe6HuGiIJ3fiD4n47BfQ/TPiV5SfCAu4F518PHt+jt7P Mg7/P/XV71kwcyXPJVjFl1Lh82FqxUKcZA== X-Received: by 2002:a05:6a00:2396:b0:572:698b:5fa9 with SMTP id f22-20020a056a00239600b00572698b5fa9mr6979635pfc.28.1668764927988; Fri, 18 Nov 2022 01:48:47 -0800 (PST) Received: from stoup.. ([2602:47:d48a:1201:90b2:345f:bf0a:c412]) by smtp.gmail.com with ESMTPSA id n12-20020a170902e54c00b0018862bb3976sm3115421plf.308.2022.11.18.01.48.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Nov 2022 01:48:47 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH for-8.0 28/29] tcg/i386: Add vex_v argument to tcg_out_vex_modrm_pool Date: Fri, 18 Nov 2022 01:47:53 -0800 Message-Id: <20221118094754.242910-29-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221118094754.242910-1-richard.henderson@linaro.org> References: <20221118094754.242910-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::534; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x534.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 Signed-off-by: Richard Henderson --- tcg/i386/tcg-target.c.inc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tcg/i386/tcg-target.c.inc b/tcg/i386/tcg-target.c.inc index f277085321..3f0cb4bc66 100644 --- a/tcg/i386/tcg-target.c.inc +++ b/tcg/i386/tcg-target.c.inc @@ -841,9 +841,9 @@ static inline void tcg_out_modrm_pool(TCGContext *s, int opc, int r) } /* Output an opcode with an expected reference to the constant pool. */ -static inline void tcg_out_vex_modrm_pool(TCGContext *s, int opc, int r) +static inline void tcg_out_vex_modrm_pool(TCGContext *s, int opc, int r, int v) { - tcg_out_vex_opc(s, opc, r, 0, 0, 0); + tcg_out_vex_opc(s, opc, r, v, 0, 0); /* Absolute for 32-bit, pc-relative for 64-bit. */ tcg_out8(s, LOWREGMASK(r) << 3 | 5); tcg_out32(s, 0); @@ -990,18 +990,18 @@ static void tcg_out_dupi_vec(TCGContext *s, TCGType type, unsigned vece, if (TCG_TARGET_REG_BITS == 32 && vece < MO_64) { if (have_avx2) { - tcg_out_vex_modrm_pool(s, OPC_VPBROADCASTD + vex_l, ret); + tcg_out_vex_modrm_pool(s, OPC_VPBROADCASTD + vex_l, ret, 0); } else { - tcg_out_vex_modrm_pool(s, OPC_VBROADCASTSS, ret); + tcg_out_vex_modrm_pool(s, OPC_VBROADCASTSS, ret, 0); } new_pool_label(s, arg, R_386_32, s->code_ptr - 4, 0); } else { if (type == TCG_TYPE_V64) { - tcg_out_vex_modrm_pool(s, OPC_MOVQ_VqWq, ret); + tcg_out_vex_modrm_pool(s, OPC_MOVQ_VqWq, ret, 0); } else if (have_avx2) { - tcg_out_vex_modrm_pool(s, OPC_VPBROADCASTQ + vex_l, ret); + tcg_out_vex_modrm_pool(s, OPC_VPBROADCASTQ + vex_l, ret, 0); } else { - tcg_out_vex_modrm_pool(s, OPC_MOVDDUP, ret); + tcg_out_vex_modrm_pool(s, OPC_MOVDDUP, ret, 0); } if (TCG_TARGET_REG_BITS == 64) { new_pool_label(s, arg, R_386_PC32, s->code_ptr - 4, -4); @@ -1024,7 +1024,7 @@ static void tcg_out_movi_vec(TCGContext *s, TCGType type, } int rexw = (type == TCG_TYPE_I32 ? 0 : P_REXW); - tcg_out_vex_modrm_pool(s, OPC_MOVD_VyEy + rexw, ret); + tcg_out_vex_modrm_pool(s, OPC_MOVD_VyEy + rexw, ret, 0); if (TCG_TARGET_REG_BITS == 64) { new_pool_label(s, arg, R_386_PC32, s->code_ptr - 4, -4); } else {