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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-require-effective-target sync_char_short } */
2
 
3
/* { dg-message "note: '__sync_fetch_and_nand' changed semantics in GCC 4.4" "" { target *-*-* } 0 } */
4
 
5
void
6
foo (short *x)
7
{
8
  __sync_val_compare_and_swap (x, 1, 0);
9
  __sync_bool_compare_and_swap (x, 1, 0);
10
  __sync_lock_test_and_set (x, 0);
11
 
12
  __sync_fetch_and_add (x, 0);
13
  __sync_fetch_and_add (x, 0);
14
  __sync_fetch_and_add (x, 0);
15
  __sync_fetch_and_sub (x, 0);
16
  __sync_fetch_and_and (x, 0);
17
  __sync_fetch_and_or (x, 0);
18
  __sync_fetch_and_xor (x, 0);
19
  __sync_fetch_and_nand (x, 0);
20
 
21
  __sync_add_and_fetch (x, 0);
22
  __sync_add_and_fetch (x, 0);
23
  __sync_add_and_fetch (x, 0);
24
  __sync_sub_and_fetch (x, 0);
25
  __sync_and_and_fetch (x, 0);
26
  __sync_or_and_fetch (x, 0);
27
  __sync_xor_and_fetch (x, 0);
28
  __sync_nand_and_fetch (x, 0);
29
}

powered by: WebSVN 2.1.0

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