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

Issue 1560933002: Subzero: Enable Non-SFI vector cross tests. (Closed)

Created:
4 years, 11 months ago by Jim Stichnoth
Modified:
4 years, 11 months ago
Reviewers:
Karl, sehr, 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: Enable Non-SFI vector cross tests. The driver programs for vector tests use a loop to initialize vector-type values one element at a time. The PNaCl ABI requires the vector element index to be a constant, and the createConstantInsertExtractElementIndexPass() transformation creates an alloca instruction. When this alloca is inside a loop, it can (and does in the cross tests) cause a stack overflow. The workaround here is to use a noinline helper function to do the insertelement. We didn't run into this problem until now because native and sandbox cross tests build the driver in a different way that presumably avoids running the PNaCl ABI simplification passes. BUG= none R=jpp@chromium.org Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=57a8aab25be274677117e42260e316765c0e15cd

Patch Set 1 #

Total comments: 2

Patch Set 2 : Code review changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -34 lines) Patch
M Makefile.standalone View 1 chunk +1 line, -1 line 0 comments Download
A crosstest/insertelement.h View 1 chunk +27 lines, -0 lines 0 comments Download
M crosstest/test_arith_main.cpp View 1 7 chunks +11 lines, -9 lines 0 comments Download
M crosstest/test_icmp_main.cpp View 1 7 chunks +15 lines, -11 lines 0 comments Download
M crosstest/test_select_main.cpp View 4 chunks +11 lines, -9 lines 0 comments Download
M pydir/crosstest.py View 3 chunks +0 lines, -4 lines 0 comments Download

Messages

Total messages: 8 (4 generated)
Jim Stichnoth
4 years, 11 months ago (2016-01-06 00:23:12 UTC) #4
John
lgtm https://codereview.chromium.org/1560933002/diff/1/crosstest/test_arith_main.cpp File crosstest/test_arith_main.cpp (right): https://codereview.chromium.org/1560933002/diff/1/crosstest/test_arith_main.cpp#newcode217 crosstest/test_arith_main.cpp:217: setElement<TypeUnsigned, ElementTypeUnsigned>(Value1, j, Element1); Do you need the ...
4 years, 11 months ago (2016-01-06 15:24:26 UTC) #5
Jim Stichnoth
https://codereview.chromium.org/1560933002/diff/1/crosstest/test_arith_main.cpp File crosstest/test_arith_main.cpp (right): https://codereview.chromium.org/1560933002/diff/1/crosstest/test_arith_main.cpp#newcode217 crosstest/test_arith_main.cpp:217: setElement<TypeUnsigned, ElementTypeUnsigned>(Value1, j, Element1); On 2016/01/06 15:24:26, John wrote: ...
4 years, 11 months ago (2016-01-06 17:34:30 UTC) #6
Jim Stichnoth
4 years, 11 months ago (2016-01-06 17:34:41 UTC) #8
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
57a8aab25be274677117e42260e316765c0e15cd (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698