[llvm-bugs] [Bug 39319] New: [AMDGPU][MC] SOP2 instructions accept 2 different literals

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Oct 16 03:16:27 PDT 2018


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

            Bug ID: 39319
           Summary: [AMDGPU][MC] SOP2 instructions accept 2 different
                    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

SOP2 instructions cannot use more than one 32-bit literal. When two different
literals are specified, assembler should detect this and trigger an error. 

However, current implementation encodes the first literal and silently ignores
the second one. For example:

    s_add_u32 s1, 0x123, 0x1234

is assembled without errors and result in the following code:

    0xff,0xff,0x01,0x80,0x23,0x01,0x00,0x00

-- 
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/20181016/c7452441/attachment.html>


More information about the llvm-bugs mailing list