Fix ICE in substring-handling building 502.gcc_r (PR 87562)
[official-gcc.git] / gcc / testsuite / gcc.dg / pr64454.c
blob377a9e48bbf9e673ac67e5ccd7a2e636ed831206
1 /* PR tree-optimization/64454 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fdump-tree-vrp1 -fno-ipa-icf" } */
5 unsigned
6 f1 (unsigned x)
8 return (x % 5) % 5;
11 int
12 f2 (int x)
14 return (x % 5) % 5;
17 int
18 f3 (int x)
20 return (x % -5) % -5;
23 unsigned
24 f4 (unsigned x)
26 return (x % 5) % 6;
29 int
30 f5 (int x)
32 return (x % 5) % 6;
35 int
36 f6 (int x)
38 return (x % -5) % -6;
41 /* { dg-final { scan-tree-dump-times "% 5" 6 "vrp1" } } */
42 /* { dg-final { scan-tree-dump-times "% 6" 0 "vrp1" } } */