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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [strlenopt-14gf.c] - Blame information for rev 774

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

Line No. Rev Author Line
1 689 jeremybenn
/* This test needs runtime that provides stpcpy, mempcpy and __*_chk
2
   functions.  */
3
/* { dg-do run { target *-*-linux* } } */
4
/* { dg-options "-O2 -fdump-tree-strlen" } */
5
 
6
#define FORTIFY_SOURCE 2
7
#include "strlenopt-14g.c"
8
 
9
/* Compared to strlenopt-14gf.c, strcpy_chk with string literal as
10
   second argument isn't being optimized by builtins.c into
11
   memcpy.  */
12
/* { dg-final { scan-tree-dump-times "strlen \\(" 4 "strlen" } } */
13
/* { dg-final { scan-tree-dump-times "__memcpy_chk \\(" 0 "strlen" } } */
14
/* { dg-final { scan-tree-dump-times "__mempcpy_chk \\(" 2 "strlen" } } */
15
/* { dg-final { scan-tree-dump-times "__strcpy_chk \\(" 0 "strlen" } } */
16
/* { dg-final { scan-tree-dump-times "__strcat_chk \\(" 0 "strlen" } } */
17
/* { dg-final { scan-tree-dump-times "strchr \\(" 0 "strlen" } } */
18
/* { dg-final { scan-tree-dump-times "__stpcpy_chk \\(" 3 "strlen" } } */
19
/* { dg-final { scan-tree-dump-times "memcpy \\(" 0 "strlen" } } */
20
/* { dg-final { scan-tree-dump-times "mempcpy \\(" 0 "strlen" } } */
21
/* { dg-final { scan-tree-dump-times "strcpy \\(" 0 "strlen" } } */
22
/* { dg-final { scan-tree-dump-times "strcat \\(" 0 "strlen" } } */
23
/* { dg-final { scan-tree-dump-times "stpcpy \\(" 0 "strlen" } } */
24
/* { dg-final { cleanup-tree-dump "strlen" } } */

powered by: WebSVN 2.1.0

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