From: Dmitry Selyutin Date: Sat, 14 May 2022 11:24:53 +0000 (+0000) Subject: ppc-opc: support fsins and fsins. instructions X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4a2874d8ac2f3d4a7eb93f237939c5b23bfd3635;p=binutils-gdb.git ppc-opc: support fsins and fsins. instructions --- diff --git a/gas/testsuite/gas/ppc/fsins.d b/gas/testsuite/gas/ppc/fsins.d new file mode 100644 index 00000000000..d126878ad77 --- /dev/null +++ b/gas/testsuite/gas/ppc/fsins.d @@ -0,0 +1,41 @@ +#as: -mfuture +#objdump: -dr -Mfuture + +.*: file format .* + + +Disassembly of section \.text: + +0+ <\.text>: + 0: ec 00 04 1c fsins f0,f0 + 4: ec 00 04 1d fsins. f0,f0 + 8: ec 00 54 1c fsins f0,f10 + c: ec 00 54 1d fsins. f0,f10 + 10: ec 00 ac 1c fsins f0,f21 + 14: ec 00 ac 1d fsins. f0,f21 + 18: ec 00 fc 1c fsins f0,f31 + 1c: ec 00 fc 1d fsins. f0,f31 + 20: ed 40 04 1c fsins f10,f0 + 24: ed 40 04 1d fsins. f10,f0 + 28: ed 40 54 1c fsins f10,f10 + 2c: ed 40 54 1d fsins. f10,f10 + 30: ed 40 ac 1c fsins f10,f21 + 34: ed 40 ac 1d fsins. f10,f21 + 38: ed 40 fc 1c fsins f10,f31 + 3c: ed 40 fc 1d fsins. f10,f31 + 40: ee a0 04 1c fsins f21,f0 + 44: ee a0 04 1d fsins. f21,f0 + 48: ee a0 54 1c fsins f21,f10 + 4c: ee a0 54 1d fsins. f21,f10 + 50: ee a0 ac 1c fsins f21,f21 + 54: ee a0 ac 1d fsins. f21,f21 + 58: ee a0 fc 1c fsins f21,f31 + 5c: ee a0 fc 1d fsins. f21,f31 + 60: ef e0 04 1c fsins f31,f0 + 64: ef e0 04 1d fsins. f31,f0 + 68: ef e0 54 1c fsins f31,f10 + 6c: ef e0 54 1d fsins. f31,f10 + 70: ef e0 ac 1c fsins f31,f21 + 74: ef e0 ac 1d fsins. f31,f21 + 78: ef e0 fc 1c fsins f31,f31 + 7c: ef e0 fc 1d fsins. f31,f31 diff --git a/gas/testsuite/gas/ppc/fsins.s b/gas/testsuite/gas/ppc/fsins.s new file mode 100644 index 00000000000..b8f8a7243af --- /dev/null +++ b/gas/testsuite/gas/ppc/fsins.s @@ -0,0 +1,32 @@ +fsins 0,0 +fsins. 0,0 +fsins 0,10 +fsins. 0,10 +fsins 0,21 +fsins. 0,21 +fsins 0,31 +fsins. 0,31 +fsins 10,0 +fsins. 10,0 +fsins 10,10 +fsins. 10,10 +fsins 10,21 +fsins. 10,21 +fsins 10,31 +fsins. 10,31 +fsins 21,0 +fsins. 21,0 +fsins 21,10 +fsins. 21,10 +fsins 21,21 +fsins. 21,21 +fsins 21,31 +fsins. 21,31 +fsins 31,0 +fsins. 31,0 +fsins 31,10 +fsins. 31,10 +fsins 31,21 +fsins. 31,21 +fsins 31,31 +fsins. 31,31 diff --git a/gas/testsuite/gas/ppc/ppc.exp b/gas/testsuite/gas/ppc/ppc.exp index a2e23a2c6af..e46511bb27b 100644 --- a/gas/testsuite/gas/ppc/ppc.exp +++ b/gas/testsuite/gas/ppc/ppc.exp @@ -153,3 +153,5 @@ run_dump_test "rop-checks" run_dump_test "dcbt" run_dump_test "pr27676" run_dump_test "raw" + +run_dump_test "fsins" diff --git a/opcodes/ppc-opc.c b/opcodes/ppc-opc.c index 7d19af760e7..874e76b2fa8 100644 --- a/opcodes/ppc-opc.c +++ b/opcodes/ppc-opc.c @@ -8911,6 +8911,9 @@ const struct powerpc_opcode powerpc_opcodes[] = { {"dsub", XRC(59,514,0), X_MASK, POWER6, PPCVLE, {FRT, FRA, FRB}}, {"dsub.", XRC(59,514,1), X_MASK, POWER6, PPCVLE, {FRT, FRA, FRB}}, +{"fsins", XRC(59,526,0), XRA_MASK, DRAFT, PPCVLE, {FRT, FRB}}, +{"fsins.", XRC(59,526,1), XRA_MASK, DRAFT, PPCVLE, {FRT, FRB}}, + {"ddiv", XRC(59,546,0), X_MASK, POWER6, PPCVLE, {FRT, FRA, FRB}}, {"ddiv.", XRC(59,546,1), X_MASK, POWER6, PPCVLE, {FRT, FRA, FRB}},