(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
mips/
ext_ins.c
       1  /* { dg-do compile } */
       2  /* { dg-options "isa_rev>=2" } */
       3  /* { dg-final { scan-assembler "\td?ext\t" } } */
       4  /* { dg-final { scan-assembler "\td?ins\t" } } */
       5  
       6  struct A 
       7  {
       8    unsigned int i : 2;
       9    unsigned int j : 3;
      10    unsigned int k : 4;
      11    unsigned int l : 5;
      12  };
      13  
      14  void func (struct A);
      15  
      16  NOMIPS16 unsigned int f1 (struct A a)
      17  {
      18    return a.j;
      19  }
      20  
      21  NOMIPS16 struct A f2 (struct A a, int i)
      22  {
      23    a.j = i;
      24    return a;
      25  }