comparison gcc/testsuite/gcc.dg/pr85423.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents
children
comparison
equal deleted inserted replaced
111:04ced10e8804 131:84e7813d76e9
1 /* { dg-do compile { target powerpc*-*-* ia64-*-* i?86-*-* x86_64-*-* } } */
2 /* { dg-options "-O2 -fselective-scheduling2 -fvar-tracking-assignments -fno-guess-branch-probability -fno-peephole2 -fno-ssa-phiopt -fno-tree-pre --param max-jump-thread-duplication-stmts=8 -w" } */
3 /* { dg-additional-options "-march=nano" { target i?86-*-* x86_64-*-* } } */
4
5 int vn, xm;
6
7 void
8 i1 (int);
9
10 void
11 mb (int *ap, int ev)
12 {
13 while (vn < 1)
14 {
15 i1 (vn);
16
17 ev += *ap && ++vn;
18
19 while (xm < 1)
20 ++xm;
21
22 if (*ap == 0)
23 *ap = ev;
24
25 ++vn;
26 }
27 }