This is an archive of the discontinued LLVM Phabricator instance.

[asan][test] Re-generate asan-check-memaccess-add.ll with update_llc_test_checks.py
ClosedPublic

Authored by MaskRay on Feb 2 2022, 4:56 PM.

Details

Summary
  • LABEL is important to give a better diagnostic in case a check pattern fails
  • Some NOT negative patterns are not effective. NEXT is useful to ensure a code sequence has the desired instructions and report a better diagnostic if something goes off.
  • Since the ABI says the first parameter is in RDI. Replacing the pattern [[REG16:.*]] with RDI should not cause maintenance burden.

Since the test is pretty mechanical, just use update_llc_test_checks.py
to re-generate it. Most functions can use nounwind to avoid CFI
directives.

Diff Detail

Event Timeline

MaskRay created this revision.Feb 2 2022, 4:56 PM
MaskRay requested review of this revision.Feb 2 2022, 4:56 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 2 2022, 4:56 PM
kstoimenov added inline comments.Feb 2 2022, 8:08 PM
llvm/test/CodeGen/X86/asan-check-memaccess-add.ll
6–7

The 'nounwind' is missing for load1. Was that intentional?

MaskRay added inline comments.Feb 2 2022, 8:09 PM
llvm/test/CodeGen/X86/asan-check-memaccess-add.ll
6–7

Yes. To have a test for .cfi_def_cfa_offset 16 ...

This revision is now accepted and ready to land.Feb 2 2022, 10:37 PM
vitalybuka accepted this revision.Feb 2 2022, 11:03 PM
This revision was landed with ongoing or failed builds.Feb 2 2022, 11:40 PM
This revision was automatically updated to reflect the committed changes.