summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/mips/extend-2.c
blob: a2036a899ee1b50b7b88f85a67854f93e2aedc68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* Check the shift_shift alternative of the AND patterns.  */
/* { dg-do compile } */
/* { dg-options "isa_rev<=1 -mgp64" } */
/* { dg-final { scan-assembler "\tdsrl\t" } } */
/* { dg-final { scan-assembler "\tdsll\t" } } */
/* { dg-final { scan-assembler-not "\td?ext\t" } } */

unsigned long long
f (unsigned long long i)
{
  return i & 0xffffffff;
}