(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
sh/
pr50751-7.c
       1  /* Check that mov.b and mov.w displacement insns are generated.
       2     If this is working properly, there should be no base address adjustments
       3     outside the mov insns.  */
       4  /* { dg-do compile }  */
       5  /* { dg-options "-O1" } */
       6  /* { dg-final { scan-assembler-not "add|sub" } } */
       7  
       8  typedef struct 
       9  {
      10    char	a;
      11    char	b;
      12    char	c;
      13    char	d;
      14  
      15    short e;
      16    short f;
      17  
      18    int g;
      19    int h;
      20  } X;
      21  
      22  void
      23  testfunc_00 (X* x)
      24  {
      25    x->g = x->b | x->c;
      26    x->h = x->e | x->f;
      27    x->d = x->g;
      28    x->f = x->h;
      29  }
      30  
      31  int testfunc_01 (X* x)
      32  {
      33    return x->b | x->e | x->g;
      34  }