This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/15792] New: missed subreg optimization
- 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: 3 Jun 2004 04:27:31 -0000
- Subject: [Bug rtl-optimization/15792] New: missed subreg optimization
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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