re PR middle-end/59175 (gcc.target/i386/memcpy-2.c fails with -m32)

PR middle-end/59175
	* gcc.target/i386/memcpy-2.c: Fix template;
	add +1 so the testcase passes at 32bit.

Co-Authored-By: Uros Bizjak <ubizjak@gmail.com>

From-SVN: r204996
This commit is contained in:
Jan Hubicka 2013-11-19 02:30:51 +01:00 committed by Jan Hubicka
parent 0cae8d31e7
commit 0874db6e96
2 changed files with 10 additions and 3 deletions

View File

@ -1,3 +1,10 @@
2013-11-18 Jan Hubicka <jh@suse.cz>
Uros Bizjak <ubizjak@gmail.com>
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 <dominiq@lps.ens.fr>
* c-c++-common/cilk-plus/PS/reduction-3.c: Use stdlib.h.

View File

@ -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" } } */