[llvm-bugs] [Bug 51725] New: [AMDGPU][MC][GFX10] image_atomic_fcmpswap has incorrect dst size with dmask:0xf

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Sep 2 12:15:29 PDT 2021


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

            Bug ID: 51725
           Summary: [AMDGPU][MC][GFX10] image_atomic_fcmpswap has
                    incorrect dst size with dmask:0xf
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: AMDGPU
          Assignee: unassignedbugs at nondot.org
          Reporter: d-pre at mail.ru
                CC: llvm-bugs at lists.llvm.org

An example of failed test:

  image_atomic_fcmpswap v[1:4], v2, s[12:19] dmask:0xf dim:SQ_RSRC_IMG_1D unorm

sp3 assembles this instruction fine and produces the correct code:

  0x00,0x1f,0x74,0xf0,0x02,0x01,0x03,0x00

This code may be decoded by llvm AMDGPU disassembler but with incorrect result:

  image_atomic_fcmpswap v1, v2, s[12:19] dmask:0xf dim:SQ_RSRC_IMG_1D unorm

-- 
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/20210902/08cc2654/attachment.html>


More information about the llvm-bugs mailing list