[llvm-bugs] [Bug 40903] New: [AMDGPU][MC][GFX7][GFX8] src0 of v_movrelsd_b32 should accept vgprs only

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Feb 28 07:47:13 PST 2019


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

            Bug ID: 40903
           Summary: [AMDGPU][MC][GFX7][GFX8] src0 of v_movrelsd_b32 should
                    accept vgprs only
           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

In contrast with other 'movrels' opcodes, v_movrelsd_b32 accepts an
sgpr/constant as src0. This is incorrect. These operands are not supported by
SP3 for v_movrelsd_b32.

Compare:

    v_movrels_b32 v0, v0  // ok
    v_movrels_b32 v0, s0  // error
    v_movrels_b32 v0, 0   // error

    v_movrelsd_b32 v0, v0  // ok
    v_movrelsd_b32 v0, s0  // ok (but should trigger an error)
    v_movrelsd_b32 v0, 0   // ok (but should trigger an error)

-- 
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/20190228/20cc1805/attachment-0001.html>


More information about the llvm-bugs mailing list