diff mbox series

[v6,2/2] gas: testsuite: microblaze: Add new bit-field tests

Message ID 20231013072856.638728-2-neal.frager@amd.com
State New
Headers show
Series [v6,1/2] opcodes: microblaze: Add new bit-field instructions | expand

Commit Message

Frager, Neal Oct. 13, 2023, 7:28 a.m. UTC
This patch adds new gas tests for the
microblaze bsefi and bsifi instructions.

Signed-off-by: Neal Frager <neal.frager@amd.com>
---
 gas/testsuite/gas/microblaze/allinsn.d | 6 ++++++
 gas/testsuite/gas/microblaze/allinsn.s | 9 ++++++++-
 2 files changed, 14 insertions(+), 1 deletion(-)

Comments

Michael Eager Oct. 17, 2023, 10:58 p.m. UTC | #1
On 10/13/23 00:28, Neal Frager wrote:
> This patch adds new gas tests for the
> microblaze bsefi and bsifi instructions.
> 
> Signed-off-by: Neal Frager <neal.frager@amd.com>
> ---
>   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 <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 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

Committed.
diff mbox series

Patch

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 <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 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