From patchwork Thu Aug 1 01:30:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Kong, Lingling" X-Patchwork-Id: 94926 Return-Path: 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 BB63C3858429 for ; Thu, 1 Aug 2024 01:31:02 +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 113223858C78 for ; Thu, 1 Aug 2024 01:30:26 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 113223858C78 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 113223858C78 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=1722475829; cv=pass; b=U5eTHIvxUBejM9bh2CWmmVO0+5zFleEr2cVNQtK3yWyy77K4f0EapQroFAp6MQRuOw7Qs710B97qXaLZH1XigT5IYot35iJZSUOXfDtsol52cwGqMa/KE8Gh1QEuIImmWOQVPfyiXJId69OoxpXi+SPDuuwwLP92NVeilPxrXG4= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1722475829; c=relaxed/simple; bh=EirL1HTX8s6GiyaB3SZ17AbXGIEiSFO8FW1pcRSHqCU=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=IhBZmEJ6OyIT4oEf+R5snJUfuDTV+nTw5qmFtdUWT73R2+oumS2oHjfOo6WHFzX+hW37jElSlqyeFFJTW9CVZPrOzcXY74+KQOoJQeQqFWeXB+1NAfIC06EpYoLrQDtWX5UAwbSwWLWiFkgim41j/Rro5sxubNpA4Lq3yPXtMUU= 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=1722475827; x=1754011827; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=EirL1HTX8s6GiyaB3SZ17AbXGIEiSFO8FW1pcRSHqCU=; b=ZXqR2JRrYwg7ep8xzJgilxQlZmMsZzpNnI04id51rhyv9UCfhLQ+VhaC 2+rxE5vvmt8tGF3YdtNk16k+palN4h549Ngf+NbaArNtDQIB/crKtbIah VoVsJ7li8gvhrYHnrGrs2lBvRPyZ6X+uvlSJ5OQ7El7nUk5lM23ApV+DP KTHq39b3BuRUDh05QIEQuSyeQ6snmaT1GSXAwXBYfc3bGGmww6rVFAhnf otTiahoMaukQmrjyOz0iSTIzTzL+NWihPILa7eI/gEu6CeGt4cpDd/f32 XI8rpfvQaB6xePxP6tY3gFzD6ZPUULwwwKdmeYwZLZsxdiWsw4XLYCmEv g==; X-CSE-ConnectionGUID: 2KWSRE/0RySRHGAi9xJssQ== X-CSE-MsgGUID: r9hU6Z8STS+mD6lWJHqvXg== X-IronPort-AV: E=McAfee;i="6700,10204,11150"; a="20282155" X-IronPort-AV: E=Sophos;i="6.09,253,1716274800"; d="scan'208";a="20282155" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by fmvoesa111.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Jul 2024 18:30:16 -0700 X-CSE-ConnectionGUID: d52YLk1uTguBPoUoxfa4GQ== X-CSE-MsgGUID: fYxn8HOHQ5mzfxQR6cgncQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.09,253,1716274800"; d="scan'208";a="55454083" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by orviesa007.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 31 Jul 2024 18:30:16 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Wed, 31 Jul 2024 18:30:16 -0700 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx610.amr.corp.intel.com (10.22.229.23) 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, 31 Jul 2024 18:30:16 -0700 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (104.47.56.168) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Wed, 31 Jul 2024 18:30:15 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=OmNvIMqVG8KXe6dK/ODUaxRliuJ7xmUK8eiW/DdTNJxatl5bPBPHIAjl493bWZD1JlCepft9wuL8gHQOqFKB5TT5p5r2gazLNFDcNv1ozef83JByvTHelM1UkyKvHKVwvgWxzM7GHEYwEUwCcK8Acfd4s79jGXJYva8Ts3bff/OFRea6Li78yS/9q+hN6l9rMUsoG3THK/oiR34Iuq7/KLdDSkVVR8togneMIi9WY6+sCDgN+ZrPwP418D0rBPOktYG5zBFPFworXxSz/b9J+BMEQjB13BpX7/AYRxJtxRhk1RsrZkQCiTo/Lf2OptOvZJuBRSkQ/c3reUV1N+PT4g== 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=JhnfFXybc2trROroFzS3WL1ve5iHfEEnlQmpcavgd74=; b=K8e/wcNqSfPY0VnZ5+NoMtgzkar1cibfT9Yd+CvMXsbLUtpnjxqVJ3+s8DL/4lFGsa6VcuLHiJuguIMLiU5o9VA3tyIcgia8Nwcw6mzWsUqG4vH9jOf9z+8MbIqBNsK7MioJ2plaCrBaPGTws0FvAR/iZNV6c+gOPqe8vPkH0pg0yQYi1IBtj3baNo0y0zzMxZAd5X9B9FuIYP3pehXRquHjesE3ufSgEoR0uoW4WaU+PEUi1wmB1hd3tkW+t3va66rUCg1NS3spu3bqhqqsCZRD5ecp+s5PK4oGTaT7ZZaYIOKQhQJNttawJkYwdzX5ZHasfkRFL0JnK0krYzAzQw== 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 MW5PR11MB5908.namprd11.prod.outlook.com (2603:10b6:303:194::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7807.29; Thu, 1 Aug 2024 01:30:13 +0000 Received: from DM4PR11MB5487.namprd11.prod.outlook.com ([fe80::8221:de1b:c203:95d2]) by DM4PR11MB5487.namprd11.prod.outlook.com ([fe80::8221:de1b:c203:95d2%4]) with mapi id 15.20.7828.021; Thu, 1 Aug 2024 01:30:13 +0000 From: "Kong, Lingling" To: "gcc-patches@gcc.gnu.org" CC: "Liu, Hongtao" , "Wang, Hongyu" Subject: [PATCH] i386: Fix memory constraint for APX NF Thread-Topic: [PATCH] i386: Fix memory constraint for APX NF Thread-Index: AQHa47HxZ+T6ADrrtUGx1FQTOUN/qLIRnU+g Date: Thu, 1 Aug 2024 01:30:13 +0000 Message-ID: References: <20240801012703.2621701-1-lingling.kong@intel.com> In-Reply-To: <20240801012703.2621701-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_|MW5PR11MB5908:EE_ x-ms-office365-filtering-correlation-id: 48616794-186d-451b-c896-08dcb1c97d87 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|1800799024|376014|366016|38070700018; x-microsoft-antispam-message-info: 4fO1NQUBhnKaaj6R6MJzDv8EcPsWX6uGuNvG/mb+L4kH0rQf1dwiRLMlUM0eVHRz2RYAUtYKu3Aln/Xr8Csuq+qJh6GrW2MuTgAIgKN4oITe1fi5mEPzImTZe0yUXHEHyGYBulIsWse18+CwESmrDpCFAhyBGJY0n7MX4x32o8M5ekMuW73oSp6Fn+j+cILqt1PFJBKVpu9j9gf0dZytmjxg8d3oc5gMmm6S+Rs9WWdu2F7r+HlLB8H6hX7BzJ5Zct2sBcifaF+7XYZ7+bx6DFt+HHK6ScsvkiCtvH/0m2/BKcmhPH9HPnXCef2tJlBxfp1B+ks3FYtAs7wEaqdm0FRw3URNrK9u4eYUepf9Lttwr9mLH9dSNgMfaTqf43b5sAeo5sT5St04yYqDtfjKEtLkifRfhenlUtSoud8yXaADqN4D3l2PRUY0KjGpQJ1V91+hDUoHPm79oYRtunqJccm+AQOaKYAq/dp8bGNs7JA2sTydMRzD+A5Or2EVcnm+o8PT6C6z8MI2mTPqtUDOKKhJ9yRxRB/Xc2MtEEGu2yRQ92/37EEpezy5Tw7r3oXJbqEHKyMqvPwB2cVbS/iwBQamuMYzcWvZi7mY52vPAfZjteoPO96sdMs3ePUCVYrX9ublqtNF7v3/LDsRFBcTuENqE2fB4kJeoZMb2HMSopmyGEVKvThJ2ewT4exXf1i4cpuzKFfte1mbfXawFhxjiaQpR00nAz/OA0A8sBdpT3MmSFyqlXXDqF8fSLaVZyhmenqGpH5RCe+RCpm29IYU+TZ2KIoKiA7ZePi1AxxOxT3QLd/ThFeiEXCUzPBFUxP7oXEIDruyRHtqsjW2qts9MPepxX2BNtEFXG+T/GYknxBMGub157QBmucAyBq5DK2iUf9utSqbtzE3WqeX/svm0hiwh9/UTe4YExwp7wslJx4eM5tIdgx+i58tBHIBmaI/VpU5rXZzUVPRFJuQlZoZzaLBGUb/spkDRJ/SkQpfryQNkYLNPNXFppIoL1LaCD+g4a0CXKmLivKTziLoNL4RUJ+fmli2ekN+XRc+RVNiDEQU1Ss15r2VBkbcbRMm9SKvfeCOOg+c2tZesNJ0wRNE9SejMHdmoGM56IlEbNJNCh/it68IRw5dRqlO7d81N8RU29ge4od0OPbZBQb190SPC5X4d8cJauneZgbYfH5EgypVPye+BUTyAiV3JYxRZ0S0Y7s/gI9FsHGVGp92D+df/VOglBiAmnSRinjLrJzPvfmzrpVRtY3VTurzq8VnQn8wJa9bbvej+73rXmq0qEKWBD2fukgha/rEKZPdWflOCwG7Y5F0C7J3TZh1hhWi7uqOmChtS7Jvc99Hp+m7cUkr0x1n6MHi9U5yZ9lFJuAC9CHl4Sh2lSLEQBGrok9Dj6eninPRa6MYVLF00qDlAIX09Q== 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)(1800799024)(376014)(366016)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: /u30tvtrkhtN9RSzcGfqTcFJdFt9m2fk8IDKOlCIaSFzClANzDonpo1mfAb2HvFYL54l12ij/GLXSUobYZzjl1nvc33lIIinw+kRJb2cd6RVYoLyzL+dksvNbFt1tIDyzfqJ9xY2m2ONkfxIB1PxG0i0s6dtgnhDLnyb0zGOraVFyHfxBW8HW7jeVPzPSwHxMZM3+tIMk6YoYQY2ihK4fLjkfnsqTOrO7sFmNz4IHsNG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RU8tNVQ11OaQuRSa/4829pewRozPWEnjxe9n7wULz6Lk2MyvyWk8cKgDaCkpUF9c/8kUZskjrYkADGGtkw0a0g/yQ1c5Uh9r/jILs+BOrjOT6lz4OJ+L4iIo28T4GtiPIaFvWvaxTmfPz5xb/iskUvxzuFLKG10EjntxuGxfSuLvAUYyZJuxww3RE4NErU1U7pueQj4koof6edRGYiV7enRccjN/DBlML2DjkzGvvPCxM8owsRE01fGJkOaUiQyTX+i6UaTFD+djJBRHp9upkH/noTMBBM5 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: 48616794-186d-451b-c896-08dcb1c97d87 X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Aug 2024 01:30:13.2160 (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: as1Pep5z1KMIhIlN+hNtqB0WUgVIy0AFvTbYiwhupyr8MohJjAz+qBNFaGzEthtUJhKDLBvl33+8hysPcUpprw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW5PR11MB5908 X-OriginatorOrg: intel.com X-Spam-Status: No, score=-13.3 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~patchwork=sourceware.org@gcc.gnu.org The je constraint should be used for APX NDD ADD with register source operand. The jM is for APX NDD patterns with immediate operand. Bootstrapped and regtested on x86_64-pc-linux-gnu{-m32,}. Ok for trunk? gcc/ChangeLog: * config/i386/i386.md (nf_mem_constraint): Fixed the constraint for the define_subst_attr. (nf_mem_constraint): Added new define_subst_attr. (*add_1): Fixed the constraint. --- gcc/config/i386/i386.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) -- 2.31.1 diff --git a/gcc/config/i386/i386.md b/gcc/config/i386/i386.md index fb10fdc9f96..aa7220ee17c 100644 --- a/gcc/config/i386/i386.md +++ b/gcc/config/i386/i386.md @@ -6500,7 +6500,8 @@ (define_subst_attr "nf_name" "nf_subst" "_nf" "") (define_subst_attr "nf_prefix" "nf_subst" "%{nf%} " "") (define_subst_attr "nf_condition" "nf_subst" "TARGET_APX_NF" "true") -(define_subst_attr "nf_mem_constraint" "nf_subst" "je" "m") +(define_subst_attr "nf_add_mem_constraint" "nf_subst" "je" "m") +(define_subst_attr "nf_mem_constraint" "nf_subst" "jM" "m") (define_subst_attr "nf_applied" "nf_subst" "true" "false") (define_subst_attr "nf_nonf_attr" "nf_subst" "noapx_nf" "*") (define_subst_attr "nf_nonf_x64_attr" "nf_subst" "noapx_nf" "x64") @@ -6514,7 +6515,7 @@ (clobber (reg:CC FLAGS_REG))]) (define_insn "*add_1" - [(set (match_operand:SWI48 0 "nonimmediate_operand" "=rm,r,r,r,r,r,r,r") + [(set (match_operand:SWI48 0 "nonimmediate_operand" "=r,r,r,r,r,r,r,r") (plus:SWI48 (match_operand:SWI48 1 "nonimmediate_operand" "%0,0,0,r,r,rje,jM,r") (match_operand:SWI48 2 "x86_64_general_operand" "r,e,BM,0,le,r,e,BM")))]