]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: add support for Abs and Copysign intrinsics on riscv64
authorMichael Munday <mike.munday@lowrisc.org>
Thu, 9 Sep 2021 22:47:14 +0000 (23:47 +0100)
committerMichael Munday <mike.munday@lowrisc.org>
Fri, 10 Sep 2021 10:45:59 +0000 (10:45 +0000)
commitc69f5c0d7632381dfc6dc78f0af4f54e7673176d
treeaa08f8077659f7401bd07cc11c7c90d06730c093
parent2091bd3f26e5143bd050833b3558893e1bc34625
cmd/compile: add support for Abs and Copysign intrinsics on riscv64

Also, add the FABSS and FABSD pseudo instructions to the assembler.
The compiler could use FSGNJX[SD] directly but there doesn't seem
to be much advantage to doing so and the pseudo instructions are
easier to understand.

Change-Id: Ie8825b8aa8773c69cc4f07a32ef04abf4061d80d
Reviewed-on: https://go-review.googlesource.com/c/go/+/348989
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/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/anames.go
src/cmd/internal/obj/riscv/cpu.go
src/cmd/internal/obj/riscv/obj.go
test/codegen/math.go