[llvm-bugs] [Bug 30827] New: [mc] No checks for immediate operands size

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Oct 28 11:04:11 PDT 2016


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

            Bug ID: 30827
           Summary: [mc] No checks for immediate operands size
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: AMDGPU
          Assignee: unassignedbugs at nondot.org
          Reporter: i.am.perminov at gmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

If immediate operand doesn't fit into instruction assembler just silently
truncates it. For example:
s_mulk_i32 s2, 0x8000 * 4

Assembler will produce following isa without any warning or error:
s_mulk_i32 s2, 0x0000  // 00000000077C: B7820000

We need to check such cases and show appropriate message (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/20161028/f1f23ce6/attachment.html>


More information about the llvm-bugs mailing list