This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/72853] gcc/testsuite/gcc.c-torture/execute/20021120-1.c generates incorrect stxssp op with -mcpu=power9
- From: "meissner at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 09 Aug 2016 22:30:51 +0000
- Subject: [Bug target/72853] gcc/testsuite/gcc.c-torture/execute/20021120-1.c generates incorrect stxssp op with -mcpu=power9
- Auto-submitted: auto-generated
- References: <bug-72853-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72853
Michael Meissner <meissner at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #39090|0 |1
is obsolete| |
--- Comment #4 from Michael Meissner <meissner at gcc dot gnu.org> ---
Created attachment 39092
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=39092&action=edit
Proposed patch to fix the problem #2
I was looking at the wrong line of assembly in the previous patch.
This patches adds a check for the address being offsettable. In the movdf
patterns, the ISA 3.0 d-form (reg+offset) address alternatives (stxsd, lxsd)
come before the ISA 2.06 x-form (reg+reg) alternatives (stxsdx, lxsdx). So if
an indexed address using the Altivec regsiters is emitted when -mcpu=power9 is
used, the compiler will emit an illegal instruction.