diff options
| author | Joel Sing <joel@sing.id.au> | 2025-09-12 20:54:49 +1000 |
|---|---|---|
| committer | Joel Sing <joel@sing.id.au> | 2025-09-16 08:43:10 -0700 |
| commit | e2cfc1eb3affe8bcdfeca4a9f0a2d7902dbb940f (patch) | |
| tree | 81de0c326310136913139790ec9f144c6288e6bd /src/cmd/internal/pkgpattern/pkgpattern.go | |
| parent | 281c632e6e3df290d4b0f92440cba10903a0295f (diff) | |
| download | go-e2cfc1eb3affe8bcdfeca4a9f0a2d7902dbb940f.tar.xz | |
cmd/internal/obj/riscv: improve handling of float point moves
Translate moves from an integer register to a floating point register, or
from a floating point register to an integer register, to the appropriate
move instruction (i.e. FMVXW/FMVWX/FMVXD/FMVDX).
Add support for MOVF with a constant - we previously added support for MOVD
but not for MOVF. Add special handling for 0.0, which we can translate to
a move from the zero register to a floating point register (leveraging the
above mentioned change).
Change-Id: If8df2f5610e69b4ec0af85efb884951024685f5b
Reviewed-on: https://go-review.googlesource.com/c/go/+/703216
Reviewed-by: Meng Zhuo <mengzhuo1203@gmail.com>
Reviewed-by: Mark Freeman <markfreeman@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Mark Ryan <markdryan@rivosinc.com>
Diffstat (limited to 'src/cmd/internal/pkgpattern/pkgpattern.go')
0 files changed, 0 insertions, 0 deletions
