This is an archive of the discontinued LLVM Phabricator instance.

[AArch64] Refactor checks in sign-return-address.ll test
ClosedPublic

Authored by atrosinenko on Jul 26 2023, 6:33 AM.

Details

Summary

Using implicit CHECK prefix in one FileCheck invocation and explicit
CHECK-V83A in the other one seems to misguide to use CHECK: lines as
a common matching prefix at various places. Also note that

; CHECK, CHECK-V83A: ...

line only matches the "CHECK-V83A" prefix.

This commit explicitly splits the checks into common ones (CHECK) and
invocation-specific ones (COMPAT and V83A) and updates the assertions
with the update_llc_test_checks.py script.

Diff Detail

Event Timeline

atrosinenko created this revision.Jul 26 2023, 6:33 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 26 2023, 6:33 AM
atrosinenko published this revision for review.Jul 26 2023, 6:57 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 26 2023, 6:57 AM

Can we just autogenerate the checks using update_llc_test_checks.py? I don't think the hand-written checks buy us anything here.

atrosinenko edited the summary of this revision. (Show Details)

Agree, updated the patch. Added comments in a few places where CHECK-NOT were more descriptive (spicifically, not emitting BTI before PACI(A|B)SP and not using RETAA with shadow call stack).

This revision is now accepted and ready to land.Jul 27 2023, 10:49 AM
MaskRay accepted this revision.Jul 27 2023, 9:40 PM
This revision was landed with ongoing or failed builds.Jul 29 2023, 3:14 AM
This revision was automatically updated to reflect the committed changes.