[Nasm-bugs] [Bug 3392752] New: Pextrb and Pinsrb accept different arguments

noreply-nasm at dev.nasm.us noreply-nasm at dev.nasm.us
Thu May 6 18:11:59 PDT 2021


https://bugzilla.nasm.us/show_bug.cgi?id=3392752

            Bug ID: 3392752
           Summary: Pextrb and Pinsrb accept different arguments
           Product: NASM
           Version: 2.13.xx
          Hardware: All
                OS: All
            Status: OPEN
          Severity: normal
          Priority: Medium
         Component: Assembler
          Assignee: nobody at nasm.us
          Reporter: philiprbrenan at gmail.com
                CC: chang.seok.bae at intel.com, gorcunov at gmail.com,
                    hpa at zytor.com, nasm-bugs at nasm.us
     Obtained from: Binary from nasm.us

Pextrb will accept this:

  Pextrb rsi, xmm0, 0 ; Extract lowest byte in xmm0 and put it in rsi           

Pinserb (according to nasm) requires a byte register:

  Pinsrb xmm0, sil, 0 ; Set lowest byte in xmm0

However, page: 

https://hjlebbink.github.io/x86doc/html/PINSRB_PINSRD_PINSRQ.html

insdicates that any r64 register will do.  Is it possible that nasm is
reporting "invalid combination of operands" incorrectly here"?

-- 
You are receiving this mail because:
You are watching all bug changes.
You are on the CC list for the bug.


More information about the Nasm-bugs mailing list