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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [tm/] [pr51472.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 "-fgnu-tm -O  --param tm-max-aggregate-size=32" } */
3
/* { dg-additional-options "-fno-common" { target hppa*-*-hpux* } } */
4
 
5
typedef int __attribute__ ((vector_size (16))) vectype;
6
vectype v;
7
 
8
void
9
foo (int c)
10
{
11
  vectype *p = __builtin_malloc (sizeof (vectype));
12
  __transaction_atomic
13
  {
14
    *p = v;
15
    if (c)
16
      __transaction_cancel;
17
  }
18
}

powered by: WebSVN 2.1.0

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