Author: dim
Date: Sun Aug 9 11:06:40 2015
New Revision: 286519
URL: https://svnweb.freebsd.org/changeset/base/286519
Log:
In GNU as, avoid left-shifting negative integers, which is undefined.
MFC after:3 days
Modified:
head/contrib/binutils/gas/config/tc-i386.c
Modified: head/contr
Since when is LEFT shifting a signed number undefined. It is RIGHT
shifting that’s undefined…
Warner
> On Aug 9, 2015, at 5:06 AM, Dimitry Andric wrote:
>
> Author: dim
> Date: Sun Aug 9 11:06:40 2015
> New Revision: 286519
> URL: https://svnweb.freebsd.org/changeset/base/286519
>
> Log:
>
On Sun, 9 Aug 2015, Warner Losh wrote:
Since when is LEFT shifting a signed number undefined. It is RIGHT
shifting that???s undefined???
Always. It always shifts out the sign bit in the usual 2's complement
representation, so must be undefined in that case. It is undefined by
definition in o