[llvm-bugs] [Bug 48597] New: [AMDGPU][MC][GFX8+] VOP3 v_interp incorrectly handles constants and literals

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Dec 25 03:24:06 PST 2020


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

            Bug ID: 48597
           Summary: [AMDGPU][MC][GFX8+] VOP3 v_interp incorrectly handles
                    constants and literals
           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

VOP3 INTERP instructions with src3 being a constant or a literal result in
/*invalid immediate*/.

Examples:

        v_interp_p2_f16 v5, v2, attr0.x, 0
        v_interp_p2_f16 v5, v2, attr0.x, 1
        v_interp_p2_f16 v5, v2, attr0.x, 1234
        v_interp_p2_f16 v5, v2, attr0.x, 1.0

These instructions are assembled fine but operands cannot be printed:

        v_interp_p2_f16 v5, v2, attr0.x, /*invalid immediate*/
        v_interp_p2_f16 v5, v2, attr0.x, /*invalid immediate*/
        v_interp_p2_f16 v5, v2, attr0.x, /*invalid immediate*/
        v_interp_p2_f16 v5, v2, attr0.x, /*invalid immediate*/

VOP3 INTERP instructions with src1 being a constant or a literal result in an
exception.

An example of failed test:

        v_interp_p2_f16 v5, 0, attr0.x, v0

Note that sp3 does not allow constants and literals for src operands of these
instructions.

-- 
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/20201225/b8130624/attachment.html>


More information about the llvm-bugs mailing list