gas: testsuite: microblaze: Add new bit-field tests
authorNeal Frager <neal.frager@amd.com>
Fri, 13 Oct 2023 07:28:56 +0000 (08:28 +0100)
committerMichael J. Eager <eager@eagercon.com>
Tue, 17 Oct 2023 22:57:24 +0000 (15:57 -0700)
This patch adds new gas tests for the
microblaze bsefi and bsifi instructions.

Signed-off-by: Neal Frager <neal.frager@amd.com>
Signed-off-by: Michael J. Eager <eager@eagercon.com>
gas/testsuite/gas/microblaze/allinsn.d
gas/testsuite/gas/microblaze/allinsn.s

index b454fdb30fcbde00a74c201d12c5e08620b47b59..312e3fb380586ef2969f35a57fcdaef5704e8a2d 100644 (file)
@@ -47,3 +47,9 @@ Disassembly of section .text:
 
 00000040 <swaph>:
   40:  900001e2        swaph   r0, r0
+
+00000044 <bsefi>:
+  44:  64004041        bsrli   r0, r0, 1
+
+00000048 <bsifi>:
+  48:  64008041        bsrli   r0, r0, 1
index ffe91ca8eb0ac6d4d1f75bd4239d6f75a2857d0a..98df189bef5a0cee32a8e3ddbbed39645d057514 100644 (file)
@@ -54,4 +54,11 @@ swapb:
     .global swaph
 swaph:
     swaph r0,r0
-
+    .text
+    .global bsefi
+bsefi:
+    bsefi r0,r0,1,1
+    .text
+    .global bsifi
+bsifi:
+    bsifi r0,r0,1,1