diff options
| author | Xiaolin Zhao <zhaoxiaolin@loongson.cn> | 2024-04-10 11:37:56 +0800 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2024-08-02 14:33:57 +0000 |
| commit | e7619216888cdd25e445d06bc424532a922fdf94 (patch) | |
| tree | eac27b3da2b399fd3d792e00d547753181e93159 /src/cmd/asm | |
| parent | 9abd11440c5fa027304d6cda051fc0a30b6b430b (diff) | |
| download | go-e7619216888cdd25e445d06bc424532a922fdf94.tar.xz | |
cmd/internal/obj/loong64: add support for instructions F{MAX/NIN}.{S/D}
Go asm syntax:
F{MAX/MIN}{F/D} FK, FJ, FD
Equivalent platform assembler syntax:
f{max/min}.{s/d} fd, fj, fk
Ref: https://loongson.github.io/LoongArch-Documentation/LoongArch-Vol1-EN.html
Change-Id: Ib11fed1fe3700be5ebba33b5818661c4071b7b7c
Reviewed-on: https://go-review.googlesource.com/c/go/+/590676
Reviewed-by: abner chenc <chenguoqi@loongson.cn>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: abner chenc <chenguoqi@loongson.cn>
Diffstat (limited to 'src/cmd/asm')
| -rw-r--r-- | src/cmd/asm/internal/asm/testdata/loong64enc1.s | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/cmd/asm/internal/asm/testdata/loong64enc1.s b/src/cmd/asm/internal/asm/testdata/loong64enc1.s index e648d178dd..e16bd78fee 100644 --- a/src/cmd/asm/internal/asm/testdata/loong64enc1.s +++ b/src/cmd/asm/internal/asm/testdata/loong64enc1.s @@ -269,3 +269,12 @@ lable2: AMMAXDBVU R14, (R13), R12 // acb97038 AMMINDBWU R14, (R13), R12 // ac397138 AMMINDBVU R14, (R13), R12 // acb97138 + + FMINF F4, F5, F6 // a6900a01 + FMINF F4, F5 // a5900a01 + FMIND F4, F5, F6 // a6100b01 + FMIND F4, F5 // a5100b01 + FMAXF F4, F5, F6 // a6900801 + FMAXF F4, F5 // a5900801 + FMAXD F4, F5, F6 // a6100901 + FMAXD F4, F5 // a5100901 |
