summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/mips/ins-1.c
blob: 9e19354d1a600ef143746490557604b4fb2db878 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-do compile } */
/* { dg-options "-O isa_rev>=2 -mgp32" } */
/* { dg-final { scan-assembler "\tins\t" } } */

struct
{
  unsigned int i : 2;
  unsigned int j : 3;
  unsigned int k : 4;
} s;

NOMIPS16 void
foo (void)
{
  s.j = 1;
}