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/] [arm/] [thumb-bitfld1.c] - Blame information for rev 318

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

Line No. Rev Author Line
1 313 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O1 -mthumb -march=armv5t" }  */
3
 
4
struct foo
5
{
6
  unsigned b31 : 1;
7
  unsigned b30 : 1;
8
  unsigned b29 : 1;
9
  unsigned b28 : 1;
10
  unsigned rest : 28;
11
};
12
foo(a)
13
     struct foo a;
14
{
15
  return a.b30;
16
}
17
 
18
/* { dg-final { scan-assembler-times "lsl" 1 } } */
19
/* { dg-final { scan-assembler-times "lsr" 1 } } */

powered by: WebSVN 2.1.0

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