Message ID | 20231228012714.2989658-1-lili.cui@intel.com |
---|---|
Headers |
Return-Path: <binutils-bounces+ouuuleilei=gmail.com@sourceware.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:6f82:b0:100:9c79:88ff with SMTP id tb2csp1753767dyb; Wed, 27 Dec 2023 17:27:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IHVuHDfw1TOm4bvZIfd4cAWarv8/7F2slWDw1dlVjd1tUScFDgVzdfDpp3I9X+MJEe0ugP6 X-Received: by 2002:a05:622a:205:b0:425:a5fe:9b71 with SMTP id b5-20020a05622a020500b00425a5fe9b71mr13912465qtx.43.1703726856281; Wed, 27 Dec 2023 17:27:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1703726856; cv=pass; d=google.com; s=arc-20160816; b=qFqHLZW7KXNe8KHaniZdvUSP49k2g3oVOrgzKmZdiNmc/XXsObrSPPEe5+xVXLko0i NUx6dx8lduxinAL0iH50r0yG/XIiC/t6DfvOPKwJAieD5zqLebOEuySQmtdYk3uRPGN8 ZGlwS7MPEIkhvCczVMQBM42m3jeoygWYWgh12cB5wNIsmzoMPB/npKX0vleZCQxsQVCt 9U3vROZBeiWc4MSpYMXmnIUTt5KNPnbALK5MRCHRLwrTnSDzwEuPebHLu19ADLcqNrBV dGl9oyo/ROpE1I0nYXhMBaEe3veSXSVPlD4yCeI+y+RjkcL8YRgEeOSWwYjTE/Z2Vvg6 BPHA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature :arc-filter:dmarc-filter:delivered-to; bh=iOkcklWCGBTa4b6un7ph3FDzlU8U5HBHGImwL7ptE68=; fh=FtUhYuQVHpmgNVnBO8Ns+o7k2Cbhq17uEhR8APdj3nE=; b=o3PguWwLgmeIXOdu5jy2xYWZku1LXv+fn6OWSx3GpNxVxMtaq4Hx06RTZSMdP+Knc0 B0dUobqcGLcBFSa+r1KLkhFuKt5vpu86H2po23hin2dk6pR6rCyEAuyWHfhNeTSuRCmU mah1thr7LnyI3Ciuu6qKClxiaWbR3b0hWueRF0IpfA6s866QpNgz5jXdv3k2xw8LeUKr TE2WBXtZW+xyOK5dC082uM9vTtuKYtMRR/eErUzsWZ3DG02IUlFFnRvbhJa3sij4Ztmn FFXSCvwpmMwgEV+9WSQMtxJdPRfdtRcMtrR4GOFWcQzxW6Q89mtRNB6dNkT1rA8I8jfT Sh2g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=hrGxydER; arc=pass (i=1); spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id o16-20020a05622a045000b00427e7945798si3727545qtx.785.2023.12.27.17.27.36 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Dec 2023 17:27:36 -0800 (PST) Received-SPF: pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=hrGxydER; arc=pass (i=1); spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id F32E33858C2A for <ouuuleilei@gmail.com>; Thu, 28 Dec 2023 01:27:35 +0000 (GMT) X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.11]) by sourceware.org (Postfix) with ESMTPS id EC9A63858D28 for <binutils@sourceware.org>; Thu, 28 Dec 2023 01:27:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org EC9A63858D28 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=intel.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org EC9A63858D28 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=192.198.163.11 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1703726841; cv=none; b=mBC/xq/cyM5sowp6Ww9vXHjA5nNLRG5D2ckoAbFPeRBdHvHroB2AIaIYkS+r/GSA6ZvpOrwWv7VzGersv/vWEzLm+U50gILAt5irjXWFmnmMvSEROMM4m1zZguF+2JbYCx76nT0FuDlHVc56u1275U86t4CAZi6eEZM9O1KfA70= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1703726841; c=relaxed/simple; bh=xrybQ6sQBxSRMyIUyc2mxa8Z4GHVsqhY/y3mmiYIucY=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=Jf78LeKE5TEZIbOt9c9/Vnd8TWzD5JzVXYqhDdzPkJWPAR7Pb/7xjNZZp/DaU+v+EgKgVGFPK8iclCCHjgB6FyeGVO3HLQFM0z5wJv/292vcszRSAoYa6bJkXDcQ0MrLhBTQuNgOetUTHCTe6W9YPQnEu1M2qE1SP3NLcuKu2uk= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1703726839; x=1735262839; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=xrybQ6sQBxSRMyIUyc2mxa8Z4GHVsqhY/y3mmiYIucY=; b=hrGxydERflEUIvJXZCUQOwsayCOIMxlnFH1TqnHrjcHjlj3/C6HKbmV2 PVqpeSMrEWD7GyypPKf4bz1EFnlBsOrxm96ukyNDGf7+feNzXMgt0Hjvu c6mJBy3g+90yc0/8Zshe+aTWF8+6FsZANYzql2fWJ8u439LT38bq9uUcC ixBpb+33XjDHzeVSwoIajpyDrHHQii1zIw6e+enpGyqbZzZXDLWyUGk6c QHz91X9HtcnCvukofCu2i/j9iTCDd7QAH6nLtprF4TomsJX0H9qKaifsR ur0EO/r6suBIHm5pKjqgG+ASu+C/kg4Ls5mPxaYrBg5FOg3UNMS8a1Lpm g==; X-IronPort-AV: E=McAfee;i="6600,9927,10936"; a="3347867" X-IronPort-AV: E=Sophos;i="6.04,310,1695711600"; d="scan'208";a="3347867" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by fmvoesa105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Dec 2023 17:27:18 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.04,310,1695711600"; d="scan'208";a="20104984" Received: from scymds04.sc.intel.com ([10.82.73.238]) by orviesa002.jf.intel.com with ESMTP; 27 Dec 2023 17:27:18 -0800 Received: from shgcc101.sh.intel.com (shgcc101.sh.intel.com [10.239.85.97]) by scymds04.sc.intel.com (Postfix) with ESMTP id 8DDC32003113; Wed, 27 Dec 2023 17:27:16 -0800 (PST) From: "Cui, Lili" <lili.cui@intel.com> To: binutils@sourceware.org Cc: hongjiu.lu@intel.com, jbeulich@suse.com Subject: [PATCH V5 0/9] Support Intel APX EGPR Date: Thu, 28 Dec 2023 01:27:05 +0000 Message-Id: <20231228012714.2989658-1-lili.cui@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.6 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Binutils mailing list <binutils.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/binutils>, <mailto:binutils-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/binutils/> List-Post: <mailto:binutils@sourceware.org> List-Help: <mailto:binutils-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/binutils>, <mailto:binutils-request@sourceware.org?subject=subscribe> Errors-To: binutils-bounces+ouuuleilei=gmail.com@sourceware.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1786487092085909258 X-GMAIL-MSGID: 1786487092085909258 |
Series |
Support Intel APX EGPR
|
|
Message
Cui, Lili
Dec. 28, 2023, 1:27 a.m. UTC
*** BLURB HERE *** Optimizations and fixes needed in the future. 1. The current implementation of vexvvvvv needs to be optimized. 2. Convert vround* with egpr to VRNDSCALE* instead of reporting an error. 3. Find a suitable variable to replace OperandConstraint=REX2_REQUIRED. 4. The current gen.c does not handle "cpuid&(cpuid|APX_F)" correctly and a separate patch is required to fix this. Cui, Lili (5): Support APX GPR32 with rex2 prefix Created an empty EVEX_MAP4_ sub-table for EVEX instructions. Support APX GPR32 with extend evex prefix Add tests for APX GPR32 with extend evex prefix Support APX pushp/popp Hu, Lin1 (2): Support APX NDD optimized encoding. Support APX JMPABS for disassembler Mo, Zewei (1): Support APX Push2/Pop2 konglin1 (1): Support APX NDD gas/config/tc-i386.c | 461 ++++++++++-- gas/doc/c-i386.texi | 7 +- gas/testsuite/gas/i386/apx-push2pop2-inval.l | 5 + gas/testsuite/gas/i386/apx-push2pop2-inval.s | 9 + gas/testsuite/gas/i386/i386.exp | 1 + .../i386/ilp32/x86-64-opcode-inval-intel.d | 47 +- .../gas/i386/ilp32/x86-64-opcode-inval.d | 47 +- gas/testsuite/gas/i386/rex-bad.l | 8 +- .../gas/i386/x86-64-apx-egpr-inval.l | 202 +++++ .../gas/i386/x86-64-apx-egpr-inval.s | 209 ++++++ .../gas/i386/x86-64-apx-egpr-promote-inval.l | 20 + .../gas/i386/x86-64-apx-egpr-promote-inval.s | 29 + gas/testsuite/gas/i386/x86-64-apx-evex-egpr.d | 20 + gas/testsuite/gas/i386/x86-64-apx-evex-egpr.s | 21 + .../gas/i386/x86-64-apx-evex-promoted-bad.d | 41 + .../gas/i386/x86-64-apx-evex-promoted-bad.s | 49 ++ .../gas/i386/x86-64-apx-evex-promoted-intel.d | 318 ++++++++ .../gas/i386/x86-64-apx-evex-promoted.d | 318 ++++++++ .../gas/i386/x86-64-apx-evex-promoted.s | 314 ++++++++ .../gas/i386/x86-64-apx-jmpabs-intel.d | 12 + .../gas/i386/x86-64-apx-jmpabs-inval.d | 40 + .../gas/i386/x86-64-apx-jmpabs-inval.s | 15 + gas/testsuite/gas/i386/x86-64-apx-jmpabs.d | 12 + gas/testsuite/gas/i386/x86-64-apx-jmpabs.s | 5 + .../gas/i386/x86-64-apx-ndd-optimize.d | 132 ++++ .../gas/i386/x86-64-apx-ndd-optimize.s | 125 ++++ gas/testsuite/gas/i386/x86-64-apx-ndd.d | 160 ++++ gas/testsuite/gas/i386/x86-64-apx-ndd.s | 155 ++++ .../gas/i386/x86-64-apx-push2pop2-intel.d | 42 ++ .../gas/i386/x86-64-apx-push2pop2-inval.l | 13 + .../gas/i386/x86-64-apx-push2pop2-inval.s | 17 + gas/testsuite/gas/i386/x86-64-apx-push2pop2.d | 42 ++ gas/testsuite/gas/i386/x86-64-apx-push2pop2.s | 39 + .../gas/i386/x86-64-apx-pushp-popp-intel.d | 14 + .../gas/i386/x86-64-apx-pushp-popp-inval.l | 5 + .../gas/i386/x86-64-apx-pushp-popp-inval.s | 7 + .../gas/i386/x86-64-apx-pushp-popp.d | 14 + .../gas/i386/x86-64-apx-pushp-popp.s | 8 + gas/testsuite/gas/i386/x86-64-apx-rex2.d | 83 +++ gas/testsuite/gas/i386/x86-64-apx-rex2.s | 85 +++ gas/testsuite/gas/i386/x86-64-evex.d | 2 +- .../gas/i386/x86-64-opcode-inval-intel.d | 26 +- gas/testsuite/gas/i386/x86-64-opcode-inval.d | 26 +- gas/testsuite/gas/i386/x86-64-opcode-inval.s | 4 - gas/testsuite/gas/i386/x86-64-pseudos-bad.l | 75 +- gas/testsuite/gas/i386/x86-64-pseudos-bad.s | 74 ++ gas/testsuite/gas/i386/x86-64-pseudos.d | 63 ++ gas/testsuite/gas/i386/x86-64-pseudos.s | 64 ++ gas/testsuite/gas/i386/x86-64.exp | 20 +- include/opcode/i386.h | 4 + opcodes/i386-dis-evex-prefix.h | 58 ++ opcodes/i386-dis-evex-reg.h | 63 ++ opcodes/i386-dis-evex-w.h | 10 + opcodes/i386-dis-evex-x86-64.h | 50 ++ opcodes/i386-dis-evex.h | 347 ++++++++- opcodes/i386-dis.c | 702 +++++++++++++----- opcodes/i386-gen.c | 52 +- opcodes/i386-opc.h | 27 +- opcodes/i386-opc.tbl | 204 ++++- opcodes/i386-reg.tbl | 64 ++ 60 files changed, 4637 insertions(+), 449 deletions(-) create mode 100644 gas/testsuite/gas/i386/apx-push2pop2-inval.l create mode 100644 gas/testsuite/gas/i386/apx-push2pop2-inval.s create mode 100644 gas/testsuite/gas/i386/x86-64-apx-egpr-inval.l create mode 100644 gas/testsuite/gas/i386/x86-64-apx-egpr-inval.s create mode 100644 gas/testsuite/gas/i386/x86-64-apx-egpr-promote-inval.l create mode 100644 gas/testsuite/gas/i386/x86-64-apx-egpr-promote-inval.s create mode 100644 gas/testsuite/gas/i386/x86-64-apx-evex-egpr.d create mode 100644 gas/testsuite/gas/i386/x86-64-apx-evex-egpr.s create mode 100644 gas/testsuite/gas/i386/x86-64-apx-evex-promoted-bad.d create mode 100644 gas/testsuite/gas/i386/x86-64-apx-evex-promoted-bad.s create mode 100644 gas/testsuite/gas/i386/x86-64-apx-evex-promoted-intel.d create mode 100644 gas/testsuite/gas/i386/x86-64-apx-evex-promoted.d create mode 100644 gas/testsuite/gas/i386/x86-64-apx-evex-promoted.s create mode 100644 gas/testsuite/gas/i386/x86-64-apx-jmpabs-intel.d create mode 100644 gas/testsuite/gas/i386/x86-64-apx-jmpabs-inval.d create mode 100644 gas/testsuite/gas/i386/x86-64-apx-jmpabs-inval.s create mode 100644 gas/testsuite/gas/i386/x86-64-apx-jmpabs.d create mode 100644 gas/testsuite/gas/i386/x86-64-apx-jmpabs.s create mode 100644 gas/testsuite/gas/i386/x86-64-apx-ndd-optimize.d create mode 100644 gas/testsuite/gas/i386/x86-64-apx-ndd-optimize.s create mode 100644 gas/testsuite/gas/i386/x86-64-apx-ndd.d create mode 100644 gas/testsuite/gas/i386/x86-64-apx-ndd.s create mode 100644 gas/testsuite/gas/i386/x86-64-apx-push2pop2-intel.d create mode 100644 gas/testsuite/gas/i386/x86-64-apx-push2pop2-inval.l create mode 100644 gas/testsuite/gas/i386/x86-64-apx-push2pop2-inval.s create mode 100644 gas/testsuite/gas/i386/x86-64-apx-push2pop2.d create mode 100644 gas/testsuite/gas/i386/x86-64-apx-push2pop2.s create mode 100644 gas/testsuite/gas/i386/x86-64-apx-pushp-popp-intel.d create mode 100644 gas/testsuite/gas/i386/x86-64-apx-pushp-popp-inval.l create mode 100644 gas/testsuite/gas/i386/x86-64-apx-pushp-popp-inval.s create mode 100644 gas/testsuite/gas/i386/x86-64-apx-pushp-popp.d create mode 100644 gas/testsuite/gas/i386/x86-64-apx-pushp-popp.s create mode 100644 gas/testsuite/gas/i386/x86-64-apx-rex2.d create mode 100644 gas/testsuite/gas/i386/x86-64-apx-rex2.s create mode 100644 opcodes/i386-dis-evex-x86-64.h