This is an archive of the discontinued LLVM Phabricator instance.

[LoongArch] Add tests for (and (add x, c1), (lshr y, c2))
ClosedPublic

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

Details

Summary

Add tests for (and (add x, c1), (lshr y, c2)).

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

Diff Detail

Event Timeline

hev created this revision.Jul 9 2023, 7:20 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 9 2023, 7:20 PM
hev requested review of this revision.Jul 9 2023, 7:20 PM
hev updated this revision to Diff 538527.Jul 10 2023, 12:27 AM

Add LA32 to test case.

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

The addition seems okay but it may be better to move the case into test/CodeGen/LoongArch/ir-instruction/and.ll where a bunch more and-related optimizations are tested.

This revision is now accepted and ready to land.Jul 10 2023, 6:11 AM
hev updated this revision to Diff 539454.Jul 12 2023, 2:59 AM

Move the case into test/CodeGen/LoongArch/ir-instruction/and.ll.

SixWeining accepted this revision.Jul 24 2023, 2:02 AM
This revision was landed with ongoing or failed builds.Jul 24 2023, 2:13 AM
This revision was automatically updated to reflect the committed changes.