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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.target/] [mips/] [octeon-exts-3.c] - Blame information for rev 321

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 321 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O -march=octeon -mgp64" } */
3
/* { dg-final { scan-assembler-times "\texts\t" 3 } } */
4
 
5
struct foo
6
{
7
  unsigned long long a:10;
8
  unsigned long long b:32;
9
  unsigned long long c:22;
10
};
11
 
12
NOMIPS16 unsigned
13
f (struct foo s)
14
{
15
  return s.b;
16
}
17
 
18
struct bar
19
{
20
  unsigned long long a:15;
21
  unsigned long long b:48;
22
  unsigned long long c:1;
23
};
24
 
25
NOMIPS16 int
26
g (struct bar s)
27
{
28
  return (int) s.b;
29
}
30
 
31
NOMIPS16 int
32
h (int i)
33
{
34
  return (i << 4) >> 24;
35
}

powered by: WebSVN 2.1.0

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