Article View: gnu.gcc.bug
Article #2105negated shift size not sign-extending
From: Ken Raeburn
Date: Sun, 01 Jan 1989 10:50
Date: Sun, 01 Jan 1989 10:50
22 lines
707 bytes
707 bytes
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
Technical Details
Message-ID:
<8901011050.AA02152@MULTICS.MIT.EDU>Path:
arc1-ca.pugleaf.net!utzoo!telly!ddsw1!lll-winken!uunet!tut.cis.ohio-state.edu!ATHENA.MIT.EDU!raeburnShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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