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 rtl-optimization/15792] New: missed subreg optimization


int test(unsigned long long x) {
int g = (int)x|((int)(x>>32));
  if (g) gh();
}
int test1(unsigned long long x) {
  if (x) gh();
}

These two functions should produce the same asm but test produces better asm.
I noticed this when looking PR 11873.

-- 
           Summary: missed subreg optimization
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: enhancement
          Priority: P2
         Component: rtl-optimization
        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: i686-pc-linux-gnu
OtherBugsDependingO 11873
             nThis:


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


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