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

Issue 6117003: ARM: Add instruction VFPCompareAndSetFlags to macro assembler (Closed)

Created:
9 years, 11 months ago by Søren Thygesen Gjesse
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

ARM: Add instructions VFPCompareAndSetFlags and VFPCompareAndLoadFlags to macro assembler Also removed the SBit from the vcmp instruction as it is not part of the instruction. Committed: http://code.google.com/p/v8/source/detail?r=6268

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 6

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 11
Unified diffs Side-by-side diffs Delta from patch set Stats (+102 lines, -37 lines) Patch
M src/arm/assembler-arm.h View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M src/arm/assembler-arm.cc View 1 2 3 2 chunks +0 lines, -2 lines 0 comments Download
M src/arm/code-stubs-arm.cc View 1 2 3 4 chunks +4 lines, -8 lines 7 comments Download
M src/arm/codegen-arm.cc View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M src/arm/lithium-codegen-arm.cc View 1 2 3 5 chunks +6 lines, -17 lines 0 comments Download
M src/arm/macro-assembler-arm.h View 1 2 3 1 chunk +29 lines, -2 lines 0 comments Download
M src/arm/macro-assembler-arm.cc View 1 2 3 1 chunk +62 lines, -4 lines 4 comments Download

Messages

Total messages: 8 (0 generated)
Søren Thygesen Gjesse
9 years, 11 months ago (2011-01-10 10:31:52 UTC) #1
Karl Klose
LGTM.
9 years, 11 months ago (2011-01-10 10:43:12 UTC) #2
Rodolph Perfetta
drive by comments. http://codereview.chromium.org/6117003/diff/7001/src/arm/macro-assembler-arm.h File src/arm/macro-assembler-arm.h (right): http://codereview.chromium.org/6117003/diff/7001/src/arm/macro-assembler-arm.h#newcode585 src/arm/macro-assembler-arm.h:585: void VFPCompareAndSetFlags(const DwVfpRegister src1, Since the ...
9 years, 11 months ago (2011-01-10 11:24:10 UTC) #3
Søren Thygesen Gjesse
New version uploaded. Rodolph: Please look at the changes in code-stubs-arm.cc - didn't we miss ...
9 years, 11 months ago (2011-01-10 12:36:01 UTC) #4
Rodolph Perfetta
http://codereview.chromium.org/6117003/diff/6/src/arm/code-stubs-arm.cc File src/arm/code-stubs-arm.cc (right): http://codereview.chromium.org/6117003/diff/6/src/arm/code-stubs-arm.cc#newcode977 src/arm/code-stubs-arm.cc:977: __ VFPCompareAndSetFlags(d7, d6, r0); No need to clear the ...
9 years, 11 months ago (2011-01-10 14:59:36 UTC) #5
Søren Thygesen Gjesse
Rodolph, please explain if we ever need to clear any FPSCR flags when using vcmpe ...
9 years, 11 months ago (2011-01-11 08:56:17 UTC) #6
Rodolph Perfetta
On 2011/01/11 08:56:17, Søren Gjesse wrote: > Rodolph, please explain if we ever need to ...
9 years, 11 months ago (2011-01-11 11:39:48 UTC) #7
Søren Thygesen Gjesse
9 years, 11 months ago (2011-01-11 12:41:52 UTC) #8
http://codereview.chromium.org/6117003/diff/6/src/arm/code-stubs-arm.cc
File src/arm/code-stubs-arm.cc (right):

http://codereview.chromium.org/6117003/diff/6/src/arm/code-stubs-arm.cc#newco...
src/arm/code-stubs-arm.cc:977: __ VFPCompareAndSetFlags(d7, d6, r0);
On 2011/01/10 14:59:36, Rodolph Perfetta wrote:
> No need to clear the flags, if the result is unordered the overflow flag will
be
> set (the vs condition).

Done.

http://codereview.chromium.org/6117003/diff/6/src/arm/code-stubs-arm.cc#newco...
src/arm/code-stubs-arm.cc:1097: __ VFPCompareAndSetFlags(d1, 0.0, scratch);
On 2011/01/10 14:59:36, Rodolph Perfetta wrote:
> Ditto.

Done.

http://codereview.chromium.org/6117003/diff/6/src/arm/code-stubs-arm.cc#newco...
src/arm/code-stubs-arm.cc:4915: __ VFPCompareAndSetFlags(d0, d1, r2);
On 2011/01/10 14:59:36, Rodolph Perfetta wrote:
> Ditto.

Done.

http://codereview.chromium.org/6117003/diff/6/src/arm/macro-assembler-arm.cc
File src/arm/macro-assembler-arm.cc (right):

http://codereview.chromium.org/6117003/diff/6/src/arm/macro-assembler-arm.cc#...
src/arm/macro-assembler-arm.cc:531: void
MacroAssembler::VFPCompareAndSetFlags(const DwVfpRegister src1,
On 2011/01/10 14:59:36, Rodolph Perfetta wrote:
> If the flags are cleared the intent is to read them shortly after, so the case
> where scratch is used sounds redundant with VFPCompareAndLoad.

Done.

http://codereview.chromium.org/6117003/diff/6/src/arm/macro-assembler-arm.cc#...
src/arm/macro-assembler-arm.cc:546: void
MacroAssembler::VFPCompareAndSetFlags(const DwVfpRegister src1,
On 2011/01/10 14:59:36, Rodolph Perfetta wrote:
> Ditto.

Done.

Powered by Google App Engine
This is Rietveld 408576698