From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 55910 invoked by alias); 13 May 2019 13:02:22 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 55902 invoked by uid 89); 13 May 2019 13:02:22 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-7.0 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_3,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.1 spammy= X-HELO: EUR04-HE1-obe.outbound.protection.outlook.com Received: from mail-eopbgr70075.outbound.protection.outlook.com (HELO EUR04-HE1-obe.outbound.protection.outlook.com) (40.107.7.75) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 13 May 2019 13:02:21 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector1-arm-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+vOWEPyiwf1YxLzZh4ptx85kKyJq0QrMMbMTHQ0bQvI=; b=NjaonPIqX7fk7I2flFIOOA8w61PuqeVdd0M3eZflClQWx0AKL1zqTOEWv6kgNklWEztlxKWJ5ANzq1eIcjyFSex6Ix1bNWCfN+G8LGxr861oeDoWMkGP+4N43zN3clDj7DScGeq90RTDt2l4W5z5wcDzxK88jmFusB9wV3WNBjk= Received: from VI1PR0801MB2127.eurprd08.prod.outlook.com (10.168.62.22) by VI1PR0801MB2015.eurprd08.prod.outlook.com (10.173.74.136) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1878.22; Mon, 13 May 2019 13:02:17 +0000 Received: from VI1PR0801MB2127.eurprd08.prod.outlook.com ([fe80::fd18:cb50:3e52:9878]) by VI1PR0801MB2127.eurprd08.prod.outlook.com ([fe80::fd18:cb50:3e52:9878%7]) with mapi id 15.20.1878.024; Mon, 13 May 2019 13:02:17 +0000 From: Wilco Dijkstra To: =?Windows-1252?Q?Martin_Li=9Aka?= , Jakub Jelinek CC: "gcc-patches@gcc.gnu.org" , nd Subject: Re: [PATCH][RFC] Come up with TARGET_HAS_FAST_MEMPCPY_ROUTINE (PR middle-end/90263). Date: Mon, 13 May 2019 13:02:00 -0000 Message-ID: References: <20190510092148.GL19695@tucnak>,<67a1c0d2-9e6b-883c-8444-66eff9dcbd05@suse.cz> In-Reply-To: <67a1c0d2-9e6b-883c-8444-66eff9dcbd05@suse.cz> authentication-results: spf=none (sender IP is ) smtp.mailfrom=Wilco.Dijkstra@arm.com; x-ms-oob-tlc-oobclassifiers: OLM:5797; received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-SW-Source: 2019-05/txt/msg00609.txt.bz2 Hi Martin, +++ b/gcc/testsuite/gcc.c-torture/pr90263.c @@ -0,0 +1,9 @@ +/* PR middle-end/90263 */ + +int *f (int *p, int *q, long n) +{ + return __builtin_mempcpy (p, q, n); +} + +/* { dg-final { scan-assembler "mempcpy" { target { i?86-*-* x86_64-*-* } = } } } */ +/* { dg-final { scan-assembler "memcpy" { target { ! { i?86-*-* x86_64-*-*= } } } } } */ This should be gcc/testsuite/gcc.c-torture/compile/pr90263.c, otherwise it = is ignored. The scan-assembler would also need to check for GLIBC unless you always skip it on x86 (we don't seem to have a check_effective_target_glibc, maybe it's worth adding?). Wilco