OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [string-opt-1.c] - Blame information for rev 154

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* Ensure mempcpy is not "optimized" into memcpy followed by addition.  */
2
/* { dg-do compile } */
3
/* { dg-options "-O2" } */
4
 
5
void *
6
fn (char *x, char *y, int z)
7
{
8
  return __builtin_mempcpy (x, y, z);
9
}
10
 
11
/* { dg-final { scan-assembler-not "memcpy" } } */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.