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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [arm/] [thumb-bitfld1.c] - Blame information for rev 801

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

Line No. Rev Author Line
1 691 jeremybenn
/* { dg-do compile } */
2
/* { dg-require-effective-target arm_thumb1_ok } */
3
/* { dg-options "-O1 -mthumb" }  */
4
 
5
struct foo
6
{
7
  unsigned b31 : 1;
8
  unsigned b30 : 1;
9
  unsigned b29 : 1;
10
  unsigned b28 : 1;
11
  unsigned rest : 28;
12
};
13
foo(a)
14
     struct foo a;
15
{
16
  return a.b30;
17
}
18
 
19
/* { dg-final { scan-assembler-times "lsl" 1 } } */
20
/* { 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.