|
Subzero: Fix and clean up some cross tests.
1. It turns out that the crosstest scripts mix different versions of
clang - build_pnacl_ir.py uses pnacl-clang from the NaCl SDK for the
tests, while crosstest.py uses clang/clang++ from LLVM_BIN_PATH for
the driver. The SDK has been updated to use a different version of
the standard library, and now there is a mismatch as to whether int8_t
is typedef'd to 'char' or 'signed char', leading to name mangling
mismatches. (char, signed char, and unsigned char are distinct
types.) We deal with this by using myint8_t which is explicitly
defined as signed char.
2. Some ugly function pointer casting in test_arith_main.cpp is fixed/removed.
3. std::endl is replaced with "\n".
4. License text is added to tests that were touched by the above items.
BUG= none
R=wala@chromium.org
Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=7da431b
Total comments: 10
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+245 lines, -56 lines) |
Patch |
 |
M |
crosstest/test_arith.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
crosstest/test_arith.cpp
|
View
|
|
2 chunks |
+14 lines, -1 line |
0 comments
|
Download
|
 |
M |
crosstest/test_arith.def
|
View
|
|
1 chunk |
+13 lines, -0 lines |
0 comments
|
Download
|
 |
M |
crosstest/test_arith_main.cpp
|
View
|
|
12 chunks |
+51 lines, -29 lines |
0 comments
|
Download
|
 |
M |
crosstest/test_cast.h
|
View
|
|
1 chunk |
+21 lines, -0 lines |
0 comments
|
Download
|
 |
M |
crosstest/test_cast.cpp
|
View
|
|
3 chunks |
+15 lines, -2 lines |
0 comments
|
Download
|
 |
M |
crosstest/test_cast_main.cpp
|
View
|
|
4 chunks |
+17 lines, -4 lines |
0 comments
|
Download
|
 |
M |
crosstest/test_fcmp.def
|
View
|
|
1 chunk |
+13 lines, -0 lines |
0 comments
|
Download
|
 |
M |
crosstest/test_global.h
|
View
|
|
1 chunk |
+21 lines, -0 lines |
0 comments
|
Download
|
 |
M |
crosstest/test_global.cpp
|
View
|
1
|
1 chunk |
+13 lines, -0 lines |
0 comments
|
Download
|
 |
M |
crosstest/test_global_main.cpp
|
View
|
|
3 chunks |
+15 lines, -2 lines |
0 comments
|
Download
|
 |
M |
crosstest/test_icmp.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
crosstest/test_icmp.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
crosstest/test_icmp.def
|
View
|
|
1 chunk |
+13 lines, -0 lines |
0 comments
|
Download
|
 |
M |
crosstest/test_icmp_main.cpp
|
View
|
|
6 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
 |
M |
crosstest/test_vector_ops.def
|
View
|
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
 |
M |
crosstest/test_vector_ops_main.cpp
|
View
|
1
|
4 chunks |
+8 lines, -8 lines |
0 comments
|
Download
|
 |
M |
crosstest/vectors.h
|
View
|
|
1 chunk |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
M |
crosstest/vectors.def
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 4 (0 generated)
|