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-2.c] - Blame information for rev 691

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
  volatile unsigned long a:8;
7
  volatile unsigned long b:8;
8
  volatile unsigned long c:16;
9
} BitStruct;
10
 
11
BitStruct bits;
12
 
13
unsigned long foo ()
14
{
15
  return bits.b;
16
}
17
 
18
/* { dg-final { scan-assembler "ldr\[\\t \]+\[^\n\]*,\[\\t \]*\\\[\[^\n\]*\\\]" } } */

powered by: WebSVN 2.1.0

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