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

Issue 1522333002: X87: [TurboFan] Change the implementation of Float32's NaN comparision's return value in kX87Float3… (Closed)

Created:
5 years ago by zhengxing.li
Modified:
5 years ago
Reviewers:
Weiliang, chunyang.dai
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

X87: [TurboFan] Change the implementation of Float32's NaN comparision's return value in kX87Float32Min and kX87Float32Max. The CL 32796(https://codereview.chromium.org/1512023002) adds many Float32 comparision test data which including the NaN comparision. As there's no Specification for the return value of NaN comparision, Current x87 will check the Float comparision instruction's first operand, if it's NaN, return the second operand. Otherwise, return itself. But this conflicts with the Gcc compiler's implementation and cause the RunFloat32MinP and RunFloat32MaxP tests failed. For (a < b) comparision, The Gcc compiler will treat the NaN comparision's result same as a GT b and return b. The minss sse instruction in IA32 has the similar behavior. So this CL will make the implementation of NaN comparision's return value in kX87Float32Min and kX87Float32Max same as Gcc and IA32. BUG= Committed: https://crrev.com/a337d159d300274b38506f256c8d9d0d85beb558 Cr-Commit-Position: refs/heads/master@{#32866}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -13 lines) Patch
M src/compiler/x87/code-generator-x87.cc View 4 chunks +7 lines, -13 lines 0 comments Download

Messages

Total messages: 11 (4 generated)
zhengxing.li
5 years ago (2015-12-15 07:04:12 UTC) #3
zhengxing.li
5 years ago (2015-12-15 07:04:12 UTC) #4
chunyang.dai
LGTM.
5 years ago (2015-12-15 10:04:26 UTC) #5
Weiliang
lgtm
5 years ago (2015-12-15 13:39:32 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1522333002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1522333002/1
5 years ago (2015-12-15 13:39:34 UTC) #8
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years ago (2015-12-15 13:59:34 UTC) #9
commit-bot: I haz the power
5 years ago (2015-12-15 13:59:55 UTC) #11
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/a337d159d300274b38506f256c8d9d0d85beb558
Cr-Commit-Position: refs/heads/master@{#32866}

Powered by Google App Engine
This is Rietveld 408576698