summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/mips/ext-8.c
blob: 90241dd2f19db81861e59b78fbf1c5ff496b6061 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* Also make sure we don't use ext for MIPS*r1.  */
/* { dg-do compile } */
/* { dg-options "-O isa_rev<=1" } */
/* { dg-final { scan-assembler "\tand\t" } } */
/* { dg-final { scan-assembler-not "\td?ext\t" } } */

unsigned
f (unsigned i)
{
  return i & 0x7fffff;
}