On Mon, Nov 23, 2015 at 07:04:33PM -0500, David Edelsohn wrote: > I would prefer that you reverse the meaning of "Fv" and "Fv2". "Fv" > corresponds to VSX2 and "Fv2" corresponds to VSX, which is confusing > for anyone trying to make sense of this in the future. > > Also, the lrounddi2 pattern should use "Fv" not "wa" from my > original patch. And the ChangeLog entry should list lrounddi2. > > Okay with those changes, after the cause of the SEGV is diagnosed and fixed. I checked in the following patch. Note, the segfault is independent of the patch. I will look into it shortly. I will back port this patch to GCC 5 as we discussed. 2015-11-24 David Edelsohn Michael Meissner * config/rs6000/rs6000.md (UNSPEC_XSRDPI): New unspec. (Fv2): New mode attribute to be used when ISA 2.06 instructions are used on SF/DF values. (abs2_fpr): Use instead of . (nabs2_fpr): Likewise. (neg2_fpr): Likewise. (copysign3_fcpsgn): Likewise. (smax3_vsx): Likewise. (smin3_vsx): Likewise. (floatsi2_lfiwax): Likewise. (floatunssi2_lfiwz): Likewise. (fctiwz_): Likewise. (fctiwuz_): Likewise. (btrunc2): Likewise. (ceil2): Likewise. (floor2): Likewise. (xsrdpi): Add support for the lround function. (lrounddi2): Likewise. -- Michael Meissner, IBM IBM, M/S 2506R, 550 King Street, Littleton, MA 01460-6245, USA email: meissner@linux.vnet.ibm.com, phone: +1 (978) 899-4797