modernc.org/ccgo/v3@v3.16.14/lib/testdata/gcc-9.1.0/gcc/testsuite/gcc.c-torture/compile/dse.c (about)

     1  typedef unsigned long microblaze_reg_t;
     2  struct pt_regs
     3  {
     4    microblaze_reg_t msr;
     5    int pt_mode;
     6  };
     7  struct task_struct
     8  {
     9    void *stack;
    10  };
    11  int
    12  copy_thread (struct task_struct *p)
    13  {
    14    struct pt_regs *childregs =
    15      (((struct pt_regs *) ((1 << 13) + ((void *) (p)->stack))) - 1);
    16    memset (childregs, 0, sizeof (struct pt_regs));
    17    childregs->pt_mode = 1;
    18  }
    19