From patchwork Fri Mar 1 12:42:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Beulich X-Patchwork-Id: 208820 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2097:b0:108:e6aa:91d0 with SMTP id gs23csp1048712dyb; Fri, 1 Mar 2024 04:42:50 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVc/bAJiq2KDLezwoT/9xsyft6wWTHQXsdsaSecXLzDyZqZhvt4AleFiYtgRR78oWw+Bun9OxV/tWiN92f0oTPr4VvwmQ== X-Google-Smtp-Source: AGHT+IEns45d1XX9GQWvuOhrTtucNyg3X8nMy6U++0gU+GnKkLVaL1fhU1XKusy/No5Q+5OlVkYW X-Received: by 2002:ac8:5bcf:0:b0:42e:7ea3:46ce with SMTP id b15-20020ac85bcf000000b0042e7ea346cemr1628538qtb.43.1709296969912; Fri, 01 Mar 2024 04:42:49 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709296969; cv=pass; d=google.com; s=arc-20160816; b=qZN5OaDrE+b63DL2LW+P/ZUvQFPqO8tlGcqPvAmGfhvNidRkGiHtu2tKXyeIsgFVh4 FY4NIgAGKFHre0WAOD4FFd0JYxhq22RRPw7UozhhEwoVXCDEMRTdcbI34PAPMvyBdA0H q3sJcQxF6JxAfdpjYykUFUsHR3F5BzjLCS2GS7nYNDy3vLuWr5xi8LO41UCkFyzxgK3f SsSZIVakwCed1n20BJL+kKNKpro9KzosvCfNRcsgOkE93cFRUk8WeqAvKPcyQYBY9GQo i5zQ35A5Sfc5soxME5y9SIU0RSm0fmQO4HDtk485BhZXTYkQujOsth1PD7l8hXHcNmGB Vnog== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :autocrypt:subject:from:cc:to:content-language:user-agent :mime-version:date:message-id:dkim-signature:arc-filter:dmarc-filter :delivered-to; bh=pRsYNy1lgU9Ba8QBeBUxtf661qcNJZOaUQXnPiF22AY=; fh=8WW8/k0o0G2vlJiZAQKLzwZ5FShsw2CjyMds4OH6804=; b=X5yjIMxvKN1I2q2YGnzSDx90tpozdUzv0xbSzcw20tcs8HUUo40Jc3MmDIV0dgO7R9 tTFsJwHV/51MToxtcqUJlyI9fvM2C5b07oqJMda8fvEtDpxY8ri54IqvxYkh5o+xyOw6 P/7GnT35bftw7ZxYcXTh1IwlRiUNGSPgpTuRLG8/fcXQly3WGkI9BFJT5xOOfO+dpWpw J0q8Rz5k+XfAIGcJZm0meaDvOVFGAnP7s1Nd8rsq81XejeHRRxH4aLO9JO3QV6GIN81A o2Te/4Q/OxrZRnDAgx36Yxw5wFJEq3RzN1e4nqsiTVRjyuL7KzNAvAqFADaRuOBfabK8 pt5Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.com header.s=google header.b=Xg1V3+8S; arc=pass (i=1); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id e14-20020a05622a110e00b0042e81bfd511si3722134qty.109.2024.03.01.04.42.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 04:42:49 -0800 (PST) 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=@suse.com header.s=google header.b=Xg1V3+8S; arc=pass (i=1); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 8D4BC3858416 for ; Fri, 1 Mar 2024 12:42:49 +0000 (GMT) X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by sourceware.org (Postfix) with ESMTPS id 16CCF3858C66 for ; Fri, 1 Mar 2024 12:42:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 16CCF3858C66 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 16CCF3858C66 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::632 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1709296959; cv=none; b=QTV+GfaCXXutYSGXEM+/Io8DczWxJKUBTBeySozEXAxpdaQGuo3vLJugfug2uo6bAvzxZKTqQW91XVTAcTgpr/0tTTcn9sHiD8jWBOAFV8gtQ0GjyJcwgl4KdzLlCMhn6xZxT+OgzvLpcgjFZEVyx71gk5wMly1DjSVd3BzxYQs= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1709296959; c=relaxed/simple; bh=EF8Xikerv2sfKPPAVoqyiJbvGUnlyQoT8zQwGz11FVA=; h=DKIM-Signature:Message-ID:Date:MIME-Version:To:From:Subject; b=eWHlisPfgVwDAokipq/s7u8uRtKNzaGo4SQqW4iBMByOU6wxKbXpjAehuKMFaAZXMCnYIUukanQGI8/OzhK/tz3YRF0mt/CAx6Ic+EHSqsgbvgSdifmZknXWXyYTCQGZxZENXQD42K+sdieCiQy127FE0LsrCfVmWsoPaMr7KcM= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-ej1-x632.google.com with SMTP id a640c23a62f3a-a3fb8b0b7acso301328566b.2 for ; Fri, 01 Mar 2024 04:42:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1709296956; x=1709901756; 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=pRsYNy1lgU9Ba8QBeBUxtf661qcNJZOaUQXnPiF22AY=; b=Xg1V3+8Sb190d74aJnhlCj01sgC7f0so0Iwv5mItmfwlTt1JmHzzYjskEJccOOIbRU IzsnQ+8eXSdOqgJTjk70falkLnfLvD4e1Wd+u8COHxlBcvltQeYKP4hKtU29kcrmUagB eNDwRL9tG8H3wpfsl/vfAiQ1CcAIj8YPL+oyC6EUdTrDZYP5Q3JyFG7ivAAghpVr709q i8aSZ9TrrLRp5+zme/y46HFdl33Hiv+gNWPL3GMVRtwuBY2aeQRLip1m6SkA+zII2XKu 8CpUVIemua/ix0zt6XQ/J1EI83vkNGytQVrcuxUksWqhqYT1XLCmJTkNuZ6xEvH+WX+0 W6LQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709296956; x=1709901756; 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=pRsYNy1lgU9Ba8QBeBUxtf661qcNJZOaUQXnPiF22AY=; b=lovOI75FM4UIysTOqCzlqMYbghmMSatkrBa0BsKubTrL1AT7+FwGYj6P/7cYNH0G6U PyAavAKnYtQ+n8dAs+7WIODi3gPr8qZxBq25JyVGYqgKkNJo7ZJyJQYgs5WIDrJcmV7v 7yZMC/HcxKazyvWdru8iWZZyOI1AcmDVHskj0HbjlUSBjV8AoO+NMESo7bdSb1zVXfos uRQv9qJI4tDqS2ib9lgLDjPibWxpnEvGlsGn7RxBn01AQYW/s7K7oFueqiHatSeFxaSd Whz48TbBut2UqMzkj6uzKIxp67GccIbX6BpG7blODTyERV1ASVwx/L0v2OWiNiaxLlhC KKyA== X-Gm-Message-State: AOJu0YxNA+HJ1RmOX1tXgDigQCveJ08Pp1bKbsejGXoy2DmFOZO54tfv UXnCUm81fWgPFn17AEhuf7DHYW+pgjsmd1nB7XbS7dAM/D+xBeMsjSGJrElzYTFQNqV5JBzeTNI = X-Received: by 2002:a17:906:c7cc:b0:a44:7a34:e620 with SMTP id dc12-20020a170906c7cc00b00a447a34e620mr1320947ejb.4.1709296956377; Fri, 01 Mar 2024 04:42:36 -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 m26-20020a17090607da00b00a441ff174a3sm1671491ejc.90.2024.03.01.04.42.36 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 01 Mar 2024 04:42:36 -0800 (PST) Message-ID: <4fec00c7-82e4-479a-a062-87dc5fdc0daf@suse.com> Date: Fri, 1 Mar 2024 13:42:34 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: Binutils Cc: "H.J. Lu" From: Jan Beulich Subject: [PATCH] x86/APX: permit wider than 4-bit immediates with V{EXTRACT,INSERT}{F,I}128 Autocrypt: addr=jbeulich@suse.com; keydata= xsDiBFk3nEQRBADAEaSw6zC/EJkiwGPXbWtPxl2xCdSoeepS07jW8UgcHNurfHvUzogEq5xk hu507c3BarVjyWCJOylMNR98Yd8VqD9UfmX0Hb8/BrA+Hl6/DB/eqGptrf4BSRwcZQM32aZK 7Pj2XbGWIUrZrd70x1eAP9QE3P79Y2oLrsCgbZJfEwCgvz9JjGmQqQkRiTVzlZVCJY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xcqscEJzNH+qh8V m5jjp28yZgaqTaRbg3M/+MTbMpicpZuqF4rnB0AQD12/3BNWDR6bmh+EkYSMcEIpQmBM51qM EKYTQGybRCjpnKHGOxG0rfFY1085mBDZCH5Kx0cl0HVJuQKC+dV2ZY5AqjcKwAxpE75MLFkr wkkEGBECAAkFAlk3nEQCGwwACgkQoDSui/t3IH7nnwCfcJWUDUFKdCsBH/E5d+0ZnMQi+G0A nAuWpQkjM1ASeQwSHEeAWPgskBQL X-Spam-Status: No, score=-3025.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: binutils-bounces+ouuuleilei=gmail.com@sourceware.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792327779464597804 X-GMAIL-MSGID: 1792327779464597804 These aren't useful, but can be encoded for their AVX forms and hence should also be permitted for the APX surrogates. Extend the respective conditional by a base opcode check, to restrict it to VROUND{P,S}{S,D}. --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -8230,7 +8230,9 @@ check_VecOperands (const insn_template * /* Check the special Imm4 cases; must be the first operand. */ if ((is_cpu (t, CpuXOP) && t->operands == 5) - || (is_cpu (t, CpuAPX_F) && t->opcode_space == SPACE_0F3A)) + || (t->opcode_space == SPACE_0F3A + && (t->base_opcode | 3) == 0x0b + && is_cpu (t, CpuAPX_F))) { if (i.op[0].imms->X_op != O_constant || !fits_in_imm4 (i.op[0].imms->X_add_number))