From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2049) id 6B0483858437; Tue, 21 Sep 2021 09:14:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6B0483858437 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Matthew Malcomson To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/vendors/ARM/heads/morello)] testsuite: Fix morello/blockmode_copies.c test X-Act-Checkin: gcc X-Git-Author: Alex Coplan X-Git-Refname: refs/vendors/ARM/heads/morello X-Git-Oldrev: c295b3fe0becede39d22df877ad828a6e743477f X-Git-Newrev: ecfe3af3308c75c155c9c9d00663f9abc9407650 Message-Id: <20210921091410.6B0483858437@sourceware.org> Date: Tue, 21 Sep 2021 09:14:10 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Sep 2021 09:14:10 -0000 https://gcc.gnu.org/g:ecfe3af3308c75c155c9c9d00663f9abc9407650 commit ecfe3af3308c75c155c9c9d00663f9abc9407650 Author: Alex Coplan Date: Thu Aug 26 11:24:09 2021 +0100 testsuite: Fix morello/blockmode_copies.c test The test was calling memcpy without including : this led to warnings since we saw an incompatible implicit definition of memcpy. Change the test to use __builtin_memcpy instead. Diff: --- gcc/testsuite/gcc.target/aarch64/morello/blockmode_copies.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gcc/testsuite/gcc.target/aarch64/morello/blockmode_copies.c b/gcc/testsuite/gcc.target/aarch64/morello/blockmode_copies.c index 5c44b95019d..b33d73a3012 100644 --- a/gcc/testsuite/gcc.target/aarch64/morello/blockmode_copies.c +++ b/gcc/testsuite/gcc.target/aarch64/morello/blockmode_copies.c @@ -1,13 +1,13 @@ /* { dg-do compile { target aarch64*-*-* } } */ /* { dg-additional-options "-O3" } */ -void e(char *x) { memcpy(x, x + 8, 8); } +void e(char *x) { __builtin_memcpy(x, x + 8, 8); } -void f(char *x) { memcpy(x, x + 16, 16); } +void f(char *x) { __builtin_memcpy(x, x + 16, 16); } -void g(char *x) { memcpy(x, x + 32, 32); } +void g(char *x) { __builtin_memcpy(x, x + 32, 32); } -void h(char *x) { memcpy(x, x + 36, 36); } +void h(char *x) { __builtin_memcpy(x, x + 36, 36); } int fun(int x) { @@ -16,4 +16,4 @@ int fun(int x) goto *a[x++]; label2: return x; -} \ No newline at end of file +}