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

Issue 291213003: Subzero: Fix x86 floating-point constant emission (Closed)

Created:
6 years, 7 months ago by Jim Stichnoth
Modified:
6 years, 7 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

Fix x86 floating-point constant emission. Previously, the basis of constant pooling was implemented, but two things were lacking: 1. The constant pools were not being emitted in the asm file. 2. A direct FP value was emitted in an FP instruction, e.g. "addss xmm0, 1.0000e00". Curiously, at least for some FP constants, llvm-mc was accepting this syntax. BUG= none R=jfb@chromium.org Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=f61d5b2

Patch Set 1 #

Total comments: 14

Patch Set 2 : Address JF comments round 1 #

Total comments: 4

Patch Set 3 : Changes from JF's review #

Patch Set 4 : "Fix" static casting #

Unified diffs Side-by-side diffs Delta from patch set Stats (+171 lines, -20 lines) Patch
M src/IceDefs.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/IceGlobalContext.h View 1 chunk +3 lines, -0 lines 0 comments Download
M src/IceGlobalContext.cpp View 1 3 chunks +33 lines, -2 lines 0 comments Download
M src/IceOperand.h View 6 chunks +18 lines, -9 lines 0 comments Download
M src/IceTargetLowering.h View 1 chunk +2 lines, -0 lines 0 comments Download
M src/IceTargetLoweringX8632.h View 1 2 chunks +5 lines, -0 lines 0 comments Download
M src/IceTargetLoweringX8632.cpp View 1 2 3 2 chunks +77 lines, -0 lines 0 comments Download
M src/llvm2ice.cpp View 1 6 chunks +20 lines, -9 lines 0 comments Download
M tests_lit/llvm2ice_tests/fpconst.pnacl.ll View 1 2 chunks +12 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Jim Stichnoth
6 years, 7 months ago (2014-05-22 21:17:05 UTC) #1
JF
https://codereview.chromium.org/291213003/diff/1/src/IceGlobalContext.cpp File src/IceGlobalContext.cpp (right): https://codereview.chromium.org/291213003/diff/1/src/IceGlobalContext.cpp#newcode53 src/IceGlobalContext.cpp:53: Constants.push_back((*I).second); I->second ? Also, C++11 lambdas would be nice ...
6 years, 7 months ago (2014-05-22 21:39:47 UTC) #2
Jim Stichnoth
https://codereview.chromium.org/291213003/diff/1/src/IceGlobalContext.cpp File src/IceGlobalContext.cpp (right): https://codereview.chromium.org/291213003/diff/1/src/IceGlobalContext.cpp#newcode53 src/IceGlobalContext.cpp:53: Constants.push_back((*I).second); On 2014/05/22 21:39:47, JF wrote: > I->second ? ...
6 years, 7 months ago (2014-05-22 23:48:28 UTC) #3
JF
lgtm https://codereview.chromium.org/291213003/diff/20001/src/IceTargetLoweringX8632.cpp File src/IceTargetLoweringX8632.cpp (right): https://codereview.chromium.org/291213003/diff/20001/src/IceTargetLoweringX8632.cpp#newcode601 src/IceTargetLoweringX8632.cpp:601: Align = typeAlignInBytes(Ty); Do these in the initialization ...
6 years, 7 months ago (2014-05-23 16:35:02 UTC) #4
Jim Stichnoth
Committed patchset #4 manually as rf61d5b2 (presubmit successful).
6 years, 7 months ago (2014-05-23 20:31:27 UTC) #5
Jim Stichnoth
6 years, 7 months ago (2014-05-23 20:37:34 UTC) #6
Message was sent while issue was closed.
https://codereview.chromium.org/291213003/diff/20001/src/IceTargetLoweringX86...
File src/IceTargetLoweringX8632.cpp (right):

https://codereview.chromium.org/291213003/diff/20001/src/IceTargetLoweringX86...
src/IceTargetLoweringX8632.cpp:601: Align = typeAlignInBytes(Ty);
On 2014/05/23 16:35:03, JF wrote:
> Do these in the initialization above.

Done.

https://codereview.chromium.org/291213003/diff/20001/src/IceTargetLoweringX86...
src/IceTargetLoweringX8632.cpp:614: snprintf(buf, llvm::array_lengthof(buf),
T::PrintfString, RawValue);
On 2014/05/23 16:35:03, JF wrote:
> Check that the return is in [0, size-1].

Done.

Powered by Google App Engine
This is Rietveld 408576698