From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf1-x42a.google.com (mail-pf1-x42a.google.com [IPv6:2607:f8b0:4864:20::42a]) by sourceware.org (Postfix) with ESMTPS id 07EA9385781A for ; Mon, 22 Mar 2021 18:04:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 07EA9385781A Received: by mail-pf1-x42a.google.com with SMTP id 11so11502761pfn.9 for ; Mon, 22 Mar 2021 11:04:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=7oZ0R9zqtIBii/oaEg+XA9/kHoCAbRCRby5n0KHpa6k=; b=jqa+I429gXcEuxjcEfXghQdSpj1L7ulWVqOYrni8cRofIzWAx1CJLrKQlSej8+fUTR eV+Z19bzduDsE36SvqzY3QmKOsPFS4GDMExiD9pK/Mvd+7O6Qz+nOFwGkpE+3PR/kgw9 v3jglftN5O93D6wPgi+Ob+xw9GnoV/WILI3NzttBLl/WwK69kMMIt5k1YeBVbLyI+YdR 8WA2TjohkxUfLaz1QbZwslskD6kc5+q7XkN5z6FiePV9xZE13fLPHtVdmCr1JjFapwne LGRxYS62s8LJIJN2w2gIhUZs2NaHHLXxx85sGwzKX9d6cKxuV2fEc5m2GSUyTELJeP/V A45Q== X-Gm-Message-State: AOAM531owMRT4fswraH1U7+ZIBPssPyKaut4xM5uFuAQB6WlzRtkP2X2 ZsdoOLCvVfZg4IaBLSHaJe/miqzN9aM= X-Google-Smtp-Source: ABdhPJySKobq22V/6+Hi39WB5Swl8H2hLms+yA9QypcVK3zulONGP1u9e0mlY1WuiFCJJeQMkq3dqQ== X-Received: by 2002:a63:5c23:: with SMTP id q35mr683544pgb.418.1616436252159; Mon, 22 Mar 2021 11:04:12 -0700 (PDT) Received: from gnu-cfl-2.localdomain ([172.56.38.37]) by smtp.gmail.com with ESMTPSA id d2sm101594pjx.42.2021.03.22.11.04.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Mar 2021 11:04:11 -0700 (PDT) Received: by gnu-cfl-2.localdomain (Postfix, from userid 1000) id 5A83A1A0A33; Mon, 22 Mar 2021 11:04:09 -0700 (PDT) Date: Mon, 22 Mar 2021 11:04:09 -0700 From: "H.J. Lu" To: Jan Beulich Cc: Binutils , "H.J. Lu" Subject: Re: [PATCH 4/8] x86: split opcode prefix and opcode space representation Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-3030.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Mar 2021 18:04:14 -0000 On Mon, Mar 22, 2021 at 05:44:19PM +0100, Jan Beulich wrote: > Commit 8b65b8953af2 ("x86: Remove the prefix byte from non-VEX/EVEX > base_opcode") used the opcodeprefix field for two distinct purposes. In > preparation of having VEX/XOP/EVEX and non-VEX templates become similar > in the representatioon of both encoding space and opcode prefixes, split > the field to have a separate one holding an insn's opcode space. > > gas/ > 2021-03-XX Jan Beulich > > * config/tc-i386.c (pte): Print prefix and encoding space. > (build_vex_prefix): Check opcodespace instead of opcodeprefix. > (build_evex_prefix): Likewise. > (load_insn_p): Likewise. > > opcodes/ > 2021-03-XX Jan Beulich > > * i386-gen.c (opcode_modifiers): New OpcodeSpace element. > * i386-opc.h (OpcodeSpace): New enumerator. > (VEX0F, VEX0F38, VEX0F3A, XOP08, XOP09, XOP0A): Rename to ... > (SPACE_BASE, SPACE_0F, SPACE_0F38, SPACE_0F3A, SPACE_XOP08, > SPACE_XOP09, SPACE_XOP0A): ... respectively. > (struct i386_opcode_modifier): New field opcodespace. Shrink > opcodeprefix field. > i386-opc.tbl (Space0F, Space0F38, Space0F3A, SpaceXOP08, > SpaceXOP09, SpaceXOP0A): Define. Use them to replace > OpcodePrefix uses. > * i386-tbl.h: Re-generate. > OK. Thanks. H.J.