[llvm-bugs] [Bug 41156] New: [AMDGPU][MC][GFX9] Invalid handling of "-" before expressions

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Mar 20 11:05:20 PDT 2019


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

            Bug ID: 41156
           Summary: [AMDGPU][MC][GFX9] Invalid handling of "-" before
                    expressions
           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

Constant expressions started with "-" followed by a symbol are evaluated
incorrectly when used with VOP opcodes. In these cases the "-" sign is simply
ignored.

For example, the sequence

    .set foo, 1
    v_mul_f32 v0, -foo+2, v2  // -foo+2 = 1?

results in the same code as the following:

    v_mul_f32 v0, 3, v2

-- 
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/20190320/5810c8ce/attachment.html>


More information about the llvm-bugs mailing list