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: unassignedb...@nondot.org
Reporter: i.am.permi...@gmail.com
CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs