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

Issue 1022573004: Subzero: Add fabs intrinsic support. (Closed)

Created:
5 years, 9 months ago by Jim Stichnoth
Modified:
5 years, 9 months ago
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: Add fabs intrinsic support. The intrinsic is lowered using the standard technique of masking off the FP sign bit, which is the high-order bit. To construct this mask, we use the existing trick of loading a vector register with all "1" bits, then logical-shift-right by one bit. In the future, we should add 128-bit vector values to the constant pool and force them to memory, and this could be used for the other routines that synthesize a vector constant. BUG= https://code.google.com/p/nativeclient/issues/detail?id=4097 R=jvoung@chromium.org Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=8c980d0de6592be36fae4ec8ae603dde7212c46c

Patch Set 1 #

Total comments: 7

Patch Set 2 : Code review changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+277 lines, -7 lines) Patch
M crosstest/crosstest.cfg View 1 chunk +1 line, -1 line 0 comments Download
M crosstest/test_arith.h View 1 chunk +4 lines, -0 lines 0 comments Download
A crosstest/test_arith_fabs.ll View 1 chunk +18 lines, -0 lines 0 comments Download
M crosstest/test_arith_main.cpp View 2 chunks +25 lines, -0 lines 0 comments Download
M src/IceInstX8632.h View 1 5 chunks +5 lines, -3 lines 0 comments Download
M src/IceInstX8632.cpp View 3 chunks +14 lines, -0 lines 0 comments Download
M src/IceInstX8632.def View 1 chunk +3 lines, -3 lines 0 comments Download
M src/IceIntrinsics.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/IceIntrinsics.cpp View 1 chunk +10 lines, -0 lines 0 comments Download
M src/IceTargetLoweringX8632.h View 2 chunks +5 lines, -0 lines 0 comments Download
M src/IceTargetLoweringX8632.cpp View 2 chunks +24 lines, -0 lines 0 comments Download
M src/assembler_ia32.h View 1 chunk +3 lines, -0 lines 0 comments Download
M src/assembler_ia32.cpp View 1 chunk +47 lines, -0 lines 0 comments Download
M tests_lit/llvm2ice_tests/nacl-other-intrinsics.ll View 1 2 chunks +60 lines, -0 lines 0 comments Download
M tests_lit/reader_tests/nacl-other-intrinsics.ll View 1 2 chunks +57 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (1 generated)
Jim Stichnoth
5 years, 9 months ago (2015-03-19 00:11:56 UTC) #2
jvoung (off chromium)
Cool -- LGTM otherwise https://codereview.chromium.org/1022573004/diff/1/src/IceInstX8632.h File src/IceInstX8632.h (right): https://codereview.chromium.org/1022573004/diff/1/src/IceInstX8632.h#newcode811 src/IceInstX8632.h:811: assert(AllowAllTypes || Ty == IceType_v8i16 ...
5 years, 9 months ago (2015-03-19 16:37:53 UTC) #3
Jim Stichnoth
https://codereview.chromium.org/1022573004/diff/1/src/IceInstX8632.h File src/IceInstX8632.h (right): https://codereview.chromium.org/1022573004/diff/1/src/IceInstX8632.h#newcode811 src/IceInstX8632.h:811: assert(AllowAllTypes || Ty == IceType_v8i16 || Ty == IceType_v8i1 ...
5 years, 9 months ago (2015-03-19 18:35:15 UTC) #4
jvoung (off chromium)
lgtm https://codereview.chromium.org/1022573004/diff/1/src/IceInstX8632.h File src/IceInstX8632.h (right): https://codereview.chromium.org/1022573004/diff/1/src/IceInstX8632.h#newcode811 src/IceInstX8632.h:811: assert(AllowAllTypes || Ty == IceType_v8i16 || Ty == ...
5 years, 9 months ago (2015-03-19 18:50:34 UTC) #5
Jim Stichnoth
5 years, 9 months ago (2015-03-19 20:01:54 UTC) #6
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
8c980d0de6592be36fae4ec8ae603dde7212c46c (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698