From: Dmitry Selyutin Date: Sun, 28 May 2023 22:04:55 +0000 (+0300) Subject: ppc/svp64: support fishmv instruction X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1c65fc90921b001eae165f727ea672459825340e;p=binutils-gdb.git ppc/svp64: support fishmv instruction --- diff --git a/gas/testsuite/gas/ppc/fishmv.d b/gas/testsuite/gas/ppc/fishmv.d new file mode 100644 index 00000000000..5c7a6605104 --- /dev/null +++ b/gas/testsuite/gas/ppc/fishmv.d @@ -0,0 +1,12 @@ +#as: -mlibresoc +#objdump: -dr -Mlibresoc + +.*: file format .* + + +Disassembly of section \.text: +0+ <\.text>: +.*:\s+(16 00 00 58|16 00 00 58)\s+fishmv\s+f0,0 +.*:\s+(16 00 e0 5b|16 00 e0 5b)\s+fishmv\s+f31,0 +.*:\s+(d7 7f 1f 58|d7 7f 1f 58)\s+fishmv\s+f0,32767 +.*:\s+(16 80 00 58|16 80 00 58)\s+fishmv\s+f0,-32768 diff --git a/gas/testsuite/gas/ppc/fishmv.s b/gas/testsuite/gas/ppc/fishmv.s new file mode 100644 index 00000000000..c463fce6f64 --- /dev/null +++ b/gas/testsuite/gas/ppc/fishmv.s @@ -0,0 +1,4 @@ +fishmv 0, 0 +fishmv 31, 0 +fishmv 0, 32767 +fishmv 0, -32768 diff --git a/gas/testsuite/gas/ppc/ppc.exp b/gas/testsuite/gas/ppc/ppc.exp index 053a73ac401..63503b66788 100644 --- a/gas/testsuite/gas/ppc/ppc.exp +++ b/gas/testsuite/gas/ppc/ppc.exp @@ -162,3 +162,4 @@ run_dump_test "svshape" run_dump_test "svremap" run_dump_test "svindex" run_dump_test "fmvis" +run_dump_test "fishmv" diff --git a/opcodes/ppc-opc.c b/opcodes/ppc-opc.c index 8366931a285..3cfb95a5999 100644 --- a/opcodes/ppc-opc.c +++ b/opcodes/ppc-opc.c @@ -7017,6 +7017,7 @@ const struct powerpc_opcode powerpc_opcodes[] = { {"rlmi.", M(22,1), M_MASK, M601, PPCVLE, {RA, RS, RB, MBE, ME}}, {"fmvis", DX(22,3), DX_MASK, SVP64, PPCVLE, {FRS, DXD}}, +{"fishmv", DX(22,11), 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}},