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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [const-uniq-1.c] - Blame information for rev 749

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

Line No. Rev Author Line
1 689 jeremybenn
/* Verify that the 2 constant initializers are uniquized.  */
2
 
3
/* { dg-do compile } */
4
/* { dg-options "-Os -fdump-tree-gimple" } */
5
 
6
int lookup1 (int i)
7
{
8
  int a[] = { 0, 1, 2, 3, 4, 5, 6, 7 };
9
  return a[i];
10
}
11
 
12
int lookup2 (int i)
13
{
14
  int a[] = { 0, 1, 2, 3, 4, 5, 6, 7 };
15
  return a[i+1];
16
}
17
 
18
/* { dg-final { scan-tree-dump-times "L\\\$?C0" 2 "gimple" } } */
19
/* { dg-final { cleanup-tree-dump "gimple" } } */

powered by: WebSVN 2.1.0

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