This is an archive of the discontinued LLVM Phabricator instance.

[AArch64] Add llvm/test/CodeGen/AArch64/i256-math.ll
ClosedPublic

Authored by kazu on May 6 2022, 1:15 PM.

Details

Summary

This patch adds a test case for i256 additions and subtractions. I'm
leaving out multiplications for now, which would result in very long
sequences.

Diff Detail

Event Timeline

kazu created this revision.May 6 2022, 1:15 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 6 2022, 1:15 PM
kazu requested review of this revision.May 6 2022, 1:15 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 6 2022, 1:15 PM
efriedma added inline comments.
llvm/test/CodeGen/AArch64/i256-math.ll
126

u256_overflowing_sub looks strange. I would have expected the carry flag combine to handle this.

efriedma accepted this revision.May 6 2022, 2:19 PM

LGTM. (We can look at improving the generated code in a followup.)

This revision is now accepted and ready to land.May 6 2022, 2:19 PM
kazu added a comment.May 6 2022, 2:25 PM

LGTM. (We can look at improving the generated code in a followup.)

Thank you so much for a prompt review! Sure, I'll look at those cset-cmp inefficiencies.

This revision was landed with ongoing or failed builds.May 6 2022, 2:26 PM
This revision was automatically updated to reflect the committed changes.