This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
optimization/10362: Optimization with constant shifts and compares fails on MIPS
- From: dberger at motorola dot com
- To: gcc-gnats at gcc dot gnu dot org
- Date: 9 Apr 2003 18:43:54 -0000
- Subject: optimization/10362: Optimization with constant shifts and compares fails on MIPS
- Reply-to: dberger at motorola dot com
>Number: 10362
>Category: optimization
>Synopsis: Optimization with constant shifts and compares fails on MIPS
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Apr 09 18:46:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: dberger at motorola dot com
>Release: 3.2-3
>Organization:
>Environment:
Cross compiler for embedded MIPS processor
>Description:
Compiling the attached program for a MIPS with -O2 generate incorrect code for the first comparison. It should be using 224 (14*16), but instead generates 209 (14*16 - 16 + 1). Pretty weird.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: