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: [email protected]
          Reporter: [email protected]
                CC: [email protected]

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.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to