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] - Blame information for rev 816

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

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O2 -fdump-rtl-expand-details" } */
3
 
4
/* Verify we PRE the strlen call, as strlen("") folds to zero.  */
5
 
6
extern __SIZE_TYPE__ strlen (const char *);
7
 
8
__SIZE_TYPE__ mystrlen (const char *s)
9
{
10
  if (!s)
11
    s = "";
12
  return strlen(s);
13
}
14
 
15
/* { dg-final { scan-rtl-dump "PART.. = 0" "expand" } } */
16
/* { dg-final { cleanup-rtl-dump "expand" } } */

powered by: WebSVN 2.1.0

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