]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
aarch64: Add tests for fabd, urecpe and ursqrt
authorAlice Carlotti <alice.carlotti@arm.com>
Sun, 20 Apr 2025 22:25:11 +0000 (23:25 +0100)
committerAlice Carlotti <alice.carlotti@arm.com>
Fri, 9 May 2025 19:27:19 +0000 (20:27 +0100)
Other instructions in the encoding group are tested in advsimd-fp16.d,
so add these instructions to the existing test file.

gas/testsuite/gas/aarch64/advsimd-fp16.d
gas/testsuite/gas/aarch64/advsimd-fp16.s

index 4efa9e8050ba0748b777aadc74c47e771d436a26..ffac0d3a93b9f69b07d256dced53f0af040cdefb 100644 (file)
@@ -69,6 +69,13 @@ Disassembly of section \.text:
  *[0-9a-f]+:   0ec31441        fsub    v1\.4h, v2\.4h, v3\.4h
  *[0-9a-f]+:   4ec01400        fsub    v0\.8h, v0\.8h, v0\.8h
  *[0-9a-f]+:   4ec31441        fsub    v1\.8h, v2\.8h, v3\.8h
+ *[0-9a-f]+:   6ee3d441        fabd    v1.2d, v2.2d, v3.2d
+ *[0-9a-f]+:   2ea3d441        fabd    v1.2s, v2.2s, v3.2s
+ *[0-9a-f]+:   6ea3d441        fabd    v1.4s, v2.4s, v3.4s
+ *[0-9a-f]+:   2ec01400        fabd    v0.4h, v0.4h, v0.4h
+ *[0-9a-f]+:   2ec31441        fabd    v1.4h, v2.4h, v3.4h
+ *[0-9a-f]+:   6ec01400        fabd    v0.8h, v0.8h, v0.8h
+ *[0-9a-f]+:   6ec31441        fabd    v1.8h, v2.8h, v3.8h
  *[0-9a-f]+:   4e63dc41        fmulx   v1\.2d, v2\.2d, v3\.2d
  *[0-9a-f]+:   0e23dc41        fmulx   v1\.2s, v2\.2s, v3\.2s
  *[0-9a-f]+:   4e23dc41        fmulx   v1\.4s, v2\.4s, v3\.4s
@@ -323,6 +330,10 @@ Disassembly of section \.text:
  *[0-9a-f]+:   6e21c820        fcvtau  v0\.4s, v1\.4s
  *[0-9a-f]+:   2e79c820        fcvtau  v0\.4h, v1\.4h
  *[0-9a-f]+:   6e79c820        fcvtau  v0\.8h, v1\.8h
+ *[0-9a-f]+:   0ea1c820        urecpe  v0.2s, v1.2s
+ *[0-9a-f]+:   4ea1c820        urecpe  v0.4s, v1.4s
+ *[0-9a-f]+:   2ea1c820        ursqrte v0.2s, v1.2s
+ *[0-9a-f]+:   6ea1c820        ursqrte v0.4s, v1.4s
  *[0-9a-f]+:   4e61d820        scvtf   v0\.2d, v1\.2d
  *[0-9a-f]+:   0e21d820        scvtf   v0\.2s, v1\.2s
  *[0-9a-f]+:   4e21d820        scvtf   v0\.4s, v1\.4s
index 6b86ded00c1ae836de6732ab579012d01fd367dc..2a09351aafd52290c6089a6772fcbd72938fb4e8 100644 (file)
@@ -1,5 +1,6 @@
-/* simdhp.s Test file for AArch64 half-precision floating-point
-   vector instructions.  */
+/* Test file for AArch64 half-precision floating-point vector instructions.
+   This is also the only test for the single- and double-precison variants of
+   most of these instructions.  */
 
        /* Vector three-same.  */
 
@@ -24,6 +25,7 @@
        three_same fadd
        three_same faddp
        three_same fsub
+       three_same fabd
        three_same fmulx
        three_same fmul
        three_same fcmeq
        \op     v0.8h, v1.8h
        .endm
 
+       .macro tworeg_misc_s, op
+       \op     v0.2s, v1.2s
+       \op     v0.4s, v1.4s
+       .endm
+
        tworeg_misc fabs
        tworeg_misc fneg
 
 
        tworeg_misc fcvtas
        tworeg_misc fcvtau
+       tworeg_misc_s urecpe
+       tworeg_misc_s ursqrte
 
        tworeg_misc scvtf
        tworeg_misc ucvtf