[llvm-bugs] [Bug 43483] New: [AMDGPU][MC][GFX10] Incorrect disassembly of FLAT SCRATCH instructions with negative offset

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Sep 27 09:03:24 PDT 2019


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

            Bug ID: 43483
           Summary: [AMDGPU][MC][GFX10] Incorrect disassembly of FLAT
                    SCRATCH instructions with negative offset
           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

Opcodes with negative offset are decoded incorrectly - the offset value is
invalid. An example:

    0xff,0x4f,0x30,0xdc,0x00,0x00,0x02,0x05

Should be decoded as follows:

    scratch_load_dword v5, off, s2 offset:-1

Actual result is:

    scratch_load_dword v5, off, s2 offset:2047

-- 
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/20190927/d3b06741/attachment.html>


More information about the llvm-bugs mailing list