gcc/testsuite/gcc.dg/pr34027-1.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-Os -fdump-tree-optimized" } */ |
| 3 | |
| 4 | unsigned long foobar(unsigned long ns) |
| 5 | { |
| 6 | while(ns >= 10000L) |
| 7 | ns -= 10000L; |
| 8 | return ns; |
| 9 | } |
| 10 | |
| 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" } } */ |