a3d36e389c89c5f851e564fe2296426b1668cebe
[cacao.git] / src / mm / boehm-gc / libatomic_ops-1.2 / tests / list_atomic.template
1 /*
2  * Copyright (c) 2003 by Hewlett-Packard Company.  All rights reserved.
3  *
4  * This file is covered by the GNU general public license, version 2.
5  * see doc/COPYING for details.
6  */
7
8 /* This generates a compilable program.  But it is really meant to be   */
9 /* be used only with cc -E, to inspect the expensions generated by      */
10 /* primitives.                                                          */
11
12 /* The result will not link or run.                                     */
13
14 void list_atomicXX(void)
15 {
16   AO_T *addr, val, newval, oldval;
17   AO_TS_T tsaddr;
18   long incr;
19
20 # if defined(AO_HAVE_nopXX)
21     "AO_nopXX(): ";
22     AO_nopXX();
23 # else
24     "No AO_nopXX";
25 # endif
26 # if defined(AO_HAVE_loadXX)
27     "AO_loadXX(addr):";
28     AO_loadXX(addr);
29 # else
30     "No AO_loadXX";
31 # endif
32 # if defined(AO_HAVE_storeXX)
33     "AO_storeXX(addr, val):";
34     AO_storeXX(addr, val);
35 # else
36     "No AO_storeXX";
37 # endif
38 # if defined(AO_HAVE_test_and_setXX)
39     "AO_test_and_setXX(tsaddr):";
40     AO_test_and_setXX(tsaddr);
41 # else
42     "No AO_test_and_setXX";
43 # endif
44 # if defined(AO_HAVE_fetch_and_add1XX)
45     "AO_fetch_and_add1XX(addr):";
46     AO_fetch_and_add1XX(addr);
47 # else
48     "No AO_fetch_and_add1XX";
49 # endif
50 # if defined(AO_HAVE_fetch_and_sub1XX)
51     "AO_fetch_and_sub1XX(addr):";
52     AO_fetch_and_sub1XX(addr);
53 # else
54     "No AO_fetch_and_sub1XX";
55 # endif
56 # if defined(AO_HAVE_fetch_and_addXX)
57     "AO_fetch_and_addXX(addr, incr):";
58     AO_fetch_and_addXX(addr, incr);
59 # else
60     "No AO_fetch_and_addXX";
61 # endif
62 # if defined(AO_HAVE_compare_and_swapXX)
63     "AO_compare_and_swapXX(addr, oldval, newval):";
64     AO_compare_and_swapXX(addr, oldval, newval);
65 # else
66     "No AO_compare_and_swapXX";
67 # endif
68 }
69
70
71