Debian Codegraph @

gcc/testsuite/gcc.dg/torture/pr117363-2.c

raw
1 /* { dg-do compile } */
2
3 /* PR tree-optimization/117363 */
4 /* ldist produces `s != 0 ? s - 1 : 0` (with casts) and that
5 the match pattern which messed up the converts. */
6
7 void f(int *array, long t) {
8 if (!t) return;
9 unsigned long s = ~t;
10 for (long i = 0; i < s; i++)
11 array[i] = 0;
12 }