aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/mips/octeon-exts-7.c
blob: fcae0126150526ef2d664e4c98bc6c582a6f50e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* Remove the redundant sign-extension after the sign-extraction.  */
/* { dg-do compile } */
/* { dg-options "-march=octeon -mgp64" } */
/* { dg-skip-if "code quality test" { *-*-* } { "-O0" } { "" } } */
/* { dg-final { scan-assembler-times "\texts\t" 1 } } */
/* { dg-final { scan-assembler-not "\td?(sll|sra)" } } */

struct bar
{
  long long a:18;
  long long b:24;
  long long c:22;
};

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