aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/asm
diff options
context:
space:
mode:
authorJoel Sing <joel@sing.id.au>2020-02-21 03:03:57 +1100
committerJoel Sing <joel@sing.id.au>2020-03-15 08:13:55 +0000
commit32dbccde78562763b6d5cc847d32c5f94fa6cab4 (patch)
tree94de89ca39f33a6a815eaeab1536eb24adc2b8d7 /src/cmd/asm
parent10635921e511ef82b5eabe98928e42901fd3f822 (diff)
downloadgo-32dbccde78562763b6d5cc847d32c5f94fa6cab4.tar.xz
cmd/internal/obj/riscv: add FCLASSS/FCLASSD instructions
Add support for floating-point classification instructions. Change-Id: I64463d477b3db0cca16ff7bced64f154011ef4cb Reviewed-on: https://go-review.googlesource.com/c/go/+/220542 Reviewed-by: Cherry Zhang <cherryyz@google.com>
Diffstat (limited to 'src/cmd/asm')
-rw-r--r--src/cmd/asm/internal/asm/testdata/riscvenc.s8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/cmd/asm/internal/asm/testdata/riscvenc.s b/src/cmd/asm/internal/asm/testdata/riscvenc.s
index aae862628d..06158153d8 100644
--- a/src/cmd/asm/internal/asm/testdata/riscvenc.s
+++ b/src/cmd/asm/internal/asm/testdata/riscvenc.s
@@ -225,6 +225,9 @@ start:
FLTS F0, F1, X7 // d39300a0
FLES F0, F1, X7 // d38300a0
+ // 11.9: Single-Precision Floating-Point Classify Instruction
+ FCLASSS F0, X5 // d31200e0
+
// 12.3: Double-Precision Load and Store Instructions
FLD (X5), F0 // 07b00200
FLD 4(X5), F0 // 07b04200
@@ -257,6 +260,9 @@ start:
FMVXD F0, X5 // d30200e2
FMVDX X5, F0 // 538002f2
+ // 12.6: Double-Precision Floating-Point Classify Instruction
+ FCLASSD F0, X5 // d31200e2
+
// Privileged ISA
// 3.2.1: Environment Call and Breakpoint
@@ -302,7 +308,7 @@ start:
// These jumps can get printed as jumps to 2 because they go to the
// second instruction in the function (the first instruction is an
// invisible stack pointer adjustment).
- JMP start // JMP 2 // 6ff01fc7
+ JMP start // JMP 2 // 6ff09fc6
JMP (X5) // 67800200
JMP 4(X5) // 67804200