This is the mail archive of the gcc-bugs@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]

[Bug tree-optimization/14341] Missed comparision optimization (jump threading related)


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-12-22 05:33 -------
(In reply to comment #9)
> The first two testcases seem to be OK.  All calls to f are f(1).
> 
> The last testcase is probably not what Andrew had in mind.
> Specifically, "i" in the innermost scope isn't initialized.
> 
> Andrew, can you confirm (and close if you think these are fixed)?

It is not fixed for me on PPC:
        cmpw cr7,r30,r28
        crnot 30,29
        mfcr r3
        rlwinm r3,r3,31,1
        bl L_f$stub

r3 is where the first argrument is stored.

but you are right about the last testcase being wrong.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
 GCC target triplet|                            |powerpc-darwin


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14341


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