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

Issue 2351583002: [SubZero] lower float and double constants for MIPS (Closed)

Created:
4 years, 3 months ago by jaydeep.patil
Modified:
4 years, 3 months ago
Reviewers:
Karl, John, sagar.thakur, Jim Stichnoth, srdjan.obucina, Eric Holk
CC:
native-client-reviews_googlegroups.com, rich.fuhler_imgtec.com
Base URL:
https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

[SubZero] lower float and double constants for MIPS The patch emits constant pool for float and double constants. R=stichnot@chromium.org Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=cf9c12f84aa58a3025d753c8bab1a4492bd37039

Patch Set 1 #

Total comments: 4

Patch Set 2 : Addressed review comments #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+186 lines, -23 lines) Patch
M src/IceTargetLoweringMIPS32.h View 1 2 chunks +3 lines, -3 lines 0 comments Download
M src/IceTargetLoweringMIPS32.cpp View 1 3 chunks +126 lines, -20 lines 0 comments Download
M tests_lit/llvm2ice_tests/fp_const_pool.ll View 1 4 chunks +57 lines, -0 lines 4 comments Download

Messages

Total messages: 9 (3 generated)
jaydeep.patil
4 years, 3 months ago (2016-09-19 04:47:59 UTC) #3
Jim Stichnoth
https://codereview.chromium.org/2351583002/diff/1/src/IceTargetLoweringMIPS32.cpp File src/IceTargetLoweringMIPS32.cpp (right): https://codereview.chromium.org/2351583002/diff/1/src/IceTargetLoweringMIPS32.cpp#newcode3463 src/IceTargetLoweringMIPS32.cpp:3463: const char ConstantPoolEmitterTraits<double>::AsmTag[] = ".word"; I was wondering about ...
4 years, 3 months ago (2016-09-19 20:50:14 UTC) #4
jaydeep.patil
https://codereview.chromium.org/2351583002/diff/1/src/IceTargetLoweringMIPS32.cpp File src/IceTargetLoweringMIPS32.cpp (right): https://codereview.chromium.org/2351583002/diff/1/src/IceTargetLoweringMIPS32.cpp#newcode3463 src/IceTargetLoweringMIPS32.cpp:3463: const char ConstantPoolEmitterTraits<double>::AsmTag[] = ".word"; On 2016/09/19 20:50:14, stichnot ...
4 years, 3 months ago (2016-09-20 07:28:27 UTC) #5
Jim Stichnoth
lgtm https://codereview.chromium.org/2351583002/diff/20001/tests_lit/llvm2ice_tests/fp_const_pool.ll File tests_lit/llvm2ice_tests/fp_const_pool.ll (right): https://codereview.chromium.org/2351583002/diff/20001/tests_lit/llvm2ice_tests/fp_const_pool.ll#newcode34 tests_lit/llvm2ice_tests/fp_const_pool.ll:34: ; MIPS32: lui [[REG:.*]],{{.*}}: R_MIPS_HI16 .L$float$80000000 This is ...
4 years, 3 months ago (2016-09-20 15:37:45 UTC) #6
Jim Stichnoth
Committed patchset #2 (id:20001) manually as cf9c12f84aa58a3025d753c8bab1a4492bd37039 (presubmit successful).
4 years, 3 months ago (2016-09-20 15:38:18 UTC) #8
jaydeep.patil
4 years, 3 months ago (2016-09-21 04:52:33 UTC) #9
Message was sent while issue was closed.
https://codereview.chromium.org/2351583002/diff/20001/tests_lit/llvm2ice_test...
File tests_lit/llvm2ice_tests/fp_const_pool.ll (right):

https://codereview.chromium.org/2351583002/diff/20001/tests_lit/llvm2ice_test...
tests_lit/llvm2ice_tests/fp_const_pool.ll:34: ; MIPS32: lui [[REG:.*]],{{.*}}:
R_MIPS_HI16 .L$float$80000000
On 2016/09/20 15:37:45, stichnot wrote:
> This is OK for now, but I want to point out that these label names are not
> guaranteed to be stable, i.e. in some future CL we may decide we need to
change
> the naming convention, and then any tests that rely on specific label names
> would have to be changed as well.  Unlikely but possible.
> 
> The label names should always start with ".L" though.
> 
> It's probably better to match symbolically:
> ; MIPS32: ... R_MIPS_HI16 [[FLOAT_M0:\.L.*]]
> and then use [[FLOAT_M0]] down in the constant pool definitions.

Acknowledged.

https://codereview.chromium.org/2351583002/diff/20001/tests_lit/llvm2ice_test...
tests_lit/llvm2ice_tests/fp_const_pool.ll:118: ; MIPS32CP: .word 0x7fc00000 /*
f32 nan */
On 2016/09/20 15:37:45, stichnot wrote:
> Similar comment as above.  The "/* f32 nan */" part of the output is not
> necessarily stable, so you could just match like this:
> ; MIPS32CP: .word 0x7fc00000

Acknowledged.

Powered by Google App Engine
This is Rietveld 408576698