summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/mips/ext-1.c
blob: 426cbb28573d939c8dab86777b7754cf108b7709 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* { dg-do compile } */
/* { dg-options "-O isa_rev>=2 -mgp64" } */
/* { dg-final { scan-assembler "\tdext\t" } } */
/* { dg-final { scan-assembler-not "and" } } */

struct
{
  unsigned long long a:9;
  unsigned long long d:35;
  unsigned long long e:10;
  unsigned long long f:10;
} t;

NOMIPS16 unsigned long long
f (void)
{
   return t.d;
}