diff options
| author | Joel Sing <joel@sing.id.au> | 2022-08-28 02:32:06 +1000 |
|---|---|---|
| committer | Joel Sing <joel@sing.id.au> | 2022-09-02 20:14:16 +0000 |
| commit | 646c3eee06fa4b1b869e8183977aa46d4d4eb646 (patch) | |
| tree | 14e90bb8314fa3ae0c325eed7447d282ca8a2fe3 /src/syscall/exec_linux_test.go | |
| parent | 9154d4a2a4952e35cb091fc254c9f5f1d3f0d409 (diff) | |
| download | go-646c3eee06fa4b1b869e8183977aa46d4d4eb646.tar.xz | |
cmd/compile: negate comparision with FNES/FNED on riscv64
The FNES and FNED instructions are pseudo-instructions, which the
assembler expands to FEQS/NEG or FEQD/NEG - if we're comparing the
result via a branch instruction, we can avoid an instruction by
negating both the branch comparision and the floating point
comparision.
This only removes a handful of instructions from the Go binary,
however, it will provide benefit to floating point intensive code.
Change-Id: I4e3124440b7659acc4d9bc9948b755a4900a422f
Reviewed-on: https://go-review.googlesource.com/c/go/+/426261
Reviewed-by: Meng Zhuo <mzh@golangcn.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Joel Sing <joel@sing.id.au>
Run-TryBot: Meng Zhuo <mzh@golangcn.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Heschi Kreinick <heschi@google.com>
Diffstat (limited to 'src/syscall/exec_linux_test.go')
0 files changed, 0 insertions, 0 deletions
