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/] [loop-31.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
/* PR 32283 */
2
 
3
/* { dg-do compile } */
4
/* { dg-options "-O1 -fdump-tree-optimized" } */
5
 
6
short a[(2048)];
7
short foo (int len, int v)
8
{
9
  int i;
10
  for (i = 0; i < len; i++) {
11
      a[i] = v;
12
  }
13
  return a[0];
14
}
15
 
16
/* When we do not have addressing mode including multiplication,
17
   the memory access should be strength-reduced.  */
18
/* { dg-final { scan-tree-dump-times " \\+ 2" 1 "optimized" { target arm-*-* } } } */
19
/* { dg-final { scan-tree-dump-times " \\+ 2" 1 "optimized" { target { ia64-*-* && ilp32 } } } } */
20
/* { dg-final { scan-tree-dump-times " \\+ 2" 2 "optimized" { target { ia64-*-* && lp64 } } } } */
21
/* { dg-final { cleanup-tree-dump "optimized" } } */

powered by: WebSVN 2.1.0

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