[Nasm-bugs] [Bug 3392559] New: KMOVB/W/D/Q does not work properly when using RIP relative addressing

noreply-nasm at gorcunov.org noreply-nasm at gorcunov.org
Tue Feb 19 09:12:27 PST 2019


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

            Bug ID: 3392559
           Summary: KMOVB/W/D/Q does not work properly when using RIP
                    relative addressing
           Product: NASM
           Version: unspecified
          Hardware: All
                OS: Linux
            Status: OPEN
          Severity: normal
          Priority: Medium
         Component: Assembler
          Assignee: nobody at nasm.us
          Reporter: pablo.de.lara.guarch at intel.com
                CC: chang.seok.bae at intel.com, gorcunov at gmail.com,
                    hpa at zytor.com, nasm-bugs at nasm.us
     Obtained from: Built from git using configure

When trying to load any value into the mask registers k0-k7, using RIP relative
addressing, the value is not set properly.

For instance, the following instruction does not set the value correctly:

kmovq k1, [MASK]


Whereas, the following instructions do set it right (loading the data in a GP
register and moving to the mask register afterwards):

mov rax, [MASK]
kmovq k1, rax

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


More information about the Nasm-bugs mailing list