blob: d22a4b3c94283c21a6f8a1d0526bfb495fed899c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
/* 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 "sll|sra" } } */
struct bar
{
long long a:18;
long long b:14;
};
NOMIPS16 int
f1 (struct bar *s)
{
return s->b;
}
|