This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/68282] Optimization fails to remove unnecessary sign extension instruction
- From: "stanshebs at earthlink dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 11 Nov 2015 16:19:09 +0000
- Subject: [Bug rtl-optimization/68282] Optimization fails to remove unnecessary sign extension instruction
- Auto-submitted: auto-generated
- References: <bug-68282-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68282
--- Comment #3 from Stan Shebs <stanshebs at earthlink dot net> ---
Sorry, left out a detail - the cltq output is compilation as C++. Compiled as
a C file, the code does have the andl as noted. (I'm sure there are good
reasons why the *exact* *same* source text ends up with two completely
different asm sequences, ahem.)