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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [ssa-pre-15.c] - Rev 826

Compare with Previous | Blame | View Log

/* { dg-do compile } */
/* { dg-options "-O2 -fdump-rtl-expand-details" } */
 
/* Verify we PRE the strlen call, as strlen("") folds to zero.  */
 
extern __SIZE_TYPE__ strlen (const char *);
 
__SIZE_TYPE__ mystrlen (const char *s)
{
  if (!s)
    s = "";
  return strlen(s);
}
 
/* { dg-final { scan-rtl-dump "PART.. = 0" "expand" } } */
/* { dg-final { cleanup-rtl-dump "expand" } } */
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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