public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/22077] New: vec_all_eq does not produce good result
@ 2005-06-15 14:10 pinskia at gcc dot gnu dot org
  2005-06-15 14:14 ` [Bug target/22077] " pinskia at gcc dot gnu dot org
                   ` (14 more replies)
  0 siblings, 15 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-06-15 14:10 UTC (permalink / raw)
  To: gcc-bugs

int foo(vector float x, vector float y) {
        if (vec_all_eq(x,y)) return 3245; 
        else return 12;
}

Right now we produce:
        vcmpeqfp. v3,v2,v3
        li r3,3245
        mfcr r0
        rlwinm r0,r0,25,1
        cmpwi cr7,r0,0
        bnelr+ cr7
        li r3,12
        blr

But we should be able to produce something like the following:
        vcmpeqfp. v3,v2,v3
        cmpwi cr6,r0,0
        li r3,3245
        bnelr+ cr7
        li r3,12
        blr

This might be because of there is no such thing as BI modes on powerpc but I don't know for sure.

-- 
           Summary: vec_all_eq does not produce good result
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: minor
          Priority: P2
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: powerpc*-*


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


^ permalink raw reply	[flat|nested] 19+ messages in thread
[parent not found: <bug-22077-6528@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2007-01-18 11:42 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-15 14:10 [Bug target/22077] New: vec_all_eq does not produce good result pinskia at gcc dot gnu dot org
2005-06-15 14:14 ` [Bug target/22077] " pinskia at gcc dot gnu dot org
2005-06-15 16:01 ` pinskia at gcc dot gnu dot org
2005-06-15 22:11 ` pinskia at gcc dot gnu dot org
2005-06-15 22:21 ` pinskia at gcc dot gnu dot org
2005-06-15 22:39 ` [Bug target/22077] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
2005-06-15 22:42 ` pinskia at gcc dot gnu dot org
2005-06-15 22:53 ` pinskia at gcc dot gnu dot org
2005-06-15 23:07 ` pinskia at gcc dot gnu dot org
2005-06-15 23:10 ` pinskia at gcc dot gnu dot org
2005-06-18 23:26 ` roger at eyesopen dot com
2005-06-20 17:43 ` pinskia at gcc dot gnu dot org
2005-06-20 18:00 ` cvs-commit at gcc dot gnu dot org
2005-06-20 18:03 ` [Bug target/22077] [4.0 " pinskia at gcc dot gnu dot org
2005-08-29 15:10 ` bonzini at gcc dot gnu dot org
2005-09-27 16:23 ` mmitchel at gcc dot gnu dot org
     [not found] <bug-22077-6528@http.gcc.gnu.org/bugzilla/>
2006-03-11  3:17 ` mmitchel at gcc dot gnu dot org
2006-04-19 15:03 ` pinskia at gcc dot gnu dot org
2007-01-18 11:42 ` gdr at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).