summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/mips/extend-2.c
blob: b91ae209c0cc81ada7cd9a08a410b37b3a16ff58 (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 "-O 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;
}