This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/49781] [x32] Unnecessary lea in x32 mode
- From: "hjl.tools at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 09 Aug 2011 21:21:35 +0000
- Subject: [Bug target/49781] [x32] Unnecessary lea in x32 mode
- Auto-submitted: auto-generated
- References: <bug-49781-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49781
--- Comment #42 from H.J. Lu <hjl.tools at gmail dot com> 2011-08-09 21:21:35 UTC ---
(In reply to comment #41)
> (In reply to comment #39)
> > Created attachment 24967 [details]
> > Patch that recognizes addresses, zero-extended with AND
> >
> > Attached patch adds recognision of addresses, zero-extended with AND.
> >
> > The patch fixes gcc-target/i386/pr43766.c testcase.
> >
> > H.J., can you please test it on x32 ?
>
> It seems to generate more leal for gcc.dg/torture/pr47744-2.c
> compiled with
>
> -mx32 -O3 -std=gnu99 -ftree-vectorize -funroll-loops
It also caused:
spawn -ignore SIGHUP /export/build/gnu/gcc-x32/build-x86_64-linux/gcc/xgcc
-B/export/build/gnu/gcc-x32/build-x86_64-linux/gcc/
/export/gnu/import/git/gcc-x32/gcc/testsuite/gcc.c-torture/execute/builtin-prefetch-4.c
-w -O2 -lm -mx32 -o
/export/build/gnu/gcc-x32/build-x86_64-linux/gcc/testsuite/gcc2/builtin-prefetch-4.x2^M
/export/gnu/import/git/gcc-x32/gcc/testsuite/gcc.c-torture/execute/builtin-prefetch-4.c:
In function âpreinc_glob_ptrâ:^M
/export/gnu/import/git/gcc-x32/gcc/testsuite/gcc.c-torture/execute/builtin-prefetch-4.c:67:1:
internal compiler error: output_operand: invalid expression as operand^M
Please submit a full bug report,^M
with preprocessed source if appropriate.^M
See <http://gcc.gnu.org/bugs.html> for instructions.^M
compiler exited with status 1