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

Issue 2013863002: Subzero: Crosstest test_arith properly tests i8/i16. (Closed)

Created:
4 years, 7 months ago by Jim Stichnoth
Modified:
4 years, 6 months ago
Reviewers:
Eric Holk, Karl, John
CC:
native-client-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Subzero: Crosstest test_arith properly tests i8/i16. The problem is that because of C++ integral promotion rules, many of the i8 and i16 arithmetic tests were actually being performed as i32 operations. Thus we weren't actually testing everything we meant to test. The fix is to have a python script auto-generate the relevant tests with proper typing. BUG= none R=eholk@chromium.org, jpp@chromium.org, kschimpf@google.com Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=7dbe802225fc1ad5fa191a20ea8b0de7c5bafef6

Patch Set 1 #

Patch Set 2 : Revert i1 checks, which are already performed by PNaClTranslator #

Total comments: 1

Patch Set 3 : Use a python script to auto-generate .ll tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1026 lines, -3 lines) Patch
M Makefile.standalone View 1 2 3 chunks +4 lines, -2 lines 0 comments Download
M crosstest/crosstest.cfg View 1 2 1 chunk +8 lines, -1 line 0 comments Download
M crosstest/test_arith.cpp View 1 2 2 chunks +6 lines, -0 lines 0 comments Download
A crosstest/test_arith_ll.ll View 1 2 1 chunk +952 lines, -0 lines 0 comments Download
A pydir/gen_test_arith_ll.py View 1 2 1 chunk +56 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (4 generated)
Jim Stichnoth
4 years, 7 months ago (2016-05-25 16:49:58 UTC) #3
Karl
lgtm
4 years, 7 months ago (2016-05-25 16:52:10 UTC) #4
John
lgtm https://codereview.chromium.org/2013863002/diff/20001/crosstest/crosstest.cfg File crosstest/crosstest.cfg (right): https://codereview.chromium.org/2013863002/diff/20001/crosstest/crosstest.cfg#newcode15 crosstest/crosstest.cfg:15: # the i8/i16 form of the arithmetic instruction, ...
4 years, 7 months ago (2016-05-25 17:26:28 UTC) #5
Jim Stichnoth
PTAL. I adapted a python script from John to auto-generate the .ll file. It's hooked ...
4 years, 6 months ago (2016-05-27 18:22:20 UTC) #6
Eric Holk
lgtm
4 years, 6 months ago (2016-05-27 18:30:30 UTC) #8
Jim Stichnoth
4 years, 6 months ago (2016-05-31 19:21:56 UTC) #10
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
7dbe802225fc1ad5fa191a20ea8b0de7c5bafef6 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698