[llvm-bugs] [Bug 41361] New: [AMDGPU][MC][GFX9] Incorrect parsing of op_sel* and neg_* modifiers

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Apr 3 09:17:38 PDT 2019


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: unassignedbugs at nondot.org
          Reporter: dpreobrazhensky at luxoft.com
                CC: llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190403/f8628541/attachment.html>


More information about the llvm-bugs mailing list