ppc/svp64: support fmvis instruction
authorDmitry Selyutin <ghostmansd@gmail.com>
Sun, 28 May 2023 22:04:55 +0000 (01:04 +0300)
committerDmitry Selyutin <ghostmansd@gmail.com>
Tue, 14 Nov 2023 19:10:31 +0000 (22:10 +0300)
gas/testsuite/gas/ppc/fmvis.d [new file with mode: 0644]
gas/testsuite/gas/ppc/fmvis.s [new file with mode: 0644]
gas/testsuite/gas/ppc/ppc.exp
opcodes/ppc-opc.c

diff --git a/gas/testsuite/gas/ppc/fmvis.d b/gas/testsuite/gas/ppc/fmvis.d
new file mode 100644 (file)
index 0000000..2251852
--- /dev/null
@@ -0,0 +1,12 @@
+#as: -mlibresoc
+#objdump: -dr -Mlibresoc
+
+.*:     file format .*
+
+
+Disassembly of section \.text:
+0+ <\.text>:
+.*:\s+(06 00 00 58|58 00 00 06)\s+fmvis\s+f0,0
+.*:\s+(06 00 e0 5b|5b e0 00 06)\s+fmvis\s+f31,0
+.*:\s+(c7 7f 1f 58|58 1f 7f c7)\s+fmvis\s+f0,32767
+.*:\s+(06 80 00 58|58 00 80 06)\s+fmvis\s+f0,-32768
diff --git a/gas/testsuite/gas/ppc/fmvis.s b/gas/testsuite/gas/ppc/fmvis.s
new file mode 100644 (file)
index 0000000..ab15b16
--- /dev/null
@@ -0,0 +1,4 @@
+fmvis 0, 0
+fmvis 31, 0
+fmvis 0, 32767
+fmvis 0, -32768
index 689503d7c20c3806ea03cfd0fd47777a455c80ea..053a73ac401ff0e2000c39085fa635b857c03dd7 100644 (file)
@@ -161,3 +161,4 @@ run_dump_test "svstep"
 run_dump_test "svshape"
 run_dump_test "svremap"
 run_dump_test "svindex"
+run_dump_test "fmvis"
index 8afd12faff97c32fd8243c1bd81698448f9d3b1d..8366931a2851af4f5445d1974dc8bc71d263a432 100644 (file)
@@ -7016,6 +7016,8 @@ const struct powerpc_opcode powerpc_opcodes[] = {
 {"rlmi",       M(22,0),        M_MASK,      M601,      PPCVLE,         {RA, RS, RB, MBE, ME}},
 {"rlmi.",      M(22,1),        M_MASK,      M601,      PPCVLE,         {RA, RS, RB, MBE, ME}},
 
+{"fmvis",      DX(22,3),       DX_MASK,        SVP64,  PPCVLE, {FRS, DXD}},
+
 {"svstep",     SVL(22,19,0),   SVL_MASK,       SVP64,  PPCVLE, {RT, SVi, vf}},
 {"svstep.",    SVL(22,19,1),   SVL_MASK,       SVP64,  PPCVLE, {RT, SVi, vf}},