llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

[mc] V_ADDC/SUBB/DIV_FMAS/CNDMASK: src restrictions are not checked.

Open llvmbot opened this issue 10 years ago • 5 comments

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

llvmbot avatar Oct 28 '16 20:10 llvmbot

Fixed in r296873

dpreobra avatar Mar 21 '17 17:03 dpreobra

This issue is not gfx8-specific.

atamazov avatar Oct 28 '16 20:10 atamazov

V_DIV_FMAS is also in the list.

atamazov avatar Oct 28 '16 20:10 atamazov

v_addc_u32 v40, vcc, s49, 0, vcc Note that 0 is valid if encoded as inline constant (which is normally the case).

atamazov avatar Oct 28 '16 20:10 atamazov

assigned to @dpreobra

llvmbot avatar Oct 28 '16 20:10 llvmbot