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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [arm/] [pr42172-1.c] - Rev 691

Compare with Previous | Blame | View Log

/* { dg-options "-O2" }  */
 
struct A {
  unsigned int f1 : 3;
  unsigned int f2 : 3;
  unsigned int f3 : 1;
  unsigned int f4 : 1;
 
};
 
void init_A (struct A *this)
{
  this->f1 = 0;
  this->f2 = 1;
  this->f3 = 0;
  this->f4 = 0;
}
 
/* { dg-final { scan-assembler-times "ldr" 1 } } */
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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