]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/asm: add double precision comparision testcases for riscv64
authorMeng Zhuo <mengzhuo@iscas.ac.cn>
Fri, 12 Sep 2025 06:23:23 +0000 (14:23 +0800)
committerMeng Zhuo <mengzhuo@iscas.ac.cn>
Tue, 16 Sep 2025 01:00:48 +0000 (18:00 -0700)
Change-Id: If8e03dfdb332a22ec9c6a0021d7e7955520f3ddc
Reviewed-on: https://go-review.googlesource.com/c/go/+/702136
Reviewed-by: Mark Freeman <markfreeman@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Mark Ryan <markdryan@rivosinc.com>
Reviewed-by: Joel Sing <joel@sing.id.au>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
src/cmd/asm/internal/asm/testdata/riscv64.s

index 30f9989982f643a6ffd81cd45ddae62bf8930d6a..b216149a19dc8cd5d2db6fb9473fdc7dc8c4c45a 100644 (file)
@@ -358,6 +358,11 @@ start:
        FNMSUBD F1, F2, F3, F4                          // 4b82201a
        FNMADDD F1, F2, F3, F4                          // 4f82201a
 
+       // 21.6: Double-Precision Floating-Point Compare Instructions
+       FEQD    F0, F1, X7                              // d3a300a2
+       FLTD    F0, F1, X7                              // d39300a2
+       FLED    F0, F1, X7                              // d38300a2
+
        // 21.7: Double-Precision Floating-Point Classify Instruction
        FCLASSD F0, X5                                  // d31200e2