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

Side by Side Diff: crosstest/test_arith.def

Issue 639543002: Add cross test for vector itofp and fptoi casts. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: share more Created 6 years, 2 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/runtests.sh ('k') | crosstest/test_cast_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_arith.def - macros for tests ----*- C++ -*---===// 1 //===- subzero/crosstest/test_arith.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 crosstesting arithmetic operations. 10 // This file defines macros for crosstesting arithmetic operations.
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 57
58 #define INT_VALUE_ARRAY \ 58 #define INT_VALUE_ARRAY \
59 { 0x0, 0x1, 0x7ffffffe, 0x7fffffff, \ 59 { 0x0, 0x1, 0x7ffffffe, 0x7fffffff, \
60 0x80000000, 0x80000001, 0xfffffffe, 0xffffffff, \ 60 0x80000000, 0x80000001, 0xfffffffe, 0xffffffff, \
61 0x7e, 0x7f, 0x80, 0x81, \ 61 0x7e, 0x7f, 0x80, 0x81, \
62 0xfe, 0xff, 0x100, 0x101, \ 62 0xfe, 0xff, 0x100, 0x101, \
63 0x7ffe, 0x7fff, 0x8000, 0x8001, \ 63 0x7ffe, 0x7fff, 0x8000, 0x8001, \
64 0xfffe, 0xffff, 0x10000, 0x10001 } 64 0xfffe, 0xffff, 0x10000, 0x10001 }
65 65
66 #define FP_VALUE_ARRAY(NegInf, PosInf, NegNan, NaN) \ 66 #define FP_VALUE_ARRAY(NegInf, PosInf, NegNan, NaN) \
67 { 0, 1, 0x7e, \ 67 { 0, 1, 1.4, \
68 1.5, 1.6, -1.4, \
69 -1.5, -1.6, 0x7e, \
68 0x7f, 0x80, 0x81, \ 70 0x7f, 0x80, 0x81, \
69 0xfe, 0xff, 0x7ffe, \ 71 0xfe, 0xff, 0x7ffe, \
70 0x7fff, 0x8000, 0x8001, \ 72 0x7fff, 0x8000, 0x8001, \
71 0xfffe, 0xffff, 0x7ffffffe, \ 73 0xfffe, 0xffff, 0x7ffffffe, \
72 0x7fffffff, 0x80000000, 0x80000001, \ 74 0x7fffffff, 0x80000000, 0x80000001, \
73 0xfffffffe, 0xffffffff, 0x100000000ll, \ 75 0xfffffffe, 0xffffffff, 0x100000000ll, \
74 0x100000001ll, 0x7ffffffffffffffell, 0x7fffffffffffffffll, \ 76 0x100000001ll, 0x7ffffffffffffffell, 0x7fffffffffffffffll, \
75 0x8000000000000000ll, 0x8000000000000001ll, 0xfffffffffffffffell, \ 77 0x8000000000000000ll, 0x8000000000000001ll, 0xfffffffffffffffell, \
76 0xffffffffffffffffll, NegInf, PosInf, \ 78 0xffffffffffffffffll, NegInf, PosInf, \
77 Nan, NegNan, -0.0, \ 79 Nan, NegNan, -0.0, \
78 FLT_MIN, FLT_MAX, DBL_MIN, \ 80 10.0, FLT_MIN, FLT_MAX, \
79 DBL_MAX } 81 DBL_MIN, DBL_MAX }
80 82
81 #endif // TEST_ARITH_DEF 83 #endif // TEST_ARITH_DEF
OLDNEW
« no previous file with comments | « crosstest/runtests.sh ('k') | crosstest/test_cast_main.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698