[Patch] MIPS opcodes: fix transposed FS and FT in vadda and vmsuba

Piotr P. Stefaniak pstef@freebsd.org
Sat Jul 25 15:37:17 GMT 2026


Of the 36 three-operand ACC-destination VU0 macro-mode entries in
`opcodes/mips-opc.c`, all but two list FS before FT.  The two exceptions
are vadda and vmsuba.

For `vmsuba` this reversal silently changes results. The PS2 multiplier
is not symmetric in its two source fields: the Booth recoder consumes FT
while FS is shifted, so `vf[fs] * vf[ft]` and `vf[ft] * vf[fs]` differ
by one ULP.

Patch attached. If it doesn't meet your standards, please treat this
email as a Problem Report.

Piotr
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-MIPS-opcodes-fix-transposed-FS-and-FT-in-vadda.patch
Type: text/x-diff
Size: 32862 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20260725/cba4ff80/attachment-0001.bin>


More information about the Binutils mailing list