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

Issue 2158523002: S390:Update inline asm constraint in test-platform (Closed)

Created:
4 years, 5 months ago by JoranSiu
Modified:
4 years, 5 months ago
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

S390:Update inline asm constraint in test-platform The GetStackPointer() routine in test-platform uses an inline assembly code to store the current stack pointer value into a static variable sp_addr. The existing asm code for S390 uses an ST/STG instruction, with the memory operand associated with the general ('=g') constraint to sp_addr. On GCC 4.8.5, the GCC compiler got confused and treated sp_addr as an integer operand instead of memory operand, resulting in a store being emitted that writes to an invalid meory location. Given the specific store instructions being inlined here, we should restict the sp_addr operand to explicitly be a memory operand using '=m' instead of '=g'. R=bmeurer@chromium.org,jkummerow@chormium.org,rmcilroy@chromium.org,yangguo@chromium.org BUG= Committed: https://crrev.com/2b4c9c100baa8c7fbe00635f8e6b4f4d1bbddb90 Cr-Commit-Position: refs/heads/master@{#37809}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M test/cctest/test-platform.cc View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 10 (5 generated)
JoranSiu
PTAL
4 years, 5 months ago (2016-07-15 19:55:50 UTC) #1
Benedikt Meurer
lgtm
4 years, 5 months ago (2016-07-16 12:58:27 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2158523002/1
4 years, 5 months ago (2016-07-16 15:15:19 UTC) #6
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 5 months ago (2016-07-16 15:35:36 UTC) #8
commit-bot: I haz the power
4 years, 5 months ago (2016-07-16 15:36:54 UTC) #10
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/2b4c9c100baa8c7fbe00635f8e6b4f4d1bbddb90
Cr-Commit-Position: refs/heads/master@{#37809}

Powered by Google App Engine
This is Rietveld 408576698