[mc] Some F64 insns (v_add_f64 etc.) -- negative inline constants are not supported.
| 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.
Closed by commit rL298255
With r278539, the issue is still observed.
Perhaps the fix described in https://llvm.org/bugs/show_bug.cgi?id=28170#c5 will also fix this issue.
assigned to @dpreobra