diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/mips/truncate-3.c')
-rw-r--r-- | gcc/testsuite/gcc.target/mips/truncate-3.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/mips/truncate-3.c b/gcc/testsuite/gcc.target/mips/truncate-3.c new file mode 100644 index 000000000..90f2c772f --- /dev/null +++ b/gcc/testsuite/gcc.target/mips/truncate-3.c @@ -0,0 +1,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); +} + |