Debian Codegraph @

gcc/testsuite/gcc.dg/torture/pr113796.c

raw
1 /* { dg-do run } */
2 /* { dg-additional-options "-ftree-loop-if-convert -fno-vect-cost-model" } */
3
4 signed char a[] = {0x80, 0x80,0x80,0x80};
5 int b;
6 signed char c;
7
8 int main()
9 {
10 for (; b < sizeof(a); b += 1)
11 c = a[b] < 0 ?: a[b] >> 6;
12
13 if (c != 1)
14 __builtin_abort ();
15 return 0;
16 }