[RTL ifcvt] PR 67786, 67787: Check that intermediate instructions in the basic block...
[official-gcc.git] / gcc / testsuite / gcc.dg / pr34027-1.c
blobb1163ce77202af5c4458b0a9600497afaded7f70
1 /* { dg-do compile } */
2 /* { dg-options "-Os -fdump-tree-optimized" } */
4 unsigned long foobar(unsigned long ns)
6 while(ns >= 10000L)
7 ns -= 10000L;
8 return ns;
11 /* This test was originally introduced to test that we transform
12 to ns % 10000. See the discussion of PR 32044 why we do not do
13 that anymore. */
14 /* { dg-final { scan-tree-dump-times "%" 0 "optimized" } } */
15 /* { dg-final { scan-tree-dump-times "/" 0 "optimized" } } */