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

            Bug ID: 41361
           Summary: [AMDGPU][MC][GFX9] Incorrect parsing of op_sel* and
                    neg_* modifiers
           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 supports the following syntax variants for these modifiers:
  STRING:[X]
  STRING:[X,Y]
  STRING:[X,Y,Z]
  STRING:[X,Y,Z,W]

The 4th variant must end with "]", however assembler accepts any token.
Examples of GFX9 code which trigger no errors:

  v_max3_f16 v5, v1, v2, v3 op_sel:[1,1,1,1,
  v_max3_f16 v5, v1, v2, v3 op_sel:[1,1,1,1[
  v_max3_f16 v5, v1, v2, v3 op_sel:[1,1,1,1 1

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