Re: [PATCH] V10 patch #5, Fix codegen bug with vector extracts using a variable offset & PC-relative address

2019-12-18 Thread Michael Meissner
On Tue, Dec 17, 2019 at 12:02:46PM -0600, Segher Boessenkool wrote: > > ;; Variable V2DI/V2DF extract > > (define_insn_and_split "vsx_extract__var" > > - [(set (match_operand: 0 "gpc_reg_operand" "=v,wa,r") > > - (unspec: [(match_operand:VSX_D 1 "input_operand" "v,m,m") > > -

Re: [PATCH] V10 patch #5, Fix codegen bug with vector extracts using a variable offset & PC-relative address

2019-12-17 Thread Segher Boessenkool
Hi! On Wed, Dec 11, 2019 at 07:48:39PM -0500, Michael Meissner wrote: > This patch fixes a bug with vector extracts using a PC-relative address and a > variable offset with using -mcpu=future. > > Consider the code: > > #include > > static vector double vd; > vector double

[PATCH] V10 patch #5, Fix codegen bug with vector extracts using a variable offset & PC-relative address

2019-12-11 Thread Michael Meissner
This patch fixes a bug with vector extracts using a PC-relative address and a variable offset with using -mcpu=future. Consider the code: #include static vector double vd; vector double *p = double get (unsigned int n) { return vec_extract