This is the mail archive of the 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 middle-end/21237] [4.0/4.1 Regression] unnecessary __cmpdi2 usage?

------- Additional Comments From pinskia at gcc dot gnu dot org  2005-04-26 23:07 -------
Confirmed, reduced testcase:
int g(long long a, long long b)
  a -= b;
  return !a;

You were looking at the wrong function as we inline a function into cryptcompress_truncate which 
causes this.

One issue is when we go and expand (a - b) == 0, we expand it to cmpdi for some reason instead of 
inlining cmpdi.

           What    |Removed                     |Added
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
  GCC build triplet|i686-pld-linux              |
   GCC host triplet|i686-pld-linux              |
 GCC target triplet|ppc-pld-linux               |powerpc-*-*
   Last reconfirmed|0000-00-00 00:00:00         |2005-04-26 23:07:07
               date|                            |
            Summary|unnecessary __cmpdi2 usage? |[4.0/4.1 Regression]
                   |                            |unnecessary __cmpdi2 usage?
   Target Milestone|---                         |4.0.1

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