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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.target/] [i386/] [pr11001-strlen-3.c] - Blame information for rev 318

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 318 jeremybenn
/* Ensure that we don't use 'repnz scasb' in the presence of register globals.  */
2
/* { dg-do compile } */
3
/* { dg-options "-O1 -w" } */
4
 
5
extern __SIZE_TYPE__ strlen (const char *);
6
extern void *malloc (__SIZE_TYPE__);
7
 
8
register int regvar asm("%ecx");
9
 
10
char *
11
do_copy (char *str)
12
{
13
  return malloc (strlen (str) + 1);
14
}
15
 
16
/* { dg-final { scan-assembler-not "repnz scasb" } } */

powered by: WebSVN 2.1.0

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