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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [c-c++-common/] [cxxbitfields-3.c] - Blame information for rev 693

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

Line No. Rev Author Line
1 686 jeremybenn
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */
2
/* { dg-options "-O2 --param allow-store-data-races=0" } */
3
 
4
/* Make sure we don't narrow down to a QI or HI to store into VAR.J,
5
   but instead use an SI.  */
6
 
7
struct S
8
{
9
  volatile int i: 4;
10
  volatile int j: 4;
11
  volatile int k: 8;
12
  volatile int l: 8;
13
  volatile int m: 8;
14
} var;
15
 
16
void setit()
17
{
18
  var.j = 5;
19
}
20
 
21
/* { dg-final { scan-assembler "movl.*, _?var" { target nonpic } } } */
22
/* { dg-final { scan-assembler "movl.*, (_?var|\\(%)" { target { ! nonpic } } } } */

powered by: WebSVN 2.1.0

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