summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/mips/truncate-3.c
blob: 90f2c772f8374b108bcae4c7dc878989f9f525cd (plain)
1
2
3
4
5
6
7
8
9
10
11
/* Remove redundant operations in truncate's operand.  */
/* { dg-options "-O -mgp64" } */
/* { dg-final { scan-assembler-not "\tandi?\t" } } */

f (long long d)
{
  long long c = d & 0xffffffffff;
  int i = (int) c;
  g (i);
}