Re: [AARCH64] fnma4: scalar vs vector and placement of neg.

2017-06-29 Thread Richard Sandiford
Andrew Pinski writes: > Hi, > I was looking into why we don't produce fmls with a scalar register > as the last argument but I found a difference in how fnma4 is > described in RTL which I think is causing the missed optimization. > Look at the scalar version: > > (define_insn "fnma4" > [(set

[AARCH64] fnma4: scalar vs vector and placement of neg.

2017-06-27 Thread Andrew Pinski
Hi, I was looking into why we don't produce fmls with a scalar register as the last argument but I found a difference in how fnma4 is described in RTL which I think is causing the missed optimization. Look at the scalar version: (define_insn "fnma4" [(set (match_operand:GPF_F16 0 "register_op