[llvm-bugs] [Bug 32711] New: [mc] vmcnt() expcnt() lgkmcnt() helpers to check that value fits into appropriate field

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Apr 19 08:04:41 PDT 2017


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

            Bug ID: 32711
           Summary: [mc] vmcnt() expcnt() lgkmcnt() helpers to check that
                    value fits into appropriate field
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            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

vmcnt() expcnt() lgkmcnt() helpers that are used to construct immediate for
s_waitcnt instruction does not check that provided value fits into appropriate
fields. Example:

s_waitcnt vmcnt(666)

It's better to produce an error rather than silently truncate values. Also we
would like to see additional set of helpers (vmcnt_sat() expcnt_sat()
lgkmcnt_sat()) which would produce saturated output.

Note that allowable ranges differs on gfx8 and gfx9 hardware.

-- 
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/20170419/930975f7/attachment.html>


More information about the llvm-bugs mailing list