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

            Bug ID: 48239
           Summary: [AMDGPU][MC] Poor error messages for invalid literals
           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

Assembler reports an "invalid literal" in different cases: for instructions
which do not support literals and when more than one literal is specified. This
error message should be corrected to describe the issue more clearly.

These messages also do not show correct error position.

Examples:

    // GFX10:
    v_add_f64 v[0:1], 1.23456, -abs(1.2345)

    error: invalid literal operand
    v_add_f64 v[0:1], 1.23456, -abs(1.2345)
    ^

    // GFX9
    v_add_i16 v5, v1, 0.5

    // error: invalid literal operand
    v_add_i16 v5, v1, 0.5
    ^

-- 
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