aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorDmitry Selyutin <ghostmansd@gmail.com>2022-07-25 16:10:18 +0300
committerAlan Modra <amodra@gmail.com>2022-08-11 18:38:29 +0930
commitbaf97ef24f92a14f6872107adb2f08feed882be1 (patch)
tree33c4ed1371f562dbbc847e51c407d608e84eb7ec /gas
parent4c388a8e2c65fc997e7b84f9c5f1f5608e807455 (diff)
downloadgdb-baf97ef24f92a14f6872107adb2f08feed882be1.zip
gdb-baf97ef24f92a14f6872107adb2f08feed882be1.tar.gz
gdb-baf97ef24f92a14f6872107adb2f08feed882be1.tar.bz2
ppc/svp64: support svshape instruction
https://libre-soc.org/openpower/sv/ https://libre-soc.org/openpower/sv/remap/#svshape https://libre-soc.org/openpower/isa/simplev/
Diffstat (limited to 'gas')
-rw-r--r--gas/testsuite/gas/ppc/ppc.exp1
-rw-r--r--gas/testsuite/gas/ppc/svshape.d13
-rw-r--r--gas/testsuite/gas/ppc/svshape.s5
3 files changed, 19 insertions, 0 deletions
diff --git a/gas/testsuite/gas/ppc/ppc.exp b/gas/testsuite/gas/ppc/ppc.exp
index d126d03..ea1c591 100644
--- a/gas/testsuite/gas/ppc/ppc.exp
+++ b/gas/testsuite/gas/ppc/ppc.exp
@@ -157,3 +157,4 @@ run_dump_test "raw"
run_dump_test "setvl"
run_dump_test "svstep"
+run_dump_test "svshape"
diff --git a/gas/testsuite/gas/ppc/svshape.d b/gas/testsuite/gas/ppc/svshape.d
new file mode 100644
index 0000000..8244741
--- /dev/null
+++ b/gas/testsuite/gas/ppc/svshape.d
@@ -0,0 +1,13 @@
+#as: -mlibresoc
+#objdump: -dr -Mlibresoc
+
+.*: file format .*
+
+
+Disassembly of section \.text:
+0+ <\.text>:
+.*: (19 00 e0 5b|5b e0 00 19) svshape 32,1,1,0,0
+.*: (19 00 1f 58|58 1f 00 19) svshape 1,32,1,0,0
+.*: (19 f8 00 58|58 00 f8 19) svshape 1,1,32,0,0
+.*: (99 07 00 58|58 00 07 99) svshape 1,1,1,15,0
+.*: (59 00 00 58|58 00 00 59) svshape 1,1,1,0,1
diff --git a/gas/testsuite/gas/ppc/svshape.s b/gas/testsuite/gas/ppc/svshape.s
new file mode 100644
index 0000000..c83373b
--- /dev/null
+++ b/gas/testsuite/gas/ppc/svshape.s
@@ -0,0 +1,5 @@
+svshape 32,1,1,0,0
+svshape 1,32,1,0,0
+svshape 1,1,32,0,0
+svshape 1,1,1,15,0
+svshape 1,1,1,0,1