Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(208)

Side by Side Diff: crosstest/test_sync_atomic.def

Issue 1273153002: Subzero. Native 64-bit int arithmetic on x86-64. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fixes tests & make format Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « crosstest/test_strengthreduce_main.cpp ('k') | crosstest/test_sync_atomic_main.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 //===- subzero/crosstest/test_sync_atomic.def - macros for tests -*- C++ -*-===/ / 1 //===- subzero/crosstest/test_sync_atomic.def - macros for tests -*- C++ -*-===/ /
2 // 2 //
3 // The Subzero Code Generator 3 // The Subzero Code Generator
4 // 4 //
5 // This file is distributed under the University of Illinois Open Source 5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details. 6 // License. See LICENSE.TXT for details.
7 // 7 //
8 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===//
9 // 9 //
10 // This file defines macros for testing atomic intrinsics (via sync builtins). 10 // This file defines macros for testing atomic intrinsics (via sync builtins).
11 // 11 //
12 //===----------------------------------------------------------------------===// 12 //===----------------------------------------------------------------------===//
13 13
14 #ifndef TEST_SYNC_ATOMIC_DEF 14 #ifndef TEST_SYNC_ATOMIC_DEF
15 #define TEST_SYNC_ATOMIC_DEF 15 #define TEST_SYNC_ATOMIC_DEF
16 16
17 #include "xdefs.h"
18
17 #define STR(s) #s 19 #define STR(s) #s
18 20
19 #define RMWOP_TABLE \ 21 #define RMWOP_TABLE \
20 /* inst */ \ 22 /* inst */ \
21 X(add) \ 23 X(add) \
22 X(sub) \ 24 X(sub) \
23 X(or) \ 25 X(or) \
24 X(and) \ 26 X(and) \
25 X(xor) 27 X(xor)
26 //#define X(inst) 28 //#define X(inst)
27 29
28 #define ATOMIC_TYPE_TABLE \ 30 #define ATOMIC_TYPE_TABLE \
29 /* type */ \ 31 /* type */ \
30 X(uint8_t) \ 32 X(uint8_t) \
31 X(uint16_t) \ 33 X(uint16_t) \
32 X(uint32_t) \ 34 X(uint32_t) \
33 X(uint64_t) 35 X(uint64)
34 //#define X(type) 36 //#define X(type)
35 37
36 #define FOR_ALL_RMWTYPES_INST(F, inst) \ 38 #define FOR_ALL_RMWTYPES_INST(F, inst) \
37 F(inst, uint8_t) \ 39 F(inst, uint8_t) \
38 F(inst, uint16_t) \ 40 F(inst, uint16_t) \
39 F(inst, uint32_t) \ 41 F(inst, uint32_t) \
40 F(inst, uint64_t) 42 F(inst, uint64)
41 43
42 #define FOR_ALL_RMWOP_TYPES(X) \ 44 #define FOR_ALL_RMWOP_TYPES(X) \
43 FOR_ALL_RMWTYPES_INST(X, add) \ 45 FOR_ALL_RMWTYPES_INST(X, add) \
44 FOR_ALL_RMWTYPES_INST(X, sub) \ 46 FOR_ALL_RMWTYPES_INST(X, sub) \
45 FOR_ALL_RMWTYPES_INST(X, or) \ 47 FOR_ALL_RMWTYPES_INST(X, or) \
46 FOR_ALL_RMWTYPES_INST(X, and) \ 48 FOR_ALL_RMWTYPES_INST(X, and) \
47 FOR_ALL_RMWTYPES_INST(X, xor) 49 FOR_ALL_RMWTYPES_INST(X, xor)
48 //#define X(inst, type) 50 //#define X(inst, type)
49 51
50 #endif // TEST_SYNC_ATOMIC_DEF 52 #endif // TEST_SYNC_ATOMIC_DEF
OLDNEW
« no previous file with comments | « crosstest/test_strengthreduce_main.cpp ('k') | crosstest/test_sync_atomic_main.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698