[llvm-bugs] [Bug 41298] New: [AMDGPU][MC] Incorrect parsing of NAME:VALUE modifiers

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Mar 29 04:54:57 PDT 2019


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

            Bug ID: 41298
           Summary: [AMDGPU][MC] Incorrect parsing of NAME:VALUE modifiers
           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

When VALUE is specified as a constant expression which starts with a "-"
followed by a number, the negation operation is applied to the whole expression
rather than to the first number.

An example:

    // GFX9
    global_load_dword v1, v[3:4], off offset:-1+1

Assembling this instruction results in the same code as the following:

    // GFX9
    global_load_dword v1, v[3:4], off offset:-2

A similar bug 41156 manifests itself in another context.

-- 
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/20190329/b34cf7e3/attachment.html>


More information about the llvm-bugs mailing list