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

            Bug ID: 35716
           Summary: [AMDGPU][MC] Incorrect handling of negative
                    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

A minus sign before a symbol is silently ignored.
For example, the following code

    t=1
    s_sub_u32 s0, s0, -t
    t=-1
    s_sub_u32 s0, s0, -t

translates to:

        .text
    t = 1
        s_sub_u32 s0, s0, 1      ; encoding: [0x00,0x81,0x80,0x80]
    t = -1
        s_sub_u32 s0, s0, -1     ; encoding: [0x00,0xc1,0x80,0x80]

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to