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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [arm/] [volatile-bitfields-1.c] - Blame information for rev 714

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

Line No. Rev Author Line
1 691 jeremybenn
/* { dg-require-effective-target arm_eabi } */
2
/* { dg-do compile } */
3
/* { dg-options "-O2" } */
4
 
5
typedef struct {
6
  char a:1;
7
  char b:7;
8
  int c;
9
} BitStruct;
10
 
11
volatile BitStruct bits;
12
 
13
int foo ()
14
{
15
  return bits.b;
16
}
17
 
18
/* { dg-final { scan-assembler "ldrb\[\\t \]+\[^\n\]*,\[\\t \]*\\\[\[^\n\]*\\\]" } } */

powered by: WebSVN 2.1.0

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