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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [tree-prof/] [stringop-2.c] - Blame information for rev 801

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

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-options "-O2 -fdump-tree-optimized -fdump-ipa-profile" } */
2
int a[1000];
3
int b[1000];
4
int size=1;
5
int max=10000;
6
#ifdef __mips
7
/* We allow short memcpy()s for MIPS16.  */
8
int __attribute__((nomips16))
9
#endif
10
main()
11
{
12
  int i;
13
  for (i=0;i<max; i++)
14
    {
15
      __builtin_memset (a, 10, size * sizeof (a[0]));
16
      asm("");
17
    }
18
   return 0;
19
}
20
/* { dg-final-use { scan-ipa-dump "Single value 4 stringop" "profile"} } */
21
/* The versioned memset of size 4 should be optimized to an assignment.  */
22
/* { dg-final-use { scan-tree-dump "a\\\[0\\\] = 168430090" "optimized"} } */
23
/* { dg-final-use { cleanup-tree-dump "optimized" } } */
24
/* { dg-final-use { cleanup-ipa-dump "profile" } } */

powered by: WebSVN 2.1.0

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