From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.20]) by sourceware.org (Postfix) with ESMTPS id 1C8073858D20 for ; Mon, 20 May 2024 06:22:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1C8073858D20 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 1C8073858D20 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=198.175.65.20 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1716186127; cv=none; b=NENb3CKBkhBTTCM8zoyb40XC8hNKN1Yn5g3EmO5gmUwpUh/VABCNJPAXIYDehHiOLVapWWH2hx0S2HOyHOCjpHpZ/WpuLtkYydWvrylZRdn0H0BmdJowHjVv3uPaiIcIS2Yi+KbCW7LZmbnywQ8J5ht6lSXIyC8im+n5b1Cec/Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1716186127; c=relaxed/simple; bh=GxqBYQ+dWmlO+5nRap1BxN07htULJpNn1nO23GnILkU=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=oc6zNZIu3V5O0h7E2lQxknmqwAaB3O7oJI7t13zEBBGis88mCuBC24Yx5xKQBMVUCdpzUYg6u7VReckdpgacvdMtcCoAYKpswbqHER1cJ7XDz0IMBy0LRgf8FmTo+uQ/5cEaEMYgRfBfsZ+i2bOH1/Ep38TXwi0/oOQV347aFmc= 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=1716186125; x=1747722125; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=GxqBYQ+dWmlO+5nRap1BxN07htULJpNn1nO23GnILkU=; b=c5hO7O0lQORuLKx/el/eRPWe6kmf1RTnvT+PWbNYuNSFjhxygj/BDIuZ GE+iQUdty78JKjXPhUsAtTYotH/Q8Tip4lPk9xxEt36VXwbr2fwrG8edF 1hinsdMUM4sW1ui7kZp35RZ1i2OEmOtx39Su8jqPzsvOsFsxibzfbNIrV /4I409XkZuNFy5f6QnVVUVSLxGC2Th+DU3Rxo1mn/ljB5N2SPVuNLqwxP 9NXYErQpCjkgeY0szD+8YVrbOKDzwgz1JIotkD3x5Gm8iIgMBSflGDqgB WDIM4vYu7hR5ppHsRLupy6VEeouRPMkeAWK81iJ/bj/iogf0gS659WITj A==; X-CSE-ConnectionGUID: g88dBEZMTLGRuno8pod34g== X-CSE-MsgGUID: CNUdqefURfau5oyq/uHsVg== X-IronPort-AV: E=McAfee;i="6600,9927,11077"; a="12138689" X-IronPort-AV: E=Sophos;i="6.08,174,1712646000"; d="scan'208";a="12138689" Received: from fmviesa004.fm.intel.com ([10.60.135.144]) by orvoesa112.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 May 2024 23:22:04 -0700 X-CSE-ConnectionGUID: IRoM1b0SSIOlTxJkR/RhKQ== X-CSE-MsgGUID: K/3amEhqT5GR6bqeqmIOqA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,174,1712646000"; d="scan'208";a="37001259" Received: from scymds04.sc.intel.com ([10.82.73.238]) by fmviesa004.fm.intel.com with ESMTP; 19 May 2024 23:22:04 -0700 Received: from shgcc10.sh.intel.com (unknown [10.239.85.189]) by scymds04.sc.intel.com (Postfix) with ESMTP id F31242003A60; Sun, 19 May 2024 23:22:02 -0700 (PDT) From: "Cui, Lili" To: binutils@sourceware.org Cc: hjl.tools@gmail.com, jbeulich@suse.com Subject: [PATCH 0/3] Support APX zero-upper Date: Mon, 20 May 2024 14:21:59 +0800 Message-Id: <20240520062202.1297234-1-lili.cui@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.9 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 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: In order to put EVEX old register checking together with REX/REX2, I created a new patch 1/3 to split "REX/REX2 old register checking" and "add empty rex prefix" into two separate branches. Then extend it to EVEX format. 1. Adjusted the indentation of test cases in patch 2/3 (previously 1/2). 2. Removed the redundancy of modifying {evex} in patch 3/3 (previously 2/2). 3. Since Intel will not update the new setzu form in the spec, I will not add set reg32/reg64 support in this patch. *** BLURB HERE *** Cui, Lili (3): x86: Split REX/REX2 old registers judgment. Add check for 8-bit old registers in EVEX format Support APX zero-upper gas/config/tc-i386.c | 33 +++--- gas/testsuite/gas/i386/rex-bad.l | 8 +- gas/testsuite/gas/i386/x86-64-apx-inval.l | 3 + gas/testsuite/gas/i386/x86-64-apx-inval.s | 2 + gas/testsuite/gas/i386/x86-64-apx-zu-intel.d | 78 +++++++++++++ gas/testsuite/gas/i386/x86-64-apx-zu-inval.l | 25 +++++ gas/testsuite/gas/i386/x86-64-apx-zu-inval.s | 28 +++++ gas/testsuite/gas/i386/x86-64-apx-zu.d | 78 +++++++++++++ gas/testsuite/gas/i386/x86-64-apx-zu.s | 73 ++++++++++++ gas/testsuite/gas/i386/x86-64.exp | 3 + opcodes/i386-dis-evex-prefix.h | 112 +++++++++++++++++++ opcodes/i386-dis-evex.h | 36 +++--- opcodes/i386-dis.c | 29 +++++ opcodes/i386-gen.c | 1 + opcodes/i386-opc.h | 4 + opcodes/i386-opc.tbl | 6 + 16 files changed, 480 insertions(+), 39 deletions(-) create mode 100644 gas/testsuite/gas/i386/x86-64-apx-zu-intel.d create mode 100644 gas/testsuite/gas/i386/x86-64-apx-zu-inval.l create mode 100644 gas/testsuite/gas/i386/x86-64-apx-zu-inval.s create mode 100644 gas/testsuite/gas/i386/x86-64-apx-zu.d create mode 100644 gas/testsuite/gas/i386/x86-64-apx-zu.s -- 2.34.1