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

[mc] Some F64 insns (v_add_f64 etc.) -- negative inline constants are not supported.

Open atamazov opened this issue 10 years ago • 5 comments

Bugzilla Link 28202
Resolution FIXED
Resolved on Mar 28, 2017 03:13
Version trunk
OS Windows NT
Attachments 00204.tests_tg_gfx7_asm_lit1_bug.06.08.min.v_add_etc_f64--iconst_encoding.zip, (these tests are irrelevant, please ignore), (these tests are irrelevant, please ignore), More tests - 06400.tests_tg_gfx7_asm_lit1_bug.06.08.min.v_cmp_f64_e64--iconst-fconst.zip
CC @atamazov,@dpreobra

Extended Description

Example of failing instruction:

v_add_f64 v[0:1], -1, 0

The resulting encoding is always with neg modifier, in spite that we have suitable negative inline constants.

Note that in the instructions which have both 32- and 64-bit (VOP3) encodings that would lead to unnecessary usage of VOP3.

Perhaps we need to introduce explicit syntax form of neg modifier which would allow to distinguish negative constants from neg modifier applied to constant.

Tested with r273139 (git # 4a94acfea8bfd6eb6b5809dd40f03e1fa42e673a)

GFX7 lit tests attached.

atamazov avatar Jun 20 '16 13:06 atamazov

Closed by commit rL298255

dpreobra avatar Mar 28 '17 10:03 dpreobra

With r278539, the issue is still observed.

atamazov avatar Aug 16 '16 17:08 atamazov

Perhaps the fix described in https://llvm.org/bugs/show_bug.cgi?id=28170#c5 will also fix this issue.

atamazov avatar Jun 20 '16 16:06 atamazov

assigned to @dpreobra

atamazov avatar Jun 20 '16 13:06 atamazov