Received: by 10.224.189.75 with SMTP id dd11mr906489qab.6.1349180428436; Tue, 02 Oct 2012 05:20:28 -0700 (PDT) X-BeenThere: v8-dev@googlegroups.com Received: by 10.229.78.102 with SMTP id j38ls359269qck.7.gmail; Tue, 02 Oct 2012 05:20:27 -0700 (PDT) Received: by 10.224.189.75 with SMTP id dd11mr906457qab.6.1349180427586; Tue, 02 Oct 2012 05:20:27 -0700 (PDT) Received: by 10.224.189.75 with SMTP id dd11mr906456qab.6.1349180427577; Tue, 02 Oct 2012 05:20:27 -0700 (PDT) Return-Path: <3CtxqUBUJAPUZeoljfrjZlabobsfbt-eodjXfi....@2uix4h7xygsz66weerlq.apphosting.bounces.google.com> Received: from mail-qc0-f200.google.com (mail-qc0-f200.google.com [209.85.216.200]) by gmr-mx.google.com with ESMTPS id ek33si206738qcb.0.2012.10.02.05.20.26 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 02 Oct 2012 05:20:26 -0700 (PDT) Received-SPF: pass (google.com: domain of 3CtxqUBUJAPUZeoljfrjZlabobsfbt-eodjXfi....@2uix4h7xygsz66weerlq.apphosting.bounces.google.com designates 209.85.216.200 as permitted sender) client-ip=209.85.216.200; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of 3CtxqUBUJAPUZeoljfrjZlabobsfbt-eodjXfi....@2uix4h7xygsz66weerlq.apphosting.bounces.google.com designates 209.85.216.200 as permitted sender) smtp.mail=3CtxqUBUJAPUZeoljfrjZlabobsfbt-eodjXfi....@2uix4h7xygsz66weerlq.apphosting.bounces.google.com; dkim=pass header...@chromium.org Received: by qcol42 with SMTP id l42so9316343qco.7 for ; Tue, 02 Oct 2012 05:20:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:reply-to:x-google-appengine-app-id:message-id:date :subject:from:to:cc:content-type; bh=gp20zCrha95lLwI3XLyy8lE4K5UX9skt8H3U+YJL0H0=; b=gGZc2PifOhnKmYcZaerE+bRGQwWGqIi6Hhs3Zc8ECjeRDzjg7oj/X3sqYlXYH8k6IG qMxrjH8rVt/gO9iOAy9YpHDUrQCvbJ0Peqp2dDHuTrXyNjheFBB49sfy0olazf82N6MS EvBNMnnRegi+OmJbHbGil3IQiQGl2a3uf2Upg= MIME-Version: 1.0 Received: by 10.58.222.100 with SMTP id ql4mr5213649vec.22.1349180426420; Tue, 02 Oct 2012 05:20:26 -0700 (PDT) Reply-To: u...@chromium.org, da...@chromium.org, mstarzin...@chromium.org, dcon...@codeaurora.org, v8-dev@googlegroups.com Message-ID: <047d7bf0ea800e022e04cb128...@google.com> Date: Tue, 02 Oct 2012 12:20:26 +0000 Subject: Re: Add rotate-right instruction to hydrogen and use it instead of bitwise operations (issue 11033005) From: u...@chromium.org To: da...@chromium.org, mstarzin...@chromium.org, dcon...@codeaurora.org Cc: v8-dev@googlegroups.com Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes I uploaded a new patch set that addresses the comments and fixes a representation bug. http://codereview.chromium.org/11033005/diff/2001/src/arm/simulator-arm.cc File src/arm/simulator-arm.cc (right): http://codereview.chromium.org/11033005/diff/2001/src/arm/simulator-arm.cc#newcode1503 src/arm/simulator-arm.cc:1503: } else { On 2012/10/01 19:41:17, Jay Conrod wrote: > Erik Corry expressed some suspicion in my first rev about the shifts, and I > agree. "result" is signed (int32_t), so >> will sign extend. Also *carry_out > should contain the last bit that was shifted, so it can be > (static_cast(result) >> 31) != 0, right? Yes, you're right. I am taking the updated implementation that you uploaded in the other CL. http://codereview.chromium.org/11033005/