| Index: crosstest/test_sync_atomic.h
|
| diff --git a/crosstest/test_sync_atomic.h b/crosstest/test_sync_atomic.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..a88cd73cb31d48ff8f5ef849e0d2f75e28194f0e
|
| --- /dev/null
|
| +++ b/crosstest/test_sync_atomic.h
|
| @@ -0,0 +1,29 @@
|
| +//===- subzero/crosstest/test_sync_atomic.h - Test prototypes ---*- C++ -*-===//
|
| +//
|
| +// The Subzero Code Generator
|
| +//
|
| +// This file is distributed under the University of Illinois Open Source
|
| +// License. See LICENSE.TXT for details.
|
| +//
|
| +//===----------------------------------------------------------------------===//
|
| +//
|
| +// This file declares the function prototypes for cross testing atomic
|
| +// intrinsics.
|
| +//
|
| +//===----------------------------------------------------------------------===//
|
| +
|
| +#include "test_sync_atomic.def"
|
| +
|
| +#define X(inst, type) \
|
| + type test_##inst(bool fetch_first, volatile type *ptr, type a); \
|
| + type test_alloca_##inst(bool fetch, volatile type *ptr, type a); \
|
| + type test_const_##inst(bool fetch, volatile type *ptr, type ignored);
|
| +
|
| +FOR_ALL_RMWOP_TYPES(X)
|
| +#undef X
|
| +
|
| +#define X(type) \
|
| + type test_val_cmp_swap(volatile type *ptr, type oldval, type newval);
|
| +
|
| +ATOMIC_TYPE_TABLE
|
| +#undef X
|
|
|