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/] [pr37106-1.c] - Blame information for rev 313

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

Line No. Rev Author Line
1 298 jeremybenn
/* PR c/37106 */
2
/* { dg-do compile } */
3
/* { dg-options "-O1" } */
4
/* { dg-options "-O1 -fpic" { target fpic } } */
5
 
6
#define SIZE 256
7
float a[SIZE], b[SIZE], c[SIZE];
8
 
9
void opt3 (void) __attribute__((__optimize__(3)));
10
 
11
void
12
opt3 (void)
13
{
14
  int i;
15
 
16
  for (i = 0; i < SIZE; i++)
17
    a[i] = b[i] + c[i];
18
}
19
 
20
void
21
not_opt3 (void)
22
{
23
  int i;
24
 
25
  for (i = 0; i < SIZE; i++)
26
    a[i] = b[i] - c[i];
27
}

powered by: WebSVN 2.1.0

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