OLD | NEW |
| 1 //===- subzero/crosstest/test_arith.def - macros for tests ----*- C++ -*---===// |
| 2 // |
| 3 // The Subzero Code Generator |
| 4 // |
| 5 // This file is distributed under the University of Illinois Open Source |
| 6 // License. See LICENSE.TXT for details. |
| 7 // |
| 8 //===----------------------------------------------------------------------===// |
| 9 // |
| 10 // This file defines macros for crosstesting arithmetic operations. |
| 11 // |
| 12 //===----------------------------------------------------------------------===// |
| 13 |
1 #ifndef TEST_ARITH_DEF | 14 #ifndef TEST_ARITH_DEF |
2 #define TEST_ARITH_DEF | 15 #define TEST_ARITH_DEF |
3 | 16 |
4 #define XSTR(s) STR(s) | 17 #define XSTR(s) STR(s) |
5 #define STR(s) #s | 18 #define STR(s) #s |
6 | 19 |
7 #define UINTOP_TABLE \ | 20 #define UINTOP_TABLE \ |
8 /* inst, operator, div */ \ | 21 /* inst, operator, div */ \ |
9 X(Add, +, 0 ) \ | 22 X(Add, +, 0 ) \ |
10 X(Sub, -, 0 ) \ | 23 X(Sub, -, 0 ) \ |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 0x7fffffff, 0x80000000, 0x80000001, \ | 72 0x7fffffff, 0x80000000, 0x80000001, \ |
60 0xfffffffe, 0xffffffff, 0x100000000ll, \ | 73 0xfffffffe, 0xffffffff, 0x100000000ll, \ |
61 0x100000001ll, 0x7ffffffffffffffell, 0x7fffffffffffffffll, \ | 74 0x100000001ll, 0x7ffffffffffffffell, 0x7fffffffffffffffll, \ |
62 0x8000000000000000ll, 0x8000000000000001ll, 0xfffffffffffffffell, \ | 75 0x8000000000000000ll, 0x8000000000000001ll, 0xfffffffffffffffell, \ |
63 0xffffffffffffffffll, NegInf, PosInf, \ | 76 0xffffffffffffffffll, NegInf, PosInf, \ |
64 Nan, NegNan, -0.0, \ | 77 Nan, NegNan, -0.0, \ |
65 FLT_MIN, FLT_MAX, DBL_MIN, \ | 78 FLT_MIN, FLT_MAX, DBL_MIN, \ |
66 DBL_MAX } | 79 DBL_MAX } |
67 | 80 |
68 #endif // TEST_ARITH_DEF | 81 #endif // TEST_ARITH_DEF |
OLD | NEW |