2014-08-04 Ed Schonberg <schonberg@adacore.com>
[official-gcc.git] / gcc / testsuite / gcc.dg / pr37106-2.c
blob81f061afab20ce6a012c5f8910d0c52f4c169fa8
1 /* PR c/37106 */
2 /* { dg-do compile } */
3 /* { dg-options "-O3" } */
4 /* { dg-options "-O3 -fpic" { target fpic } } */
6 #define SIZE 256
7 float a[SIZE], b[SIZE], c[SIZE];
9 void non_opt3 (void) __attribute__((__optimize__(1)));
11 void
12 not_opt3 (void)
14 int i;
16 for (i = 0; i < SIZE; i++)
17 a[i] = b[i] - c[i];
20 void
21 opt3 (void)
23 int i;
25 for (i = 0; i < SIZE; i++)
26 a[i] = b[i] + c[i];