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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [pr37106-2.c] - Blame information for rev 701

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

Line No. Rev Author Line
1 689 jeremybenn
/* PR c/37106 */
2
/* { dg-do compile } */
3
/* { dg-options "-O3" } */
4
/* { dg-options "-O3 -fpic" { target fpic } } */
5
 
6
#define SIZE 256
7
float a[SIZE], b[SIZE], c[SIZE];
8
 
9
void non_opt3 (void) __attribute__((__optimize__(1)));
10
 
11
void
12
not_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
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.