This is an archive of the discontinued LLVM Phabricator instance.

[AArch64] Add tests for selecting SMULL instruction where the operand is zero extended and the top bit value is 0
ClosedPublic

Authored by zjaffal on Sep 26 2022, 6:36 AM.

Details

Summary

This covers the case where we can convert a zext instruction to a sext and then select smull

Diff Detail

Event Timeline

zjaffal created this revision.Sep 26 2022, 6:36 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 26 2022, 6:36 AM
zjaffal requested review of this revision.Sep 26 2022, 6:36 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 26 2022, 6:36 AM
fhahn added inline comments.Sep 26 2022, 6:49 AM
llvm/test/CodeGen/AArch64/aarch64-smull.ll
62

It would make the test slightly easier to read if more descriptive names for the values would be used, e.g. %tmp2 -> load.B, %tmp4 -> %sext.B`.

zjaffal updated this revision to Diff 463127.Sep 27 2022, 12:51 AM

rename variables in tests

This revision was not accepted when it landed; it landed in state Needs Review.Sep 27 2022, 11:44 AM
This revision was automatically updated to reflect the committed changes.

LGTM, thanks!