[Bug rtl-optimization/15792] New: missed subreg optimization

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Jun 3 04:27:00 GMT 2004


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



More information about the Gcc-bugs mailing list