summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/mips/octeon-exts-7.c
blob: 04805d06de466360fe731778a9c6e8b2ef595c00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* Remove the redundant sign-extension after the sign-extraction.  */
/* { dg-do compile } */
/* { dg-options "-O -march=octeon -mgp64" } */
/* { dg-final { scan-assembler-times "\texts\t" 1 } } */
/* { dg-final { scan-assembler-not "sll|sra" } } */

struct bar
{
  long long a:18;
  long long b:14;
};

NOMIPS16 int
f1 (struct bar *s)
{
  return s->b;
}