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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [gcc.target/] [mips/] [ext_ins.c] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
/* { dg-do compile } */
2
/* { dg-mips-options "-march=mips32r2" } */
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.