diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 9dd4e626d1d..975dc098523 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 fe53f2653a0..56cdd56fae4 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" } } */