[llvm-bugs] [Bug 33171] New: [AMDGPU][MC][GFX9] Invalid encoding of flat_scratch* in SDWA opcodes

via llvm-bugs llvm-bugs at lists.llvm.org
Thu May 25 08:46:04 PDT 2017


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

            Bug ID: 33171
           Summary: [AMDGPU][MC][GFX9] Invalid encoding of flat_scratch*
                    in SDWA opcodes
           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

GFX9 SDWA implementation does not account for special registers like
flat_scratch which have different encoding on CI and VI+.

An example of failing test:

   v_ceil_f16_sdwa v5, flat_scratch_lo dst_sel:DWORD dst_unused:UNUSED_PAD
src0_sel:DWORD
   // CHECK: [0xf9,0x8a,0x0a,0x7e,0x66,0x06,0x86,0x06]

Assembler currently encodes flat_scratch_lo as if it were an SGPR:

    [0xf9,0x8a,0x0a,0x7e,0x66,0x06,0x06,0x06]

In other words, the encoding is the same as for the following instruction:

    v_ceil_f16_sdwa v5, v102 dst_sel:DWORD dst_unused:UNUSED_PAD src0_sel:DWORD

-- 
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/20170525/a04d66cf/attachment-0001.html>


More information about the llvm-bugs mailing list