(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
s390/
preserve-args-2.c
       1  /* This test requires special handling of a GPR which is saved because
       2     of -mpreserve-args but not restored.  dwarf2cfi used to ICE for
       3     this in maybe_record_trace_start.  The solution was to introduce a
       4     REG_CFA_NORESTORE reg note.  */
       5  
       6  /* { dg-do compile } */
       7  /* { dg-options "-O2 -march=z900 -mpreserve-args" } */
       8  
       9  void *foo (void *);
      10  void bar ();
      11  int x;
      12  void *
      13  baz (void *y)
      14  {
      15    if (__builtin_expect (x, 0))
      16      return foo (y);
      17    bar ();
      18    return foo (y);
      19  }