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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [mips/] [ext_ins.c] - Blame information for rev 691

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 691 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "isa_rev>=2" } */
3
/* { dg-final { scan-assembler "ext" } } */
4
/* { dg-final { scan-assembler "ins" } } */
5
 
6
struct A
7
{
8
  unsigned int i : 2;
9
  unsigned int j : 3;
10
  unsigned int k : 4;
11
  unsigned int l : 5;
12
};
13
 
14
void func (struct A);
15
 
16
unsigned int f1 (struct A a)
17
{
18
  return a.j;
19
}
20
 
21
void f2 (int i)
22
{
23
  struct A c;
24
  c.j = i;
25
  func (c);
26
}

powered by: WebSVN 2.1.0

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