Commit 0874db6e by Jan Hubicka Committed by Jan Hubicka

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
parent 0cae8d31
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.
......
/* { 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" } } */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment