Message ID | 20230921101141.2518818-1-lili.cui@intel.com |
---|---|
Headers |
Return-Path: <binutils-bounces+ouuuleilei=gmail.com@sourceware.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp4735661vqi; Thu, 21 Sep 2023 03:12:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEg/8PpxTrPi+vLKRKxvOgOo1AX0sboV9EE+kXxA3RTtMDKhxmovXGxfF5riB4/tXRyWpHM X-Received: by 2002:a17:906:20d9:b0:99b:4ed4:5527 with SMTP id c25-20020a17090620d900b0099b4ed45527mr4795320ejc.25.1695291178757; Thu, 21 Sep 2023 03:12:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695291178; cv=none; d=google.com; s=arc-20160816; b=WIDQa8b+ouCNiGLFark0zE43esPPD9FNIWI5/NXZ+C7i4aCnfwoQu4iMfYC/QFzhz3 XAxrEc/yWrnwlNjfn5GenccDVc4i4GYO4FkUvVf6efayr+AB8E78QAlWIyggCg9URBsI m88BDlWd5oz58i8U7REMe0jO9UrSpftCQSWGMfOTatxCQyrkv9QkgEVpO7992VmcWYZa ukm8bECF6yinJkITL6LUuI/e4J+OkBpO7129D3F44fRzXLv4h9EpDprSn8GL2Ki9L0CG /Qn0qPDKIzHMIjK13BCerNW+EwthMwqreP31Hb5dzjWG5V+qS7tLEVT+CVDijwpqiJZr qCTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:message-id:date:subject:cc :to:dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=DoidzfhlpkxgSW/16lKdXolt2gaV/WiORmXDI87px8M=; fh=7sUA/dZN/ElWRCAwYHpKDCImPv0C24iIxN7EpdmJ0qo=; b=JNfXwUzIOZCFl30uxmtFmLMaP38yNlhcIhaplhBScnX56wkRRs/Nn+9aj8e8t5PZjS 21PsocOLRq/Dr9Fpz+tY2YfGtrKukEIYWHUTmf+oRch0a986u+cxTfwBkZKsm/poMtL/ uQddcZMTlAJZ/2P8xK6TkPVlHptxRI0Vn8+OjX9V1oK0HncAOwlHLpF8Mp1V4BswdE3/ Ddjl2/8UYTT3MT/gyp0rTZ4ABlTQzKMA6pNxCdElN+wFc/XzJ1SAFWXtnLkd2Bm+e/6V ZptzQINbHr3G3TTFvR7NbzSc0yk29gn8UStRIcw+Clig6nouKzSTeJuVTriaAcnQXZ+D 5WLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=eOcasXkG; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sourceware.org Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id mb18-20020a170906eb1200b00997c44fb391si991473ejb.401.2023.09.21.03.12.58 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 03:12:58 -0700 (PDT) Received-SPF: pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=eOcasXkG; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 1BE9C3856944 for <ouuuleilei@gmail.com>; Thu, 21 Sep 2023 10:12:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1BE9C3856944 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1695291150; bh=DoidzfhlpkxgSW/16lKdXolt2gaV/WiORmXDI87px8M=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=eOcasXkG5MlGTxDLmGlswNBOnns6dvcTgj9qEst/mn4ebJZBndqa7DjBtTZQ3e1q5 zueogBLPdZknYLlsRXeI9iTFF8Nx2BYodU3TkPEqE/c4Djybj/93bACNn567wZII3L +cslVJhPORtChjgk0JKn00O7n5ZWKJtzSTLJhUEc= X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.126]) by sourceware.org (Postfix) with ESMTPS id 8B2643857BB3 for <binutils@sourceware.org>; Thu, 21 Sep 2023 10:12:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8B2643857BB3 X-IronPort-AV: E=McAfee;i="6600,9927,10839"; a="365533226" X-IronPort-AV: E=Sophos;i="6.03,165,1694761200"; d="scan'208";a="365533226" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Sep 2023 03:12:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10839"; a="812585780" X-IronPort-AV: E=Sophos;i="6.03,165,1694761200"; d="scan'208";a="812585780" Received: from scymds04.sc.intel.com ([10.82.73.238]) by fmsmga008.fm.intel.com with ESMTP; 21 Sep 2023 03:11:52 -0700 Received: from shgcc101.sh.intel.com (shgcc101.sh.intel.com [10.239.85.97]) by scymds04.sc.intel.com (Postfix) with ESMTP id A6642181F52B; Thu, 21 Sep 2023 03:11:43 -0700 (PDT) To: binutils@sourceware.org Cc: jbeulich@suse.com, hongjiu.lu@intel.com, ccoutant@gmail.com Subject: [PATCH 0/6] [RFC] Support Intel APX EGPR (part II) Date: Thu, 21 Sep 2023 10:11:35 +0000 Message-Id: <20230921101141.2518818-1-lili.cui@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.1 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 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> From: "Cui, Lili via Binutils" <binutils@sourceware.org> Reply-To: "Cui, Lili" <lili.cui@intel.com> Errors-To: binutils-bounces+ouuuleilei=gmail.com@sourceware.org Sender: "Binutils" <binutils-bounces+ouuuleilei=gmail.com@sourceware.org> X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777641643103102762 X-GMAIL-MSGID: 1777641643103102762 |
Series |
Support Intel APX EGPR (part II)
|
|
Message
Frager, Neal via Binutils
Sept. 21, 2023, 10:11 a.m. UTC
Add another 6 patches to support Intel APX EGPR. Cui, Lili (1): Disable pseudo prefix {rex2} for illegal instructions. H.J. Lu (3): x86-64: Add R_X86_64_CODE_4_GOTPCRELX gold: Handle R_X86_64_CODE_4_GOTPCRELX For Hu, Lin1 (1): Support {evex} pseudo prefix for decode evex promoted insns without egpr32. hjl-tools (1): Gold: Handle R_X86_64_CODE_4_GOTPC32_TLSDESC/R_X86_64_CODE_4_GOTTPOFF bfd/bfd-in2.h | 3 + bfd/elf64-x86-64.c | 196 ++- bfd/libbfd.h | 3 + bfd/reloc.c | 6 + elfcpp/x86_64.h | 14 +- gas/config/tc-i386.c | 42 +- gas/config/tc-i386.h | 6 +- .../gas/i386/ilp32/x86-64-localpic.d | 4 +- .../gas/i386/x86-64-apx_f-evex-intel.d | 1184 +++++++++++++++++ gas/testsuite/gas/i386/x86-64-apx_f-evex.d | 1184 +++++++++++++++++ gas/testsuite/gas/i386/x86-64-apx_f-evex.s | 1180 ++++++++++++++++ gas/testsuite/gas/i386/x86-64-gotpcrel.d | 12 + gas/testsuite/gas/i386/x86-64-gotpcrel.s | 19 + gas/testsuite/gas/i386/x86-64-gottpoff.d | 19 + gas/testsuite/gas/i386/x86-64-gottpoff.s | 15 + gas/testsuite/gas/i386/x86-64-localpic.d | 4 +- gas/testsuite/gas/i386/x86-64-localpic.s | 2 + gas/testsuite/gas/i386/x86-64-pseudos-bad.l | 36 + gas/testsuite/gas/i386/x86-64-pseudos-bad.s | 42 + gas/testsuite/gas/i386/x86-64-pseudos.d | 1 - gas/testsuite/gas/i386/x86-64-pseudos.s | 1 - gas/testsuite/gas/i386/x86-64-tlsdesc.d | 17 + gas/testsuite/gas/i386/x86-64-tlsdesc.s | 13 + gas/testsuite/gas/i386/x86-64.exp | 5 + gas/write.h | 3 +- gold/testsuite/Makefile.am | 11 + gold/testsuite/Makefile.in | 17 + gold/testsuite/x86_64_gd_to_le.s | 1 + gold/testsuite/x86_64_gd_to_le.sh | 1 + gold/testsuite/x86_64_ie_to_le.s | 17 + gold/testsuite/x86_64_ie_to_le.sh | 29 + gold/testsuite/x86_64_mov_to_lea.sh | 16 + gold/testsuite/x86_64_mov_to_lea1.s | 1 + gold/testsuite/x86_64_mov_to_lea2.s | 1 + gold/testsuite/x86_64_mov_to_lea3.s | 1 + gold/testsuite/x86_64_mov_to_lea4.s | 1 + gold/testsuite/x86_64_mov_to_lea5.s | 1 + gold/x86_64.cc | 193 ++- include/elf/x86-64.h | 12 +- ld/testsuite/ld-x86-64/apx-load1.s | 51 + ld/testsuite/ld-x86-64/apx-load1a.d | 54 + ld/testsuite/ld-x86-64/apx-load1b.d | 55 + ld/testsuite/ld-x86-64/apx-load1c.d | 47 + ld/testsuite/ld-x86-64/apx-load1d.d | 47 + ld/testsuite/ld-x86-64/tlsbindesc.dd | 49 + ld/testsuite/ld-x86-64/tlsbindesc.rd | 36 +- ld/testsuite/ld-x86-64/tlsbindesc.s | 39 + ld/testsuite/ld-x86-64/x86-64.exp | 4 + opcodes/i386-dis-evex-len.h | 2 +- opcodes/i386-dis-evex-mod.h | 24 +- opcodes/i386-dis-evex-prefix.h | 36 +- opcodes/i386-dis-evex-reg.h | 50 +- opcodes/i386-dis-evex-x86.h | 32 +- opcodes/i386-dis-evex.h | 20 +- opcodes/i386-dis.c | 53 +- opcodes/i386-opc.tbl | 70 +- 56 files changed, 4743 insertions(+), 239 deletions(-) create mode 100644 gas/testsuite/gas/i386/x86-64-apx_f-evex-intel.d create mode 100644 gas/testsuite/gas/i386/x86-64-apx_f-evex.d create mode 100644 gas/testsuite/gas/i386/x86-64-apx_f-evex.s create mode 100644 gas/testsuite/gas/i386/x86-64-gottpoff.d create mode 100644 gas/testsuite/gas/i386/x86-64-gottpoff.s create mode 100644 gas/testsuite/gas/i386/x86-64-tlsdesc.d create mode 100644 gas/testsuite/gas/i386/x86-64-tlsdesc.s create mode 100644 gold/testsuite/x86_64_ie_to_le.s create mode 100755 gold/testsuite/x86_64_ie_to_le.sh create mode 100644 ld/testsuite/ld-x86-64/apx-load1.s create mode 100644 ld/testsuite/ld-x86-64/apx-load1a.d create mode 100644 ld/testsuite/ld-x86-64/apx-load1b.d create mode 100644 ld/testsuite/ld-x86-64/apx-load1c.d create mode 100644 ld/testsuite/ld-x86-64/apx-load1d.d