Path: utzoo!telly!ddsw1!lll-winken!uunet!tut.cis.ohio-state.edu!ATHENA.MIT.EDU!raeburn From: raeburn@ATHENA.MIT.EDU (Ken Raeburn) Newsgroups: gnu.gcc.bug Subject: negated shift size not sign-extending Message-ID: <8901011050.AA02152@MULTICS.MIT.EDU> Date: 1 Jan 89 10:50:17 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 22 using gcc 1.32 vax, -O -fstrength-reduce -fcombine-regs int foo (long number) { return number >>= 8; } generates: #NO_APP gcc_compiled.: .text .align 1 .globl _foo _foo: .word 0x0 ashl $248,4(ap),r0 ret The 248 should probably be -8.... -- Ken