From patchwork Thu Oct 10 01:57:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Kong, Lingling" X-Patchwork-Id: 1995194 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=bPxwXz9c; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4XPCbV5yqwz1xsc for ; Thu, 10 Oct 2024 12:58:43 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 019EB385E827 for ; Thu, 10 Oct 2024 01:58:42 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.17]) by sourceware.org (Postfix) with ESMTPS id DB1D83858417 for ; Thu, 10 Oct 2024 01:58:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DB1D83858417 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 DB1D83858417 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=192.198.163.17 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1728525501; cv=pass; b=LVFDfwtxafGkC9FHnG6owp//eQxrfdb4YEKN3YiWMf1OzWuEpdzGpatxYtgKPXqjN243P1XSRojbftedPNAD9s/eqYf1tdZttiB3N2nbrIPhSJbHQoT8CtQqqb55nDeC+WkGLmeH3j387jiewK/Lj0Yu6K+BliRVH9YOgeOk0nk= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1728525501; c=relaxed/simple; bh=X2ZtVTXMx/f4lWZL7jyLgQD1+/Rnp1rxavOujed1IPs=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=u0mXmPyiQise5UN87B2JuoD/SccwI/sNngNgpcFWb66agob0S6i5mA9cx1vS94dNJ/TwJlBe1MLLcvtO8w8ftfBUt6Nx9YCuhcD+odcWZvKNw71bvFKwf1x47RnBYZKZnIEEIoLrWwCWoWZe2BTvY5I+R7188Q77LiJHoa8GY6g= ARC-Authentication-Results: i=2; 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=1728525499; x=1760061499; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=X2ZtVTXMx/f4lWZL7jyLgQD1+/Rnp1rxavOujed1IPs=; b=bPxwXz9cwcz5vkkwQ2/iRcVgwzdo8zRktn4VVLyWL2pulMkGtURKaIMc Xe1N1HGQECBuh4sho8BL1Iqyo4NQx2CQabs03AisgTDuCB4BYkatl3YFc ni68ctiVpu+e2iP/rROSO9JQxBQWEJaketIV64ag2/OZuiR0IsKyG38Bd H2z+s01xg/08nUxcKmKoZzVnz+BrT/TsXpC6EdG/NgKQXlCfkb3us/EwC UVlKk3vBhiDe+HVRDi7fpoHLb6PjrGHpCSe7sB8Vft8Y6btegMDBaSjIL e4jGv43HU/UOr4M3Ev+2P8JWXoYuJsU9rHYxcT86UtjWkfMmQhhplbYPe A==; X-CSE-ConnectionGUID: UZOgw4L2TTavIBzW0wyE3A== X-CSE-MsgGUID: NAVPLZ8ES+SQ1TCZw37t8g== X-IronPort-AV: E=McAfee;i="6700,10204,11220"; a="27739128" X-IronPort-AV: E=Sophos;i="6.11,191,1725346800"; d="scan'208";a="27739128" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by fmvoesa111.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Oct 2024 18:58:16 -0700 X-CSE-ConnectionGUID: U94n30P5SbeFiSLnDQYY7Q== X-CSE-MsgGUID: toS7JndjRXatehqtcr0PLA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,191,1725346800"; d="scan'208";a="76907134" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by orviesa007.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 09 Oct 2024 18:58:15 -0700 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Wed, 9 Oct 2024 18:58:14 -0700 Received: from fmsmsx602.amr.corp.intel.com (10.18.126.82) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Wed, 9 Oct 2024 18:58:14 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39 via Frontend Transport; Wed, 9 Oct 2024 18:58:14 -0700 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (104.47.56.174) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Wed, 9 Oct 2024 18:57:28 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ki4b4BTbyqXIkoVBNPCg1mmQNfgS5tBQyAW7Fdf88G9tuW69FRc4z2Ff3t3zAPIorRhbVFpoWC4ADJioJg6gtJVT/MVZGitX+nJnH8z/IQOc0Chi3W409BZbufusdXD6M3DlvhhmQpRtDJ09EzT4WOKbyUDm/HAx8Tow59jKiZlQGhbYmXfMJhTXFRFFeDI9QrCVgShE9c3HSQhg1Bpb29YceECAP2lmrcEhx+Pc525QO6jcuwNyqSxPrFYtYcugcl3NmqZf3T87oY7eEed7o5WHobWGRdrL5gegjUKPIIYViTdWwJKE7XPURgVL7irtXz1RKil5rA6/aGz6FLQKCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=mvnSkI+PT/fM2w96i0AWXXCyEqrGmWRDpTuH4JQhmrw=; b=ey3VqNa+gvB5wjIq0jF5P67CbzefteVI0UjiIgf+SXCAQA7cTw/SgoVlbcbVQ4mJcUq8jIIEruFD4tXm/zOilnmY1vTEzsSzzICT4s1JX115Abe38zCPBQIz3ZaOdl5t7Azl6/Bb+thI76kVHEMJiZ8LUllQr6z1+n2/oSPJKPjoGhqmLIMBCdx9jJhziSXTNmG/mlhYtm+9q4f2toYtL/YT3AGVO6HmhkuPZDryVx4cCT+0xFuOg/IoFRDDs+V3eccCDYt9Nc4mAwu0MCir6Lb0WoPsRiomyhTIsYQAoUPL3oJAm+9Loiiqme7Hgppg7bdL0hVYv+rHwB8/BTevSw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from DM4PR11MB5487.namprd11.prod.outlook.com (2603:10b6:5:39f::22) by SA1PR11MB6821.namprd11.prod.outlook.com (2603:10b6:806:29d::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8026.23; Thu, 10 Oct 2024 01:57:26 +0000 Received: from DM4PR11MB5487.namprd11.prod.outlook.com ([fe80::8221:de1b:c203:95d2]) by DM4PR11MB5487.namprd11.prod.outlook.com ([fe80::8221:de1b:c203:95d2%5]) with mapi id 15.20.8048.013; Thu, 10 Oct 2024 01:57:26 +0000 From: "Kong, Lingling" To: "gcc-patches@gcc.gnu.org" CC: "Liu, Hongtao" , "Xu, Liwei" Subject: [PATCH] i386: Fix scalar VCOMSBF16 which only compares low word Thread-Topic: [PATCH] i386: Fix scalar VCOMSBF16 which only compares low word Thread-Index: AQHbGrdox3AYhsVvg0mECUF7L+UEk7J/OYIw Date: Thu, 10 Oct 2024 01:57:26 +0000 Message-ID: References: <20241010015429.3685627-1-lingling.kong@intel.com> In-Reply-To: <20241010015429.3685627-1-lingling.kong@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DM4PR11MB5487:EE_|SA1PR11MB6821:EE_ x-ms-office365-filtering-correlation-id: d26318c9-6e5b-42f1-4130-08dce8cee3ee x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|366016|376014|1800799024|38070700018; x-microsoft-antispam-message-info: 4+/cPONSuAx3pYC30gHrpMobccDCiRofB/a5la72BgRbSvF5HczSwTkVnz1aVK6Cbpi0W7YtHhOurqe7mpTg46bMoRfZM4dGtde2BxgHoULMhq8+u2C5iEDxYb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bgkEUvAGgivEQ9OdAKvGkUEYjHrFVcuFA+NdQv90nw3OoQaAPCRDWehKsIGs4C4qmu6ADLSEpb8PMhboHH1kols/uS5eEO3i4MI8ChLzysevVPTwwJ+UX6ofr9TDNJhsz8bTVUbGQGgFJa2Ik5DBdshDNml0Z6iA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM4PR11MB5487.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(366016)(376014)(1800799024)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: AHZQbAjUCVAK1gSlpz/3GTWvmh0L3kpZYk9JREUBdeJadxoTuripxGCr1aBCiDzBnSznCCo5kJIcHsAQ/wKOz4RTwsHxDd0hXUf1w7giemlHbQfRpoIqT5FMrvwOboBZYzuAd+Y1xHM45nOiZBaKg03sJmarxYhaxq2UlQFt/hfIbvfc2KQmLw2oZbHmc70OJZCq2M3tk7B/MqHoXIZtTdOtiXlTY9hstI+vVxwWzm15Ja3YVc3FqTNMyIKiT4YOTo3w2g1+ijs7QgHPEuat2ESO8Ash7Ul3bxfiZzoe54iAWPJ528PIJOdesvTJgeFNwwbqYK972MMUska8BUv8Fp7kIqIPqLmRV3QY5YV+iDDB98Kd5ZM+GlCgSFPIxmtN69QRLtop45hkRS9jQ8rI1QA2JVvR08a31q0p+2Ytlw5erzdtMsLiBs7PvzcCIJvOGbiMXkkXa+j0E91ptgKKjj4+1qTu8d7ZMerIaLumJMza6Gk2gIo5xjTFFRpycB3MOsk5EF/PyvI6QUR9InFWGLX5lAoeQLDjHaQKSgh1Wm9BS+9VWroEaIxe4zZrGwraMi4d2mvocPMoZovcQvfkx2HUUgjw1sao2YF8sXQZ+DlLQQ6TFgMBLmmJ3gsnJoX+Uf8sBaHFHIgJv9fS0zHDNPcnTHzYgSRTrD3UpEeec5PnwWCz9ep7OjmEdrM1NUoI7MtntXcDBSSd7q6irQlsevD3+8vTe4L8Z1u5Q36MSbk4fYwq2NEYlKRLasQ0OtHERrU+Q3kRIMQ+OomvY5LvWfCY5mLWNFsDhttg6hXxUTQzdeG3wkijHdqD23QBgwwOP4s5A6uGHSMeyM66t2SB4ZzK0rYvf8/r5N11+ITohx1optYl7whmBGJs/FbQgmlZvECKgX0hkRiz5zIckjuF9tIDCKtFeYjFzG8kNsQT1nXvETqIEWhbYCDjuEF2h7cFZuf9dNZWaFNg3ljnZXtwDSsBihjvDVpZCH0btjH4Kt8hroQ1EwttBjglMF+GugNOGmn7ZRy8pVqgA8YmpCuBYD3Amorq6cpAqUZ1v7mlCN08/Fg4vbbU3KofXOHzJCUwdRY3EttC2+mSFwzpy73IoEMsdUtx1tyW0kVtmxv10Mbzci+6PDj4ljiScdkMfIT2C4F3+ZmQ9rntQDG3fzHSw1gwBHuTiEenVlQnClkPKpoqEna3hUk8GUekPfsFCu3Hy2VoJUfrEy10eyuuFSZ9NVos9YE/okg/eYFgE633I4I/cFS0DF+VR7pYdaG7Ppe/tqn4hhjnMSFHTI9XzrFxnTJbwjtxzLOFsk2/GvXVQMs+YYD06d3QP5mQqHjCoeyMs3xoWwNd11zQgG5n5lpt2Hdt7WY8UJTI/2w1xLHCT1+sWOABaLxZFlFZxzk6S0yqvbIC8W1CqZesPIMpCMWpazhhhfra+ZJt24Z3PIC6r7baKaY7G06gCyxmDOcB+hUfqjp9xzh+A6lfQGDmd3alkXXYsuWDdeILcDWmtCPvfs+SEtOvqpNDQdHl+ns68WnYhD3Dh26QCvI1cORJVFeZLX3zArlJpJvb5TiXgan9TB20LgQoXK2rxPpIu4bYOHkW MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM4PR11MB5487.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: d26318c9-6e5b-42f1-4130-08dce8cee3ee X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Oct 2024 01:57:26.4374 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: +bWgJnE6ckjApig09GtQSMxWyTlwkaNP/M4AROD1kd6i++mR3dMIzhWlmcR70gxoz5WvpeQiQp8XJyhsE2k9rA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR11MB6821 X-OriginatorOrg: intel.com X-Spam-Status: No, score=-13.4 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, 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: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org Hi, Fixed scalar VCOMSBF16 misused in AVX10.2. Bootstrapped and regtested on x86_64-pc-linux-gnu{-m64}. Ok for trunk? gcc/ChangeLog: * config/i386/sse.md (avx10_2_comsbf16_v8bf): Fixed scalar operands. --- gcc/config/i386/sse.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) -- 2.31.1 diff --git a/gcc/config/i386/sse.md b/gcc/config/i386/sse.md index d6e2135423d..a529849898e 100644 --- a/gcc/config/i386/sse.md +++ b/gcc/config/i386/sse.md @@ -32332,8 +32332,12 @@ (define_insn "avx10_2_comsbf16_v8bf" [(set (reg:CCFP FLAGS_REG) (unspec:CCFP - [(match_operand:V8BF 0 "register_operand" "v") - (match_operand:V8BF 1 "nonimmediate_operand" "vm")] + [(vec_select:BF + (match_operand:V8BF 0 "register_operand" "v") + (parallel [(const_int 0)])) + (vec_select:BF + (match_operand:V8BF 1 "nonimmediate_operand" "vm") + (parallel [(const_int 0)]))] UNSPEC_VCOMSBF16))] "TARGET_AVX10_2_256" "vcomsbf16\t{%1, %0|%0, %1}"