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][AArch64] Support zero-extended move to FP register


On 9/28/18 9:29 AM, Wilco Dijkstra wrote:
> +  [(set (match_operand:DI 0 "register_operand" "=r,r,w,w")
> +        (zero_extend:DI (match_operand:SI 1 "nonimmediate_operand" "r,m,r,m")))]
>    ""
>    "@
>     uxtw\t%0, %w1
> -   ldr\t%w0, %1"
> -  [(set_attr "type" "extend,load_4")]
> +   ldr\t%w0, %1
> +   fmov\t%s0, %w1

If you're going to add moves r->w, why not also go ahead and add w->r.
There are also HImode fmov zero-extensions, fwiw.


r~


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