llvm-project
llvm-project copied to clipboard
[mc] V_ADDC/SUBB/DIV_FMAS/CNDMASK: src restrictions are not checked.
| Bugzilla Link | 30829 |
| Resolution | FIXED |
| Resolved on | Mar 21, 2017 10:34 |
| Version | trunk |
| OS | Windows NT |
| Reporter | LLVM Bugzilla Contributor |
| CC | @atamazov,@dpreobra |
Extended Description
SGPR, M0, EXEC or literal constant are not allowed for ADDC/SUBB/V_CNDMASK instructions. Still assembler allows illegal encodings like:
v_addc_u32 v40, vcc, s49, 0, vcc
Fixed in r296873
This issue is not gfx8-specific.
V_DIV_FMAS is also in the list.
v_addc_u32 v40, vcc, s49, 0, vcc Note that 0 is valid if encoded as inline constant (which is normally the case).
assigned to @dpreobra