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.dg/] [tree-ssa/] [ssa-pre-15.c] - Blame information for rev 298

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.