[llvm-bugs] [Bug 40643] New: [AMDGPU][MC] Missing register size check for VOP3 operands

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Feb 7 04:30:43 PST 2019


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

            Bug ID: 40643
           Summary: [AMDGPU][MC] Missing register size check for VOP3
                    operands
           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 instructions do not check register size for operands with modifiers. The
following code should trigger errors, but it is assembled without any issues:

  v_add_f32 v0, s[0:1], v0       // src0 should be a 32-bit register
  v_add_f32 v0, v[0:1], v0       // src0 should be a 32-bit register
  v_add_f64 v[0:1], s0, v[0:1]   // src0 should be a 64-bit register
  v_add_f64 v[0:1], v0, v[0:1]   // src0 should be a 64-bit register

-- 
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/20190207/f681010a/attachment.html>


More information about the llvm-bugs mailing list