optimization/10362: Optimization with constant shifts and compares fails on MIPS
dberger@motorola.com
dberger@motorola.com
Wed Apr 9 18:46:00 GMT 2003
>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@motorola.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:
More information about the Gcc-bugs
mailing list