From: Dmitry Selyutin Date: Sun, 28 May 2023 22:04:57 +0000 (+0300) Subject: ppc: support ffmadds instruction X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1178f77f256fae48491597f4bdc86b5c964a9384;p=binutils-gdb.git ppc: support ffmadds instruction --- diff --git a/gas/testsuite/gas/ppc/ffmadds.d b/gas/testsuite/gas/ppc/ffmadds.d new file mode 100644 index 00000000000..176d3232e0b --- /dev/null +++ b/gas/testsuite/gas/ppc/ffmadds.d @@ -0,0 +1,14 @@ +#as: -mlibresoc +#objdump: -dr -Mlibresoc + +.*: file format .* + + +Disassembly of section \.text: +0+ <\.text>: +.*:\s+(ef e0 00 0a|0a 00 e0 ef)\s+ffmadds\s+f31,f0,f0 +.*:\s+(ec 1f 00 0a|0a 00 1f ec)\s+ffmadds\s+f0,f31,f0 +.*:\s+(ec 00 f8 0a|0a f8 00 ec)\s+ffmadds\s+f0,f0,f31 +.*:\s+(ef e0 00 0b|0b 00 e0 ef)\s+ffmadds.\s+f31,f0,f0 +.*:\s+(ec 1f 00 0b|0b 00 1f ec)\s+ffmadds.\s+f0,f31,f0 +.*:\s+(ec 00 f8 0b|0b f8 00 ec)\s+ffmadds.\s+f0,f0,f31 diff --git a/gas/testsuite/gas/ppc/ffmadds.s b/gas/testsuite/gas/ppc/ffmadds.s new file mode 100644 index 00000000000..dbb450028c0 --- /dev/null +++ b/gas/testsuite/gas/ppc/ffmadds.s @@ -0,0 +1,6 @@ +ffmadds 31,0,0 +ffmadds 0,31,0 +ffmadds 0,0,31 +ffmadds. 31,0,0 +ffmadds. 0,31,0 +ffmadds. 0,0,31 diff --git a/gas/testsuite/gas/ppc/ppc.exp b/gas/testsuite/gas/ppc/ppc.exp index a41f5e961a1..fb26dc57146 100644 --- a/gas/testsuite/gas/ppc/ppc.exp +++ b/gas/testsuite/gas/ppc/ppc.exp @@ -176,3 +176,4 @@ run_dump_test "dsrd" run_dump_test "maddedus" run_dump_test "minmax" run_dump_test "ffmsubs" +run_dump_test "ffmadds" diff --git a/opcodes/ppc-opc.c b/opcodes/ppc-opc.c index e76b83db120..8b7174c649c 100644 --- a/opcodes/ppc-opc.c +++ b/opcodes/ppc-opc.c @@ -9188,6 +9188,9 @@ const struct powerpc_opcode powerpc_opcodes[] = { {"ffmsubs", A(59,4,0), AFRC_MASK, SFFS, PPCVLE, {FRT, FRA, FRB}}, {"ffmsubs.", A(59,4,1), AFRC_MASK, SFFS, PPCVLE, {FRT, FRA, FRB}}, +{"ffmadds", A(59,5,0), AFRC_MASK, SFFS, PPCVLE, {FRT, FRA, FRB}}, +{"ffmadds.", A(59,5,1), AFRC_MASK, SFFS, PPCVLE, {FRT, FRA, FRB}}, + {"fdivs", A(59,18,0), AFRC_MASK, PPC, PPCEFS|PPCVLE, {FRT, FRA, FRB}}, {"fdivs.", A(59,18,1), AFRC_MASK, PPC, PPCEFS|PPCVLE, {FRT, FRA, FRB}},