This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/83123] Int compare - different asm code for different return type
- From: "segher at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 23 Nov 2017 17:34:08 +0000
- Subject: [Bug rtl-optimization/83123] Int compare - different asm code for different return type
- Auto-submitted: auto-generated
- References: <bug-83123-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83123
--- Comment #2 from Segher Boessenkool <segher at gcc dot gnu.org> ---
In the first case (with the extend to SImode) the extend is combined
with the AND, to an AND in SImode. After that, the 3-insn combination
of the two shifts with the AND is something combine knows how to split.
In the second case this of course does not happen.