From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 1643 invoked from network); 18 Jan 2021 16:41:22 -0000 Received: from 1ess.inri.net (216.126.196.35) by inbox.vuxu.org with ESMTPUTF8; 18 Jan 2021 16:41:22 -0000 Received: from mail-vk1-f182.google.com ([209.85.221.182]) by 1ess; Mon Jan 18 11:11:39 -0500 2021 Received: by mail-vk1-f182.google.com with SMTP id k9so4095761vke.4 for <9front@9front.org>; Mon, 18 Jan 2021 08:11:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=3ZXw25u0GHdafDOThsa6Fvg6ZBRs3nsIkhz8oUJ1QNk=; b=FHmFqdjZHoC/Z7sydismOspQG6d7j+rqqwOqB++B4IfNTB2pDa9GKFOy+gWXGPgmj7 EJZB4DwloIkrhMwUVOZK9g+Uf8zX3dFuV7g1PZAzbWAz7EQW0ZZVVHx5/DqgBORXU/Oz Yu7NxQc7kNl9fEc5409+mI9TL3JXzAHYthoSiUEDUloLy9oYkFcuDFqsfvaUmolLyKZn kP4WSzc4wDRdoP9mG3WqiNNXSjFjGGXFW+30U0U6utkL/DYJl4IvsYIIn9V5iinTgJwY BAj0z7IL2r/yV6rB6HOrxAKXuziJjNydT68oc/b9fJEvUWbtrfw33+7GB70cOn/K0HLY KYKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=3ZXw25u0GHdafDOThsa6Fvg6ZBRs3nsIkhz8oUJ1QNk=; b=lW/ljVCQttkE9sA0Q9HjkVgBh9D9Pe6BODCv2LD5xVHbmv8VaAYBwaKeUP2QV/wxT6 88TYNLJURFlBQX0z9kbm89xnz9NDIh6Z3k318C5xF9I9MCORQaR8pHFGxhxQrN/8Pdoq bKC2XKWo6T99za+5AOQ2UOXqupbXBpoT2R+WSGnSynd0lxYq8yv2etEgwTuQwOJu5GKt b3ybAlkhBqRK6t3o4V+ovNSKZwHF4Xd+3fNQXXgwK0OXjvV6U4a0jbwa1r7vEeGjoToK Vd1k0YXizP0wi4ZsRaW2XyDy7C95Vh+Amw1eJHsbV1pwQ0QP7vqggKK4R5Ol/bTRUMl8 cWWQ== X-Gm-Message-State: AOAM533nefHosB/INKD2z9WKZQ9eYAGXFaXgf2Z+LfUrhSkxm3/96txx JxOHN5b9xPR2gkcPC7qtczJk+A0AHZ4j6KeOeK5wMkoX X-Google-Smtp-Source: ABdhPJybrE1rhAkLDGDRsX68jE13yOscxV//uPmEhQgE/MzQW2dMxhscUQgzJouWH2UyB6oL1+l8xanvX894T6SO43o= X-Received: by 2002:a1f:b695:: with SMTP id g143mr388583vkf.16.1610986286153; Mon, 18 Jan 2021 08:11:26 -0800 (PST) MIME-Version: 1.0 References: <9fef5273-8e1c-4d3e-9c62-790ae227103d@pixelhero.dev> <756C95B55C2DABF6755FCB63F332F045@eigenstate.org> In-Reply-To: <756C95B55C2DABF6755FCB63F332F045@eigenstate.org> From: Jonas Amoson Date: Mon, 18 Jan 2021 18:11:15 +0200 Message-ID: To: 9front@9front.org Content-Type: text/plain; charset="UTF-8" List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: hosting AJAX over SVG package descriptor-scale polling-aware backend Subject: Re: [9front] Weird >>= operator behaviour in 5c/5l Reply-To: 9front@9front.org Precedence: bulk Left shifting by 32 instead of 0 does explain my result, and seam indeed to be the real bug. Regarding optimising out shifts where the number of steps is zero: it already does that when using the pattern x = x >> 0; but it doesn't for x >>= 0; Thanks, Jonas On Mon, 18 Jan 2021 at 07:50, wrote: > > Quoth Noam Preil : > > It could just be architecture specific behavior. > > > > It's a bug. Two, actually. > > 1) a shift of zero should be optimized out by > the compiler; cinap has a change for this in > the works already. This fix should hide the > second bug. > > 2) a shift by a literal zero is miscompiled by > the assembler into a shift by 32, because > of a missed special case in the instruction. > encoding. I'm working on fixing the assembler.