From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.8]) by sourceware.org (Postfix) with ESMTPS id 278D13858D32 for ; Thu, 2 Nov 2023 11:29:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 278D13858D32 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 278D13858D32 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=192.198.163.8 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698924567; cv=none; b=L+noigUDvEXRN7S0ETil/Y36DQS0CYJ2ITW75jsbv9F1OaxZQcruMdUhZw9Cu/8b79bLt0XOHmkxdPq7SbiYuy40LIMqAjzcgTcQr0PiC2yl4DxMdW+9SgCWQfXcrBsvdJRr+9L8ryR28gHZDuP3/15ebSEeY7JwwO1G72atCaQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698924567; c=relaxed/simple; bh=MHTal+pwbEMGuQIX/8yIiK2EVkdr/9Qf2f1VCO/OpTw=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=HauxlsErBmFbQaeFDz1gGwnP1ahFB1CYp8vBKNX5Q/CapZswbf4LENmGj7aGIaxZw/0UWfTH1OoczwHnhGIN8smI3b4tjdD5ZBN2/nAzJk0YGqf4ebsmfSZ06/vjgMAWcSllTMVW0FhLDjnVrwJyt6WuPBJovIsJViIJa9cXFuI= 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=1698924557; x=1730460557; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=MHTal+pwbEMGuQIX/8yIiK2EVkdr/9Qf2f1VCO/OpTw=; b=ZiPvt6w+Lr2KHd7aKI1t9lMS/0+jFN6abN6LBZeoQFup5ka4NDtiU1cT miaGVw/beRDhmEXZqKVUAMW5/zpn0DYb1+OhwXJ8l2wLgQzGCpPS9pP3s fk214wxSoh5q693is46OIUYHpuZl1/xwmSdnOqMHRt2OqsSwG3TKw7Dgl DUJGZWNMdMKuvaKcO6WdI+6JIDxquEOUrbpfzleSlIW7lt7amTExwc3GM WPBJAYMq+7yUAUa4kHdJgFc5ZaGQCfGmyBwhodDCn01pvVgCF/cbPPq0C 5f1q2YEP5MjxhMOrvLjAbmPU/Ivf3y8U5Q9mFdTZcxeqHgo2gAfoN83Sz w==; X-IronPort-AV: E=McAfee;i="6600,9927,10881"; a="1563481" X-IronPort-AV: E=Sophos;i="6.03,271,1694761200"; d="scan'208";a="1563481" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Nov 2023 04:29:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10881"; a="711126044" X-IronPort-AV: E=Sophos;i="6.03,271,1694761200"; d="scan'208";a="711126044" Received: from scymds03.sc.intel.com ([10.148.94.166]) by orsmga003.jf.intel.com with ESMTP; 02 Nov 2023 04:29:14 -0700 Received: from shgcc101.sh.intel.com (shgcc101.sh.intel.com [10.239.85.97]) by scymds03.sc.intel.com (Postfix) with ESMTP id 5402A5C; Thu, 2 Nov 2023 04:29:13 -0700 (PDT) From: "Cui, Lili" To: binutils@sourceware.org Cc: jbeulich@suse.com, hongjiu.lu@intel.com, ccoutant@gmail.com Subject: [PATCH v2 0/8] Support Intel APX EGPR Date: Thu, 2 Nov 2023 11:29:03 +0000 Message-Id: <20231102112911.2372810-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.0 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 List-Id: This is V2 of all APX patch. 1. Merged patch part II 1/6 into patch 1/8. 2. Created a new patch for empty EVEX_MAP4_ sub-table. 3. The NF patch needs to be suspended, Where NF should be placed is under discussion. Since the patch part II 2/6 depends on the NF patch, it is also suspended. 4. There are no comments yet for APX linker patch. Cui, Lili (4): 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 Hu, Lin1 (2): Support APX NDD optimized encoding. Support APX JMPABS Mo, Zewei (1): Support APX Push2/Pop2 konglin1 (1): Support APX NDD gas/config/tc-i386.c | 480 +++++- gas/doc/c-i386.texi | 3 +- gas/testsuite/gas/i386/apx-jmpabs-inval.l | 3 + gas/testsuite/gas/i386/apx-jmpabs-inval.s | 6 + gas/testsuite/gas/i386/apx-push2pop2-inval.l | 5 + gas/testsuite/gas/i386/apx-push2pop2-inval.s | 9 + gas/testsuite/gas/i386/i386.exp | 2 + .../i386/ilp32/x86-64-opcode-inval-intel.d | 4 +- .../gas/i386/ilp32/x86-64-opcode-inval.d | 4 +- .../gas/i386/x86-64-apx-egpr-inval.l | 203 +++ .../gas/i386/x86-64-apx-egpr-inval.s | 210 +++ .../gas/i386/x86-64-apx-egpr-promote-inval.l | 16 + .../gas/i386/x86-64-apx-egpr-promote-inval.s | 17 + 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 | 37 + .../gas/i386/x86-64-apx-evex-promoted-bad.s | 38 + .../gas/i386/x86-64-apx-evex-promoted-intel.d | 326 +++++ .../gas/i386/x86-64-apx-evex-promoted.d | 326 +++++ .../gas/i386/x86-64-apx-evex-promoted.s | 322 ++++ .../gas/i386/x86-64-apx-jmpabs-intel.d | 14 + .../gas/i386/x86-64-apx-jmpabs-inval.d | 55 + .../gas/i386/x86-64-apx-jmpabs-inval.s | 17 + gas/testsuite/gas/i386/x86-64-apx-jmpabs.d | 14 + gas/testsuite/gas/i386/x86-64-apx-jmpabs.s | 10 + .../gas/i386/x86-64-apx-ndd-optimize.d | 124 ++ .../gas/i386/x86-64-apx-ndd-optimize.s | 117 ++ gas/testsuite/gas/i386/x86-64-apx-ndd.d | 161 ++ gas/testsuite/gas/i386/x86-64-apx-ndd.s | 154 ++ .../gas/i386/x86-64-apx-push2pop2-intel.d | 42 + .../gas/i386/x86-64-apx-push2pop2-inval.l | 11 + .../gas/i386/x86-64-apx-push2pop2-inval.s | 15 + gas/testsuite/gas/i386/x86-64-apx-push2pop2.d | 42 + gas/testsuite/gas/i386/x86-64-apx-push2pop2.s | 39 + gas/testsuite/gas/i386/x86-64-apx-rex2.d | 83 ++ gas/testsuite/gas/i386/x86-64-apx-rex2.s | 86 ++ gas/testsuite/gas/i386/x86-64-evex.d | 2 +- gas/testsuite/gas/i386/x86-64-inval-movbe.l | 31 +- gas/testsuite/gas/i386/x86-64-inval-movbe.s | 1 + gas/testsuite/gas/i386/x86-64-inval-pseudo.l | 6 + gas/testsuite/gas/i386/x86-64-inval-pseudo.s | 4 + .../gas/i386/x86-64-opcode-inval-intel.d | 4 +- gas/testsuite/gas/i386/x86-64-opcode-inval.d | 4 +- gas/testsuite/gas/i386/x86-64-pseudos-bad.l | 42 + gas/testsuite/gas/i386/x86-64-pseudos-bad.s | 49 + gas/testsuite/gas/i386/x86-64-pseudos.d | 63 + gas/testsuite/gas/i386/x86-64-pseudos.s | 65 + gas/testsuite/gas/i386/x86-64.exp | 15 + include/opcode/i386.h | 2 + opcodes/i386-dis-evex-len.h | 10 + opcodes/i386-dis-evex-mod.h | 52 + opcodes/i386-dis-evex-prefix.h | 73 + opcodes/i386-dis-evex-reg.h | 77 + opcodes/i386-dis-evex-w.h | 10 + opcodes/i386-dis-evex-x86-64.h | 140 ++ opcodes/i386-dis-evex.h | 347 ++++- opcodes/i386-dis.c | 574 ++++++-- opcodes/i386-gen.c | 52 +- opcodes/i386-opc.h | 27 +- opcodes/i386-opc.tbl | 1291 ++++++++++------- opcodes/i386-reg.tbl | 64 + 61 files changed, 5217 insertions(+), 824 deletions(-) create mode 100644 gas/testsuite/gas/i386/apx-jmpabs-inval.l create mode 100644 gas/testsuite/gas/i386/apx-jmpabs-inval.s 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-rex2.d create mode 100644 gas/testsuite/gas/i386/x86-64-apx-rex2.s create mode 100644 opcodes/i386-dis-evex-x86-64.h -- 2.25.1 Thanks, Lili.