comparison gcc/testsuite/gcc.dg/unroll-2.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
comparison
equal deleted inserted replaced
111:04ced10e8804 131:84e7813d76e9
13 13
14 int foo(void) 14 int foo(void)
15 { 15 {
16 int i; 16 int i;
17 bar(); 17 bar();
18 for (i = 0; i < 2; i++) /* { dg-message "note: loop with 3 iterations completely unrolled" } */ 18 for (i = 0; i < 2; i++) /* { dg-optimized "loop with 2 iterations completely unrolled" } */
19 { 19 {
20 a[i]= b[i] + 1; 20 a[i]= b[i] + 1;
21 } 21 }
22 return 1; 22 return 1;
23 } 23 }
24 24
25 int foo2(void) 25 int foo2(void)
26 { 26 {
27 int i; 27 int i;
28 for (i = 0; i < 2; i++) /* { dg-message "note: loop with 3 iterations completely unrolled" } */ 28 for (i = 0; i < 2; i++) /* { dg-optimized "loop with 2 iterations completely unrolled" } */
29 { 29 {
30 a[i]= b[i] + 1; 30 a[i]= b[i] + 1;
31 } 31 }
32 return 1; 32 return 1;
33 } 33 }