On 7/6/16 12:53 PM, David Edelsohn wrote:
On Tue, Jul 5, 2016 at 10:26 PM, Peter Bergner <berg...@vnet.ibm.com> wrote:
The following patch fixes a bug where we do not disable POWER9 vector dform
addressing when we compile for POWER9 but without VSX support. This manifested
itself with us trying to use dform addressing with altivec loads/stores
which is illegal, leading to an ICE.
Peter,
DFORM definitely should be disabled without VSX, but the patch seems
incomplete. If VSX and DFORM are enabled, and GCC chooses an Altivec
instruction alternative in a pattern, what is to prevent the
generation of a DFORM address?
That's a good question. I'm currently attempting to find out why we
seem to think reg+offset is ok. With -mcpu=power8 -mno-vsx, we use
reg+reg addressing right from expand. With -mcpu=power9 -mno-vsx,
we use reg+offset right from expand. I'll see where the disconnect
is happening.
Peter