blob: 532e4976dc37eb3de322662580a60973131860d6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
/* { dg-do compile } */
/* { dg-options "-Os -fdump-tree-optimized" } */
unsigned long foobar(unsigned long ns)
{
while(ns >= 10000L)
ns -= 10000L;
return ns;
}
/* { dg-final { scan-tree-dump "ns % 10000" "optimized" } } */
/* { dg-final { cleanup-tree-dump "optimized" } } */
|