http://sourceware.org/bugzilla/show_bug.cgi?id=15220

             Bug #: 15220
           Summary: MIPS/Loongson 2F: Wrong opcodes for
                    madd.ps/msub.ps/nmadd.ps/nmsub.ps
           Product: binutils
           Version: 2.23
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gas
        AssignedTo: unassig...@sourceware.org
        ReportedBy: aaro.koski...@iki.fi
    Classification: Unclassified


opcodes/mips-opc.c has wrong opcodes for the following INSN_LOONGSON_2F / IL2F
instructions:

madd.ps
msub.ps
nmadd.ps
nmsub.ps

The format field (25:21) should be 22 instead of 11.

This is probably caused by a documentation error in Loongson2FUserGuide
(http://dev.lemote.com/files/resource/documents/Loongson/ls2f/). The table in
page 96 shows the format for paired-single is 11, while the table in the page
157 tells it's 22.

Based on tests on 2F HW, 22 is the correct one.

The bug was originally discovered by Mark H Weaver and reported
here:
https://groups.google.com/forum/?fromgroups=#!topic/loongson-dev/VZ1yR9Tsr7o

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to