[llvm-bugs] [Bug 35963] New: [AMDGPU][MC] Incorrect parsing of image modifiers

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Jan 16 04:24:50 PST 2018


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


More information about the llvm-bugs mailing list