Imported Upstream version 4.8.1
[platform/upstream/gcc48.git] / gcc / testsuite / gcc.target / mips / truncate-3.c
1 /* Remove redundant operations in truncate's operand.  */
2 /* { dg-options "-mgp64" } */
3 /* { dg-skip-if "code quality test" { *-*-* } { "-O0" } { "" } } */
4 /* { dg-final { scan-assembler-not "\tandi?\t" } } */
5
6 f (long long d)
7 {
8   long long c = d & 0xffffffffff;
9   int i = (int) c;
10   g (i);
11 }
12