]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/{asm,compile}: add fused multiply-add support on riscv64
authorMichael Munday <mike.munday@lowrisc.org>
Wed, 17 Feb 2021 15:00:34 +0000 (15:00 +0000)
committerMichael Munday <mike.munday@lowrisc.org>
Wed, 1 Sep 2021 21:17:04 +0000 (21:17 +0000)
commitea51e223c28babc530df475497de0be4579b5e86
tree89b32b7b4577614d24cff4d7b8b5a206b14c9e99
parent711e1c8224f033ec1d95cdf84465b57b052e8948
cmd/{asm,compile}: add fused multiply-add support on riscv64

Add support to the assembler for F[N]M{ADD,SUB}[SD] instructions.
Argument order is:

  OP RS1, RS2, RS3, RD

Also, add support for the FMA intrinsic to the compiler. Automatic
FMA matching is left to a future CL.

Change-Id: I47166c7393b2ab6bfc2e42aa8c1a8997c3a071b3
Reviewed-on: https://go-review.googlesource.com/c/go/+/293030
Trust: Michael Munday <mike.munday@lowrisc.org>
Run-TryBot: Michael Munday <mike.munday@lowrisc.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Joel Sing <joel@sing.id.au>
src/cmd/asm/internal/asm/asm.go
src/cmd/asm/internal/asm/testdata/riscv64.s
src/cmd/compile/internal/riscv64/ssa.go
src/cmd/compile/internal/ssa/gen/RISCV64.rules
src/cmd/compile/internal/ssa/gen/RISCV64Ops.go
src/cmd/compile/internal/ssa/opGen.go
src/cmd/compile/internal/ssa/rewriteRISCV64.go
src/cmd/compile/internal/ssagen/ssa.go
src/cmd/internal/obj/riscv/obj.go
test/codegen/math.go