This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/21237] [4.0/4.1 Regression] unnecessary __cmpdi2 usage?
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Apr 2005 23:07:08 -0000
- Subject: [Bug middle-end/21237] [4.0/4.1 Regression] unnecessary __cmpdi2 usage?
- References: <20050426164457.21237.pluto@pld-linux.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21237