Path: utzoo!attcan!uunet!seismo!sundc!pitstop!sun!smile!alanf From: alanf%smile@Sun.COM (Alan Fargusson) Newsgroups: comp.arch Subject: Re: Shifting question Message-ID: <60137@sun.uucp> Date: 15 Jul 88 18:46:56 GMT References: <705@bnr-rsc.UUCP> Sender: news@sun.uucp Lines: 17 In article <705@bnr-rsc.UUCP>, jim@bnr-rsc.UUCP (Jim Somerville) writes: > I have a question on how compilers should handle shifting. > What should be the value of y after the shifting is complete? > a) x > b) 0 > c) none of the above D: All of the above. It is implemetation dependent. > Do I have a valid complaint if the compiler I am using gives x? No. Since different hardware will implements the shift in different ways it would be rather difficult to define this. - - - - - - - - - - - - - - - - - - - - - Alan Fargusson Sun Microsystems alanf@sun.com ..!sun!alanf