We already offer zextOrTrunc and it seems natural to offer the
same capability for sign extension.
This patch is a preparatory addition useful for future computeKnownBits
developments.
Differential D88937
[KnownBits] Add a sextOrTrunc method qcolombet on Oct 6 2020, 4:32 PM. Authored by
Details We already offer zextOrTrunc and it seems natural to offer the This patch is a preparatory addition useful for future computeKnownBits
Diff Detail
Event TimelineComment Actions Hi @lebedev.ri ,
I didn't see a test for zextOrTrunc that I could mimic so I come up with something. Let me know what do you think. Cheers, Comment Actions Seems fine
|
I guess i was thinking of something like this:
which seems pretty tautological i guess, so maybe we should go with your test.