In gcc/testsuite/: 2011-03-04 Nicola Pero <nicola.pero@meta-innovation.com>
[official-gcc.git] / gcc / testsuite / gcc.dg / pr34027-1.c
blob8e8872a51332c0dcd076ba4f142ec881f7ce8a70
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" } } */
16 /* { dg-final { cleanup-tree-dump "optimized" } } */