From 1a5e256f2000af69e4b6c50fa5f7714074499edf Mon Sep 17 00:00:00 2001 From: Neal Frager Date: Fri, 13 Oct 2023 08:28:56 +0100 Subject: [PATCH] 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 --- gas/testsuite/gas/microblaze/allinsn.d | 6 ++++++ gas/testsuite/gas/microblaze/allinsn.s | 9 ++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) 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 -- 2.30.2