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

            Bug ID: 35963
           Summary: [AMDGPU][MC] Incorrect parsing of image 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

Image modifiers are parsed incorrectly which is clear from the output (VI).
Disassembled code differs from the original. For example, the following
instructions are assembled to the same binary code:

image_atomic_add v5, v1, s[8:15] dmask:0x1
image_atomic_add v5, v1, s[8:15] unorm
image_atomic_add v5, v1, s[8:15] glc
image_atomic_add v5, v1, s[8:15] slc


0x00,0x01,0x48,0xf0,0x01,0x01,0x02,0x00

When disassembled, the code is:

image_atomic_add v5, v1, s[8:15] dmask:0x1

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