This is an archive of the discontinued LLVM Phabricator instance.

[RISCV][MC] Guard vmulh, vsmul correctly
AbandonedPublic

Authored by eopXD on Jan 21 2022, 1:29 AM.

Details

Summary

According to v-spec 1.0, these 2 instructions shall be enabled in V ext.
but not in Zve ext. This patch addresses it.

Credits to Jianjian as he pointed this out in D117854.

Diff Detail

Event Timeline

eopXD created this revision.Jan 21 2022, 1:29 AM
eopXD requested review of this revision.Jan 21 2022, 1:29 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 21 2022, 1:29 AM
eopXD edited the summary of this revision. (Show Details)Jan 21 2022, 1:31 AM
eopXD added reviewers: asb, jacquesguan.
eopXD retitled this revision from [RISCV][MC] Guard vmulh, vsmul correctly. to [RISCV][MC] Guard vmulh, vsmul correctly.
craig.topper requested changes to this revision.Jan 21 2022, 8:28 AM

The instructions are only not supported with SEW=64. Smaller SEWs are supported. The MC layer doesn’t know about SEW.

This revision now requires changes to proceed.Jan 21 2022, 8:28 AM
eopXD abandoned this revision.Jan 21 2022, 11:30 AM

Should not guard these instructions in MC, moving to D117913 to guard in clang.