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-exts-2.c] - Blame information for rev 321

Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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