aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/mips/truncate-4.c
blob: cda90e00cd78244d960c6bc321e0279fef6a77bc (plain)
1
2
3
4
5
6
7
8
9
10
11
/* The and is performed in DI mode so there is no need for truncation.  */
/* { dg-options "-mgp64" } */
/* { dg-skip-if "code quality test" { *-*-* } { "-O0" } { "" } } */
/* { dg-final { scan-assembler-not "\tsll\t" } } */

NOMIPS16 unsigned long long
f (unsigned long long s)
{
  unsigned u = s & 0xfff;
  return u;
}