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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [tm/] [memopt-7.c] - Blame information for rev 801

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

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-fgnu-tm -O -fdump-tree-tmedge --param tm-max-aggregate-size=999" } */
3
 
4
/* Test save/restore pairs for aggregates.  */
5
 
6
struct large { int x[100]; };
7
extern struct large foobie (void) __attribute__((transaction_safe));
8
int asdf;
9
 
10
int f()
11
{
12
  struct large lala;
13
  struct large lacopy = foobie();
14
  __transaction_atomic {
15
    lala = lacopy;
16
  }
17
  return lala.x[asdf];
18
}
19
 
20
/* { dg-final { scan-tree-dump-times "tm_save.\[0-9_\]+ = lala" 1 "tmedge" } } */
21
/* { dg-final { scan-tree-dump-times "lala = tm_save" 1 "tmedge" } } */
22
/* { dg-final { cleanup-tree-dump "tmedge" } } */

powered by: WebSVN 2.1.0

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