Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.1 6/24/83; site alice.UUCP
Path: utzoo!watmath!clyde!burl!ulysses!gamma!epsilon!zeta!sabre!bellcore!allegra!alice!ark
From: ark@alice.UUCP (Andrew Koenig)
Newsgroups: net.bugs.4bsd
Subject: Re: cc generated code bug
Message-ID: <3946@alice.UUCP>
Date: Mon, 1-Jul-85 16:04:14 EDT
Article-I.D.: alice.3946
Posted: Mon Jul  1 16:04:14 1985
Date-Received: Sat, 13-Jul-85 13:52:31 EDT
References: <486@tjalk.UUCP>
Organization: Bell Labs, Murray Hill
Lines: 11

> When right-shifting an unsigned variable, the compiler generates an
> EXTZV instruction. If the shift count exceeds 32, a reserved operand
> fault occurs and the program gets an illegal instruction signal, instead
> of giving a null result.
> -- 
> 			Robbert van Renesse
> 			cogito@vu44.UUCP

This is not a bug.  K&R, page 189:  "The result [of a shift] is undefined
if the right operand is negative, or greater or equal to the length of
the object in bits."