[llvm-bugs] [Bug 35433] New: [AMDGPU][MC][DISASSEMBLER][GFX9] Incorrect decoding of GLOBAL/SCRATCH instructions

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Nov 27 06:28:44 PST 2017


https://bugs.llvm.org/show_bug.cgi?id=35433

            Bug ID: 35433
           Summary: [AMDGPU][MC][DISASSEMBLER][GFX9] Incorrect decoding of
                    GLOBAL/SCRATCH instructions
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: AMDGPU
          Assignee: unassignedbugs at nondot.org
          Reporter: dpreobrazhensky at luxoft.com
                CC: llvm-bugs at lists.llvm.org

Global atomic instructions are decoded incorrectly, e.g.

    0x00,0x80,0x08,0xdd,0x02,0x04,0x00,0x00

is decoded as

    global_atomic_add v[2:3], v4s[0:1]

should be:

    global_atomic_add v[2:3], v4, s[0:1]

Also, 13-bit signed offsets in GLOBAL/SCRATCH opcodes are decoded as unsigned,
e.g.

    0xfc,0x5f,0x68,0xdc,0x00,0x00,0x00,0x00

is decoded as 

    scratch_store_short off, v0, s0 offset:8188

should be:

    scratch_store_short off, v0, s0 offset:-4096

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20171127/eaa45fd1/attachment.html>


More information about the llvm-bugs mailing list