From 2a372eebe07f3a6090d9e5cd28ef2477968b0151 Mon Sep 17 00:00:00 2001 From: hubicka Date: Tue, 19 Nov 2013 01:30:51 +0000 Subject: [PATCH] PR middle-end/59175 * gcc.target/i386/memcpy-2.c: Fix template; add +1 so the testcase passes at 32bit. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204996 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/testsuite/ChangeLog | 7 +++++++ gcc/testsuite/gcc.target/i386/memcpy-2.c | 6 +++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 9dd4e626d1da..975dc0985235 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2013-11-18 Jan Hubicka + Uros Bizjak + + PR middle-end/59175 + * gcc.target/i386/memcpy-2.c: Fix template; + add +1 so the testcase passes at 32bit. + 2013-11-18 Dominique d'Humieres * c-c++-common/cilk-plus/PS/reduction-3.c: Use stdlib.h. diff --git a/gcc/testsuite/gcc.target/i386/memcpy-2.c b/gcc/testsuite/gcc.target/i386/memcpy-2.c index fe53f2653a0b..56cdd56fae4d 100644 --- a/gcc/testsuite/gcc.target/i386/memcpy-2.c +++ b/gcc/testsuite/gcc.target/i386/memcpy-2.c @@ -1,11 +1,11 @@ /* { dg-do compile } */ /* { dg-options "-O2" } */ -/* Memcpy should be inlined because block size is known. */ -/* { dg-final { scan-assembler-not "memcpy" } } */ void *a; void *b; t(unsigned int c) { if (c<10) - memcpy (a,b,c); + __builtin_memcpy (a,b,c+1); } +/* Memcpy should be inlined because block size is known. */ +/* { dg-final { scan-assembler-not "(jmp|call)\[\\t \]*memcpy" } } */ -- 2.11.4.GIT