This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
target/7250: __ashrdi3 returns wrong value on 32 bit hppa
- From: sje at cup dot hp dot com
- To: gcc-gnats at gcc dot gnu dot org
- Date: 9 Jul 2002 20:31:42 -0000
- Subject: target/7250: __ashrdi3 returns wrong value on 32 bit hppa
- Reply-to: sje at cup dot hp dot com
>Number: 7250
>Category: target
>Synopsis: __ashrdi3 returns wrong value on 32 bit hppa
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Jul 09 13:36:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: sje@cup.hp.com
>Release: 3.0.2
>Organization:
>Environment:
hppa1.1-hp-hpux11.00
>Description:
Arithmatic right shift of long long (64 bit) value returns wrong value. See attached file (x.c) for a program that
fails with -O0 (with call to __ashrdi3) but works with optimization because the call is optimized away.
>How-To-Repeat:
Compile x.c and run it *without* optimization on a 32 bit PA machine. With optimization it works.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: audio/x-aiff; name="x.c"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="x.c"
bWFpbiAoKQp7Cglsb25nIGxvbmcgaTsKCWludCBqOwoJaSA9IDE7CglqID0gMDsKCWkgPj49IGo7
CglwcmludGYoIiVkXG4iLGkpOwp9Cg==