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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [pr50078.c] - Blame information for rev 689

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* PR tree-optimization/50078 */
2
/* { dg-do compile } */
3
/* { dg-options "-O2" } */
4
 
5
unsigned nonvolvar[2];
6
 
7
void
8
test (int arg)
9
{
10
  unsigned v = *(volatile unsigned *) (&nonvolvar[arg]);
11
  *(volatile unsigned *) (&nonvolvar[arg]) = v;
12
}
13
 
14
/* { dg-final { scan-assembler-times "movl\[^\n\r\]*nonvolvar" 2 { target { { i?86-*-* x86_64-*-* } && nonpic } } } } */

powered by: WebSVN 2.1.0

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