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

Issue 389653002: Lower vector floating point arithmetic operations. (Closed)

Created:
6 years, 5 months ago by wala
Modified:
6 years, 5 months ago
CC:
native-client-reviews_googlegroups.com
Base URL:
https://gerrit.chromium.org/gerrit/p/native_client/pnacl-subzero.git@master
Visibility:
Public.

Description

Lower vector floating point arithmetic operations. This adds lowering code for fadd, fsub, fmul, fdiv, and frem. frem, having no native x86 counterpart, is implemented by making a helper call. BUG=none R=jvoung@chromium.org, stichnot@chromium.org Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=8d1072e

Patch Set 1 #

Patch Set 2 : Formatting fixes #

Patch Set 3 : Avoid _movp() trickery #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+132 lines, -5 lines) Patch
M src/IceInstX8632.h View 6 chunks +8 lines, -0 lines 0 comments Download
M src/IceInstX8632.cpp View 2 chunks +4 lines, -0 lines 0 comments Download
M src/IceTargetLoweringX8632.h View 1 2 6 chunks +15 lines, -3 lines 0 comments Download
M src/IceTargetLoweringX8632.cpp View 1 2 2 chunks +54 lines, -2 lines 1 comment Download
A tests_lit/llvm2ice_tests/vector-arith.ll View 1 chunk +51 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
wala
6 years, 5 months ago (2014-07-11 17:22:00 UTC) #1
Jim Stichnoth
https://codereview.chromium.org/389653002/diff/40001/src/IceTargetLoweringX8632.cpp File src/IceTargetLoweringX8632.cpp (right): https://codereview.chromium.org/389653002/diff/40001/src/IceTargetLoweringX8632.cpp#newcode1161 src/IceTargetLoweringX8632.cpp:1161: Variable *T = makeReg(Dest->getType()); Since you're adding 4 new ...
6 years, 5 months ago (2014-07-11 19:56:16 UTC) #2
wala
On 2014/07/11 19:56:16, stichnot wrote: > https://codereview.chromium.org/389653002/diff/40001/src/IceTargetLoweringX8632.cpp > File src/IceTargetLoweringX8632.cpp (right): > > https://codereview.chromium.org/389653002/diff/40001/src/IceTargetLoweringX8632.cpp#newcode1161 > ...
6 years, 5 months ago (2014-07-11 21:59:04 UTC) #3
Jim Stichnoth
On 2014/07/11 21:59:04, wala wrote: > On 2014/07/11 19:56:16, stichnot wrote: > > > https://codereview.chromium.org/389653002/diff/40001/src/IceTargetLoweringX8632.cpp ...
6 years, 5 months ago (2014-07-11 22:19:08 UTC) #4
jvoung (off chromium)
LGTM too
6 years, 5 months ago (2014-07-11 22:29:57 UTC) #5
wala
Committed patchset #3 manually as r8d1072e (presubmit successful).
6 years, 5 months ago (2014-07-11 22:43:54 UTC) #6
JF
6 years, 5 months ago (2014-07-15 01:47:03 UTC) #7
Message was sent while issue was closed.
You'll want to make sure that divide and modulo trap, so that they're consistent
with scalar operations:
  https://code.google.com/p/nativeclient/issues/detail?id=3899

This is still undefined behavior for PNaCl, and we currently don't force LLVM to
trap, but we will at some point so Subzero will have to catch up.

Adding a TODO at least to this code would be good.

Powered by Google App Engine
This is Rietveld 408576698