This is an archive of the discontinued LLVM Phabricator instance.

[GlobalISel] Implement computeNumSignBits for G_ASSERT_SEXT
ClosedPublic

Authored by paquette on Feb 17 2021, 1:23 PM.

Details

Summary

Same implementation as G_SEXT_INREG.

Add a testcase to combine-sext-inreg for a concrete example, and a testcase to KnownBitsTest.

Diff Detail

Event Timeline

paquette created this revision.Feb 17 2021, 1:23 PM
paquette requested review of this revision.Feb 17 2021, 1:23 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 17 2021, 1:23 PM
Herald added a subscriber: wdng. · View Herald Transcript
arsenm accepted this revision.Feb 17 2021, 1:40 PM
arsenm added inline comments.
llvm/unittests/CodeGen/GlobalISel/KnownBitsTest.cpp
454–455

Maybe also test the other edge case of 1

This revision is now accepted and ready to land.Feb 17 2021, 1:40 PM