This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] (and (not (srl X, C)), 1) to (sltiu (andi X, 2 << C), 1) when Zbs extension disable
AbandonedPublic

Authored by Miss_Grape on Mar 24 2022, 8:50 PM.

Details

Diff Detail

Unit TestsFailed

Event Timeline

Miss_Grape created this revision.Mar 24 2022, 8:50 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 24 2022, 8:50 PM
Miss_Grape requested review of this revision.Mar 24 2022, 8:50 PM
craig.topper added inline comments.Mar 24 2022, 9:10 PM
llvm/lib/Target/RISCV/RISCVInstrInfo.td
384

This comment is duplicated from ImmPlus32.

llvm/test/CodeGen/RISCV/rv64zbs.ll
518

Shouldn't this be 128 not 256?

I just put up an alternative that gets the same codegen https://reviews.llvm.org/D122458 I did not limit to cases where Zbs is disabled. It needs more testing.

I just put up an alternative that gets the same codegen https://reviews.llvm.org/D122458 I did not limit to cases where Zbs is disabled. It needs more testing.

OK, I will discard this Merge Requst。

Miss_Grape abandoned this revision.Mar 25 2022, 12:14 AM