From: Neal Frager Date: Fri, 13 Oct 2023 07:28:56 +0000 (+0100) Subject: gas: testsuite: microblaze: Add new bit-field tests X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1a5e256f2000af69e4b6c50fa5f7714074499edf;p=binutils-gdb.git 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 Signed-off-by: Michael J. Eager --- diff --git a/gas/testsuite/gas/microblaze/allinsn.d b/gas/testsuite/gas/microblaze/allinsn.d index b454fdb30fc..312e3fb3805 100644 --- a/gas/testsuite/gas/microblaze/allinsn.d +++ b/gas/testsuite/gas/microblaze/allinsn.d @@ -47,3 +47,9 @@ Disassembly of section .text: 00000040 : 40: 900001e2 swaph r0, r0 + +00000044 : + 44: 64004041 bsrli r0, r0, 1 + +00000048 : + 48: 64008041 bsrli r0, r0, 1 diff --git a/gas/testsuite/gas/microblaze/allinsn.s b/gas/testsuite/gas/microblaze/allinsn.s index ffe91ca8eb0..98df189bef5 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