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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [i386/] [pr11001-strlen-3.c] - Blame information for rev 704

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

Line No. Rev Author Line
1 691 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.