[mc] vmcnt() expcnt() lgkmcnt() helpers to check that value fits into appropriate field
| Bugzilla Link | 32711 |
| Resolution | FIXED |
| Resolved on | Jun 07, 2017 09:15 |
| Version | trunk |
| OS | Linux |
| Reporter | LLVM Bugzilla Contributor |
| CC | @atamazov |
Extended Description
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.
Closed by commit r304922
The "failed parsing operand" error message is a bit inappropriate. The syntax is correct, so there should be no parsing problems. Re-opening.
- LOW PRIORITY *
Closed by commit r301439
Fix sent out for review: https://reviews.llvm.org/D32546
assigned to @dpreobra