Message ID | 576446e9-6ebe-4911-b9f6-df4338e93565@suse.com |
---|---|
State | New |
Headers |
Return-Path: <binutils-bounces~patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id DA2BF3858C54 for <patchwork@sourceware.org>; Mon, 18 Nov 2024 10:53:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DA2BF3858C54 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=suse.com header.i=@suse.com header.a=rsa-sha256 header.s=google header.b=WGwSOqj1 X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by sourceware.org (Postfix) with ESMTPS id C44C2385B525 for <binutils@sourceware.org>; Mon, 18 Nov 2024 10:50:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C44C2385B525 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org C44C2385B525 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::42a ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1731927033; cv=none; b=DNcC07SiecZui2PQedKaWqOAh2Tt+eRDcEToe1cq87GLTQC5PDnrdEuO/LZ9fv1D53PlWZHWI08SxFxN/WCwPZ94KZNxlKFWodQs7DVD9T1bVWde3Toa3QDnbHqS/ramqgYnmtUR8uzWIX4snWGSl3V40e0Q+S/wj51ukt5QWrE= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1731927033; c=relaxed/simple; bh=rvkASAHWIrMV/+UqTwtp57SC+zs0XgoLgK1GR0REHf8=; h=DKIM-Signature:Message-ID:Date:MIME-Version:To:From:Subject; b=k5ds4HtHlcxKqBQ7b4vMXxDVTFfWA+Fjb2tgy5xhbXSdjH/+siY6ugzhhCZTqHmNPHfbh2oo2ku5/YctfVusoGmQXiYNPk2ritvffru4xjHLW+lOn18Ui+suAhB3kBft1114nSOLl1RlgHiviFOsyz+BTSj6c5aACLwGVyci4nI= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-wr1-x42a.google.com with SMTP id ffacd0b85a97d-3823f1ed492so594762f8f.1 for <binutils@sourceware.org>; Mon, 18 Nov 2024 02:50:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1731927031; x=1732531831; darn=sourceware.org; h=content-transfer-encoding:autocrypt:subject:from:cc:to :content-language:user-agent:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=ME8ogrUVPB+DBblkdsXFlbYt/2eL8UVq8QSDh+q5SoE=; b=WGwSOqj198U6fh/hDrbnanHB9MYEZwXFmr0Bw1FrrBSm+FWjaG+wXyeDhAKvR9XTAN YFLhqGnIWXix9snQVu39DfHBYiquM+1s+PWxikn9UWEcGT+zBsPf+c1+XH5ZU48NH+iW +H7wYswcS0Y4uYo8bZjrQB96R8QNzC57ppt5cXc+bl1QkkG2gb5k1WkL48bTD5haZ84V nt3kj7dTiC6QMZp6Nk4Uw2wKI+wXffOW+scKNhHkU+nGbJYWR6SbTTmjJeKMqMGTHVmW 6wHbT1+3A15QEnRaacpPsi+Z10qEIHivQzcbJyGRs+oJjaum9x8FaGcNHau0o5Au/dYe cTKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731927031; x=1732531831; h=content-transfer-encoding:autocrypt:subject:from:cc:to :content-language:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ME8ogrUVPB+DBblkdsXFlbYt/2eL8UVq8QSDh+q5SoE=; b=Fju/jby47IQ1DNl5vnK44qLd/thGVdhpz1m0ZuLZ2PLKMYuMEgs6YIXJTyhzGa+2dk o2+i8+Naj/wIuUqLIgprvSr0utyGoS9vc8mWyl2jRwHG78he/t39tpOfiZNyEShk0+Mk t8zKfqXtEztzYN6c1875vHdmeyhEG0CZLXryz6kKE8TLgA9KdADLb+7j8q2A5Zu0Aytb biZTDEZeoDeGt6BF8yGWAsOb9C5txuFQTO807+OGW4m3zvm0i4F7q0F1JYJ/xHEh8fBl X9VIa/g1XaK2X4F4E7LHVJeg1p1iECanHrIbCQxvVmXz7GttYnOdkPYvlOZJL1Ttg11F jbxA== X-Gm-Message-State: AOJu0YykOP08QX8QYXNllWx0eq+5A4zTzdNebvwfeqTj1COkEsOpGpdB DAAQRhBxZ9CirQyJnV9BdoJgSakweJR21Evm1AVrpju3CUAFr/zQfWUsBPKV09mY7oWIrYQEi9E = X-Google-Smtp-Source: AGHT+IHdn04TInvyJ/VBBjh+1e+C1a9lNYRxf8L3HY3V08U6K81LCZ/Y+oBr5HqfBGxnrJgRBUPyEQ== X-Received: by 2002:a05:6000:1566:b0:382:48ba:631 with SMTP id ffacd0b85a97d-38248ba08cdmr2091880f8f.22.1731927031533; Mon, 18 Nov 2024 02:50:31 -0800 (PST) Received: from [10.156.60.236] (ip-037-024-206-209.um08.pools.vodafone-ip.de. [37.24.206.209]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38249b67709sm1695018f8f.76.2024.11.18.02.50.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 18 Nov 2024 02:50:31 -0800 (PST) Message-ID: <576446e9-6ebe-4911-b9f6-df4338e93565@suse.com> Date: Mon, 18 Nov 2024 11:50:30 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: Binutils <binutils@sourceware.org> Cc: "H.J. Lu" <hjl.tools@gmail.com> From: Jan Beulich <jbeulich@suse.com> Subject: [PATCH] x86: SETcc doesn't permit W suffix Autocryp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/oIvRlonUkxv+IbBM3dX2OV8 AmRv1ySWPTP7AAMFB/9PQK/VtlNUJvg8GXj9ootzrteGfVZVVT4XBJkfwBcpC/XcPzldjv+3 HYudvpdNK3lLujXeA5fLOH+Z/G9WBc5pFVSMocI71I8bT8lIAzreg0WvkWg5V2WZsUMlnDL9 mpwIGFhlbM3gfDMs7MPMu8YQRFVdUvtSpaAs8OFfGQ0ia3LGZcjA6Ik2+xcqscEJzNH+qh8V m5jjp28yZgaqTaRbg3M/+MTbMpicpZuqF4rnB0AQD12/3BNWDR6bmh+EkYSMcEIpQmBM51qM EKYTQGybRCjpnKHGOxG0rfFY1085mBDZCH5Kx0cl0HVJuQKC+dV2ZY5AqjcKwAxpE75MLFkr wkkEGBECAAkFAlk3nEQCGwwACgkQoDSui/t3IH7nnwCfcJWUDUFKdCsBH/E5d+0ZnMQi+G0A nAuWpQkjM1ASeQwSHEeAWPgskBQL Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3022.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, 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> Errors-To: binutils-bounces~patchwork=sourceware.org@sourceware.org |
Series |
x86: SETcc doesn't permit W suffix
|
|
Checks
Context | Check | Description |
---|---|---|
linaro-tcwg-bot/tcwg_binutils_build--master-arm | success | Build passed |
linaro-tcwg-bot/tcwg_binutils_build--master-aarch64 | success | Build passed |
linaro-tcwg-bot/tcwg_binutils_check--master-aarch64 | success | Test passed |
linaro-tcwg-bot/tcwg_binutils_check--master-arm | success | Test passed |
Commit Message
Jan Beulich
Nov. 18, 2024, 10:50 a.m. UTC
Accidentally I had removed No_wSuf when cloning the extra template.
Comments
On 18.11.2024 11:50, Jan Beulich wrote: > Accidentally I had removed No_wSuf when cloning the extra template. > > --- a/opcodes/i386-opc.tbl > +++ b/opcodes/i386-opc.tbl > @@ -562,7 +562,7 @@ set<cc>, 0xf24<cc:opc>/0, APX_F, Modrm|N > setzu<cc>, 0xf24<cc:opc>/0, APX_F, Modrm|No_wSuf|No_lSuf|No_sSuf|No_qSuf|VexWIG|EVexMap4|ZU, { Reg8 } > // As an extension, allow SETcc without the ZU infix, instead taking the full > // register as operand. > -set<cc>, 0xf24<cc:opc>/0, APX_F, Modrm|No_bSuf|No_sSuf|EVexMap4|ZU, { Reg32|Reg64 } > +set<cc>, 0xf24<cc:opc>/0, APX_F, Modrm|No_bSuf|No_wSuf|No_sSuf|EVexMap4|ZU, { Reg32|Reg64 } While I noticed the above issue in the context of "x86/Solaris: support Sun form of CMOVcc", I'll arbitrarily reply here: That same documentation (as before, the only AT&T spec I'm aware of) does specifically not name 'b' suffixes for SETcc. Still we allow them, and we even have one single test for it. It feels wrong though. Probably we shouldn't remove support for the pre-APX form. Yet I'm heavily inclined to disallow it for the APX ones that we gained only relatively recently. Thoughts? Jan
> -----Original Message----- > From: Jan Beulich <jbeulich@suse.com> > Sent: Monday, November 18, 2024 7:04 PM > To: H.J. Lu <hjl.tools@gmail.com>; Cui, Lili <lili.cui@intel.com> > Cc: Binutils <binutils@sourceware.org> > Subject: Re: [PATCH] x86: SETcc doesn't permit W suffix > > On 18.11.2024 11:50, Jan Beulich wrote: > > Accidentally I had removed No_wSuf when cloning the extra template. > > > > --- a/opcodes/i386-opc.tbl > > +++ b/opcodes/i386-opc.tbl > > @@ -562,7 +562,7 @@ set<cc>, 0xf24<cc:opc>/0, APX_F, Modrm|N > > setzu<cc>, 0xf24<cc:opc>/0, APX_F, > > Modrm|No_wSuf|No_lSuf|No_sSuf|No_qSuf|VexWIG|EVexMap4|ZU, > { Reg8 } // > > As an extension, allow SETcc without the ZU infix, instead taking the full // > register as operand. > > -set<cc>, 0xf24<cc:opc>/0, APX_F, Modrm|No_bSuf|No_sSuf|EVexMap4|ZU, > { > > Reg32|Reg64 } > > +set<cc>, 0xf24<cc:opc>/0, APX_F, > > +Modrm|No_bSuf|No_wSuf|No_sSuf|EVexMap4|ZU, { Reg32|Reg64 } > > While I noticed the above issue in the context of "x86/Solaris: support Sun > form of CMOVcc", I'll arbitrarily reply here: That same documentation (as > before, the only AT&T spec I'm aware of) does specifically not name 'b' suffixes > for SETcc. Still we allow them, and we even have one single test for it. It feels > wrong though. Probably we shouldn't remove support for the pre-APX form. > Yet I'm heavily inclined to disallow it for the APX ones that we gained only > relatively recently. Thoughts? Either both prohibit b, or both allow b. It looks like SDM doesn't disable the b suffix for SETcc, but I see your point, our default output is b now, I think it's better to keep them the same, either disabling b in both or allowing b in both. Thanks, Lili.
--- a/opcodes/i386-opc.tbl +++ b/opcodes/i386-opc.tbl @@ -562,7 +562,7 @@ set<cc>, 0xf24<cc:opc>/0, APX_F, Modrm|N setzu<cc>, 0xf24<cc:opc>/0, APX_F, Modrm|No_wSuf|No_lSuf|No_sSuf|No_qSuf|VexWIG|EVexMap4|ZU, { Reg8 } // As an extension, allow SETcc without the ZU infix, instead taking the full // register as operand. -set<cc>, 0xf24<cc:opc>/0, APX_F, Modrm|No_bSuf|No_sSuf|EVexMap4|ZU, { Reg32|Reg64 } +set<cc>, 0xf24<cc:opc>/0, APX_F, Modrm|No_bSuf|No_wSuf|No_sSuf|EVexMap4|ZU, { Reg32|Reg64 } // String manipulation. cmps, 0xa6, 0, W|No_sSuf|RepPrefixOk|IntelSuffix, {}