]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/riscv: support MOVD with floating point constants
authorJoel Sing <joel@sing.id.au>
Mon, 1 Jul 2024 14:31:53 +0000 (00:31 +1000)
committerJoel Sing <joel@sing.id.au>
Sat, 15 Feb 2025 03:41:30 +0000 (19:41 -0800)
commitd7c242a19ae0fd9adae1c6d6222df2f1d93646da
tree70e0bf8a11dbebcac50a841eafe456482f90e2be
parent77343fa646c5d2a01fb3cbeabda1b3ff008c3b03
cmd/internal/obj/riscv: support MOVD with floating point constants

Currently, we only support loading of values from memory (or other
registers). Add floating point constant support to MOVD. This is
implemented by storing the floating point constant to a symbol,
which is then loaded into the floating point register.

Change-Id: I6db242d27f606f0d5d084a3ab93538698d3a4f8c
Reviewed-on: https://go-review.googlesource.com/c/go/+/631876
Reviewed-by: Meng Zhuo <mengzhuo1203@gmail.com>
Reviewed-by: Mark Ryan <markdryan@rivosinc.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/asm/internal/asm/testdata/riscv64.s
src/cmd/internal/obj/riscv/obj.go