[llvm-bugs] [Bug 32711] New: [mc] vmcnt() expcnt() lgkmcnt() helpers to check that value fits into appropriate field
llvm-bugs at lists.llvm.org
Wed Apr 19 08:04:41 PDT 2017
Bug ID: 32711
Summary: [mc] vmcnt() expcnt() lgkmcnt() helpers to check that
value fits into appropriate field
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
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...
More information about the llvm-bugs