This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Optimize (SRLI (SLLI GPR:$rs1, 32), 32)
AbandonedPublic

Authored by sunshaoce on Jul 18 2022, 7:26 PM.

Diff Detail

Event Timeline

sunshaoce created this revision.Jul 18 2022, 7:26 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 18 2022, 7:26 PM
sunshaoce requested review of this revision.Jul 18 2022, 7:26 PM
jrtc27 requested changes to this revision.Jul 18 2022, 7:31 PM

This is wrong. SRLI (SLLI) will zero-extend, but ADDIW will sign-extend.

This revision now requires changes to proceed.Jul 18 2022, 7:31 PM
sunshaoce abandoned this revision.Jul 19 2022, 9:23 PM

This is wrong. SRLI (SLLI) will zero-extend, but ADDIW will sign-extend.

Thanks!