aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorNeal Frager <neal.frager@amd.com>2023-10-13 08:28:56 +0100
committerMichael J. Eager <eager@eagercon.com>2023-10-17 15:57:24 -0700
commit1a5e256f2000af69e4b6c50fa5f7714074499edf (patch)
treeea3ae24e4eaf5fe9343fd3acb69ebb8e97ff239d /gas
parentc96ceed9dce7617f270aa4742645706e535f74b7 (diff)
downloadgdb-1a5e256f2000af69e4b6c50fa5f7714074499edf.zip
gdb-1a5e256f2000af69e4b6c50fa5f7714074499edf.tar.gz
gdb-1a5e256f2000af69e4b6c50fa5f7714074499edf.tar.bz2
gas: testsuite: microblaze: Add new bit-field tests
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>
Diffstat (limited to 'gas')
-rw-r--r--gas/testsuite/gas/microblaze/allinsn.d6
-rw-r--r--gas/testsuite/gas/microblaze/allinsn.s9
2 files changed, 14 insertions, 1 deletions
diff --git a/gas/testsuite/gas/microblaze/allinsn.d b/gas/testsuite/gas/microblaze/allinsn.d
index b454fdb..312e3fb 100644
--- a/gas/testsuite/gas/microblaze/allinsn.d
+++ b/gas/testsuite/gas/microblaze/allinsn.d
@@ -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
diff --git a/gas/testsuite/gas/microblaze/allinsn.s b/gas/testsuite/gas/microblaze/allinsn.s
index ffe91ca..98df189 100644
--- a/gas/testsuite/gas/microblaze/allinsn.s
+++ b/gas/testsuite/gas/microblaze/allinsn.s
@@ -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