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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O2 -fdump-tree-optimized" } */
3
 
4
int spinlock[2];
5
int main ()
6
{
7
volatile int * spinlock0;
8
volatile int * spinlock1;
9
spinlock0 = &spinlock[0];
10
spinlock1 = &spinlock[1];
11
 
12
*spinlock0 = 0;
13
*spinlock1 = 0;
14
 while (*spinlock0);
15
}
16
 
17
/* { dg-final { scan-tree-dump "={v} .*spinlock" "optimized" } } */
18
/* { dg-final { scan-tree-dump "spinlock.* ={v}" "optimized" } } */
19
/* { dg-final { cleanup-tree-dump "optimized" } } */

powered by: WebSVN 2.1.0

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