This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH], Optimize (double)vec_extract(n) on PowerPC


On Mon, Oct 31, 2016 at 05:25:56PM -0400, Michael Meissner wrote:
> +(define_insn "vsx_xvcvsxwdp_df"
> +  [(set (match_operand:DF 0 "vsx_register_operand" "=ws")
> +	(unspec:DF [(match_operand:V4SI 1 "vsx_register_operand" "wa")]
> +		   UNSPEC_VSX_CVSXWDP))]
> +  "VECTOR_UNIT_VSX_P (V2DFmode)"
> +  "xvcvsxwdp %x0,%x1"
> +  [(set_attr "type" "vecdouble")])

I think the condition here is a pasto?  It probably works, but it isn't
exactly clear what it means here.

> +;; Opimize <type> f = (<type>) vec_extract (vi, <n>)

Typo (optimize).

> +;; where <type> is a hardware supported binary floating point type
> +;; that is not double

Full stop.


Looks fine otherwise.  Please apply with those things taking care of.

Thanks,


Segher


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]