Debian Codegraph @

gcc/testsuite/gcc.target/powerpc/try_const_anchors_ice.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
3
4 /* __builtin_stack_restore could generates {[%1:DI]=0;} in BLK mode,
5 it could assert in try_const_anchors which only accepts SCALAR_INT. */
6
7 long
8 foo (const int val)
9 {
10 if (val == (0))
11 return 0;
12 void *p = __builtin_stack_save ();
13 char c = val;
14 __builtin_stack_restore (p);
15 return c;
16 }