This is an archive of the discontinued LLVM Phabricator instance.

[LoongArch][NFC] Add tests for (X & -256) == 256 -> (X >> 8) == 1
ClosedPublic

Authored by hev on Jul 9 2023, 7:28 PM.

Details

Summary

Add tests for (X & -256) == 256 -> (X >> 8) == 1.

Signed-off-by: WANG Rui <wangrui@loongson.cn>

Diff Detail

Event Timeline

hev created this revision.Jul 9 2023, 7:28 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 9 2023, 7:28 PM
Herald added a subscriber: asbirlea. · View Herald Transcript
hev requested review of this revision.Jul 9 2023, 7:28 PM
hev updated this revision to Diff 538534.Jul 10 2023, 1:03 AM

Add LA64 to test file.

xen0n accepted this revision.Jul 10 2023, 6:09 AM

Add NFC somewhere in the title or summary? And is it better to add the case into test/CodeGen/LoongArch/ir-instruction/icmp.ll since we already stuff several icmp-related tests there?

This revision is now accepted and ready to land.Jul 10 2023, 6:09 AM
SixWeining accepted this revision.Jul 24 2023, 2:39 AM
SixWeining retitled this revision from [LoongArch] Add tests for (X & -256) == 256 -> (X >> 8) == 1 to [LoongArch][NFC] Add tests for (X & -256) == 256 -> (X >> 8) == 1.