From owner-svn-src-head@freebsd.org Fri Jan 19 18:31:35 2018 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1BB4AEC0976; Fri, 19 Jan 2018 18:31:35 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: from mail-it0-f44.google.com (mail-it0-f44.google.com [209.85.214.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E062E6D770; Fri, 19 Jan 2018 18:31:34 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: by mail-it0-f44.google.com with SMTP id 68so3173244ite.4; Fri, 19 Jan 2018 10:31:34 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:reply-to:in-reply-to:references :from:date:message-id:subject:to:cc:content-transfer-encoding; bh=3cS90BKCSHaztRAJA0AtyW8eROWJ12PQpzl7fj4uNOs=; b=M1zpwcK5koRlkigKji3BzI67TK1SFSDDapqHJNMbUDTMOmzaGm3OC5ioT3yDg9rO/Q hpwhLbW3Ezhd++wzQIV09s9RP2t1qXiIHrpytPP6yX+DjIWS1D0TiaiRRuuMB0wDkTQP yj06vW8fJydpWQc532G7JlTcouXgYivl56CaizAV7NZbjyTiKNFmm7FZCkPh1hOL1Jkj WlmsXtu5OBFWbqs3ASAhk7oVVJXVmghZK/Pc1ToMM1pQFuQpyGi9M9iEodXOXwoJQEhU Jt0+aH1MUiiC8A+iUEr+P0xV39lCHQxo+3xA3nY9rS0q2kUaCm3gB+V9bqYbuc3GPE9F nRag== X-Gm-Message-State: AKwxytd2r+uxWQQeuRhRRzcgvQW3CkkhvbsrMdUY4WywBFuRsXLXX2D8 ltstjIXfXToVS0X5zuhuxiWaWdqm X-Google-Smtp-Source: ACJfBouG6TXx9etYLzAzzvk167+dPCRkBRXSCizYHW4V0GMwmn84foMDnNqpSYjEJPstuUXL0jizyA== X-Received: by 10.36.157.69 with SMTP id f66mr24609950itd.136.1516386693391; Fri, 19 Jan 2018 10:31:33 -0800 (PST) Received: from mail-io0-f181.google.com (mail-io0-f181.google.com. [209.85.223.181]) by smtp.gmail.com with ESMTPSA id h134sm1066333ith.32.2018.01.19.10.31.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Jan 2018 10:31:33 -0800 (PST) Received: by mail-io0-f181.google.com with SMTP id f34so3106124ioi.13; Fri, 19 Jan 2018 10:31:33 -0800 (PST) X-Received: by 10.107.131.210 with SMTP id n79mr27395277ioi.215.1516386692806; Fri, 19 Jan 2018 10:31:32 -0800 (PST) MIME-Version: 1.0 Reply-To: cem@freebsd.org Received: by 10.2.95.152 with HTTP; Fri, 19 Jan 2018 10:31:32 -0800 (PST) In-Reply-To: <2915608.v56yfz43Ej@ralph.baldwin.cx> References: <201801190434.w0J4Y6i7086677@repo.freebsd.org> <2915608.v56yfz43Ej@ralph.baldwin.cx> From: Conrad Meyer Date: Fri, 19 Jan 2018 10:31:32 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: svn commit: r328159 - head/sys/modules To: John Baldwin Cc: src-committers , svn-src-all@freebsd.org, svn-src-head@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Jan 2018 18:31:35 -0000 On Fri, Jan 19, 2018 at 9:51 AM, John Baldwin wrote: > On Friday, January 19, 2018 04:34:06 AM Conrad Meyer wrote: >> The logical result of a right shift >=3D the width of a type is zero, = but our >> compiler decides this is a warning (and thus, error). Just remove ccp= (4) >> from i386. > > You would think that. The shift instructions on x86 effectively ignore t= he > upper bits of the count, so a 33-bit shift on i386 ends up being a 1-bit = shift, > etc. IIRC. This never becomes a shift instruction on x86 or any other arch =E2=80=94 i= t's a constant before it reaches machine code.