Debian Codegraph @

gcc/testsuite/gcc.target/i386/pr87596.c

raw
1 /* LRA corner case which triggered a segfault. */
2 /* Reduced testcase by Arseny Solokha. */
3 /* { dg-do compile { target int128 } } */
4 /* { dg-options "-O1 -fschedule-insns -ftrapv -funroll-all-loops -fno-tree-dominator-opts -fno-tree-loop-im" } */
5
6 void
7 wh (__int128 *ku)
8 {
9 unsigned int *dp;
10
11 while (*ku < 1)
12 {
13 *dp <<= 32; /* { dg-warning "left shift count >= width of type" } */
14 ++*ku;
15 }
16 }