summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/mips/octeon-cins-2.c
blob: 2dcff0aad1c11d1a2b7434e10ea56d2ad00eca26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do compile } */
/* { dg-options "-O -march=octeon -mgp64" } */
/* { dg-final { scan-assembler-not "\tcins\t" } } */

NOMIPS16 unsigned
f (unsigned i)
{
  return (i & 0xff) << 24;
}

NOMIPS16 unsigned long long
g (unsigned long long i)
{
  return (i & 0x1ffffffffULL) << 4;
}