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: unassignedb...@nondot.org
          Reporter: dpreobrazhen...@luxoft.com
                CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to