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

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