This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

optimization/10362: Optimization with constant shifts and compares fails on MIPS


>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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]