Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/sms-2.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* The same test as 921011-1.c. It can fails on gcc 4.1 due to a dfs traversal of the loops after versioning. */ /* { dg-do compile } */ /* { dg-options "-O2 -fmodulo-sched -fdump-rtl-sms" } */ int th, h, em, nlwm, nlwS, nlw, sy; void fun (nb) int nb; { while (nb--) while (h--) { nlw = nlwm; while (nlw) { if (nlwS == 1) { } else if (nlwS == 1) { } nlwS--; nlw--; } if (em) nlwS--; if (++sy == th) sy = 0; } } /* { dg-final { scan-rtl-dump-times "SMS loop many exits" 1 "sms" { target powerpc*-*-* } } } */