OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.target/] [mips/] [octeon-cins-1.c] - Blame information for rev 321

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 321 jeremybenn
/* { dg-do compile } */
2
/* The tests also work with -mgp32.  For long long tests, only one of
3
   the 32-bit parts is used.  */
4
/* { dg-options "-O -march=octeon" } */
5
/* { dg-final { scan-assembler-times "\tcins\t" 3 } } */
6
/* { dg-final { scan-assembler-not "\tandi\t|sll\t" } } */
7
 
8
NOMIPS16 long long
9
f (long long i)
10
{
11
  return (i & 0xff) << 34;
12
}
13
 
14
NOMIPS16 int
15
g (int i)
16
{
17
  return (i << 4) & 0xff0;
18
}
19
 
20
NOMIPS16 long long
21
h (long long i)
22
{
23
  return (i << 4) & 0xfff;
24
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.